From: <jb...@us...> - 2010-07-05 09:42:21
|
Revision: 603 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=603&view=rev Author: jblance Date: 2010-07-05 09:42:15 +0000 (Mon, 05 Jul 2010) Log Message: ----------- Fix for pressing ESC during file open dialog Modified Paths: -------------- pytrainer/trunk/pytrainer/gui/dialogs.py pytrainer/trunk/pytrainer/main.py Modified: pytrainer/trunk/pytrainer/gui/dialogs.py =================================================================== --- pytrainer/trunk/pytrainer/gui/dialogs.py 2010-07-05 09:27:38 UTC (rev 602) +++ pytrainer/trunk/pytrainer/gui/dialogs.py 2010-07-05 09:42:15 UTC (rev 603) @@ -1,6 +1,6 @@ #!/usr/bin/env python -#Copyright (C) +#Copyright (C) #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License @@ -23,7 +23,8 @@ class fileChooserDialog(): def __init__(self, title = "Choose a file", multiple = False): - dialog = gtk.FileChooserDialog(title, None, gtk.FILE_CHOOSER_ACTION_OPEN,(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) + self.inputfiles = None + dialog = gtk.FileChooserDialog(title, None, gtk.FILE_CHOOSER_ACTION_OPEN,(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) dialog.set_select_multiple(multiple) response = dialog.run() Modified: pytrainer/trunk/pytrainer/main.py =================================================================== --- pytrainer/trunk/pytrainer/main.py 2010-07-05 09:27:38 UTC (rev 602) +++ pytrainer/trunk/pytrainer/main.py 2010-07-05 09:42:15 UTC (rev 603) @@ -49,7 +49,7 @@ class pyTrainer: def __init__(self,filename = None, data_path = None): #Version constants - self.version ="1.7.2_svn#601" + self.version ="1.7.2_svn#603" self.DB_version = 3 #Process command line options self.startup_options = self.get_options() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |