def EditClicked(self, event=None): dlg = ib.ImageDialog(self, get_picture_dir()) dlg.Centre() if dlg.ShowModal() == wx.ID_OK: self.iconpath = dlg.GetFile() self.process_input() else: pass dlg.Destroy()
def OnIconButton(self, evt): # open the image browser dialog dlg = ib.ImageDialog(self, get_picture_dir()) dlg.Centre() if dlg.ShowModal() == wx.ID_OK: self.iconpath = dlg.GetFile() self.process_input() else: pass dlg.Destroy()
def test_picture_dir(self): picture_dir = get_picture_dir() self.assertIsInstance(picture_dir, unicode) self.assertTrue(os.path.isdir(picture_dir))
def test_picture_dir(self): picture_dir = get_picture_dir() self.assertIsInstance(picture_dir, six.text_type) self.assertTrue(os.path.isdir(picture_dir))