def on_button_attachments(self, event): # wxGlade: email_dialog.<event_handler>
wcd = 'All files (*)|*|Editor files (*.ef)|*.ef|'
#dir = os.getcwd()
open_dlg = wx.FileDialog(self, message='Choose a Attachmet file', defaultFile='',
wildcard=wcd, style=wx.OPEN|wx.CHANGE_DIR)
if open_dlg.ShowModal() == wx.ID_OK:
path = open_dlg.GetPath()
self.text_ctrl_attachment.SetValue(path)
open_dlg.Destroy()
event.Skip()
评论列表
文章目录