My first gui application is working fine. Fine, that is until the user forgets to select the output directory. I have set up an error message that, when clicked, directs the script to the open directory dialog.
This works but I would prefer the user selected the open directory option from the menu. This is the script that checks that directories are set:
def checkdir(self, event):
if indirname=="unset":
dlg = wx.MessageDialog(self, 'Source and Destination folders not set.','Toadstool v3.2', wx.OK)
dlg.ShowModal()
self.chooseout(self)
dlg.Destroy()
indirname is set to "unset" earlier, "chooseout" is a simple open directory function. So if I decided not to direct the user to "chooseout" where could I send them to simply wait? Obviously just removing the "chooseout" line allows the script to continue and raise an exception. In batch (the only other programming I've done) this would be a job for goto! I'm starting to get an ache behind my eyes, please help.