def OpenSource(self, event): # wxGlade: MainFrame.<event_handler>
dlg = wx.FileDialog(
self,
message="Choose Image",
wildcard="All files (*.*)|*.*",
style=wx.OPEN | wx.CHANGE_DIR
)
if dlg.ShowModal() == wx.ID_OK:
paths = dlg.GetPaths()
for path in paths:
self.EnumerateSource(path)
print(' %s\n' % path)
dlg.Destroy()
event.Skip()
评论列表
文章目录