Wxpython browse for or drag and drop folder
问题 I currently have this code below to manualy get a directory path, I would like to add drag and drop as well, so I could drag and drop the folder into the window. self.pathindir1 = wx.TextCtrl(self.panel1, -1, pos=(35, 120), size=(300, 25)) self.buttonout = wx.Button(self.panel1, -1, "Open", pos=(350,118)) self.buttonout.Bind(wx.EVT_BUTTON, self.openindir1) def openindir1(self, event): global indir1 dlg = wx.DirDialog(self, "Choose a directory:", style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR