dnd_wx.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ML 作者: saurabhsuman47 项目源码 文件源码
def __init__(self, parent):
        wx.Panel.__init__(self, parent = parent)
        file_drop_target = FileDropTarget(self)
        lbl = wx.StaticText(self, label="Drag Transactions File here:")
        self.fileTextCtrl = wx.TextCtrl(self, style=wx.TE_MULTILINE|wx.VSCROLL|wx.TE_READONLY)
        self.fileTextCtrl.SetDropTarget(file_drop_target)
        button = wx.Button(self, label = "Process File")
        button.Bind(wx.EVT_LEFT_DOWN, self.process_file)
        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(lbl, 1, wx.ALL, 5)
        sizer.Add(self.fileTextCtrl, 10, wx.EXPAND|wx.ALL, 10)
        sizer.Add(button, 1, wx.ALIGN_CENTER, 5)
        self.SetSizer(sizer)
        self.text = ""
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号