[Avida-cvs] [avida-svn] r447 - branches/developers/avida-edward/source/python/AvidaGui2
baerb@myxo.css.msu.edu
baerb at myxo.css.msu.edu
Wed Jan 25 13:54:28 PST 2006
Author: baerb
Date: 2006-01-25 16:54:27 -0500 (Wed, 25 Jan 2006)
New Revision: 447
Modified:
branches/developers/avida-edward/source/python/AvidaGui2/checkuic.py
branches/developers/avida-edward/source/python/AvidaGui2/pyEduWorkspaceView.ui
branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
Log:
Added -f (force) option to checkuic. This provents the program from asking
user to agree to run pyuic but assumes they answered Y to all questions
Added Save Workspace As menu item (does not do anything yet)
Small change to to-do list.
Modified: branches/developers/avida-edward/source/python/AvidaGui2/checkuic.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/checkuic.py 2006-01-25 18:15:52 UTC (rev 446)
+++ branches/developers/avida-edward/source/python/AvidaGui2/checkuic.py 2006-01-25 21:54:27 UTC (rev 447)
@@ -1,4 +1,9 @@
-import os, time, re
+import os, time, re, sys
+force = False
+if (len(sys.argv) > 1):
+ for arg in sys.argv[1:]:
+ if arg.strip() == "-f":
+ force = True
py_dict = {}
dir_listing = os.listdir('.')
for file in dir_listing:
@@ -43,18 +48,26 @@
print ui_name + ' ' + time.ctime(ui_stat.st_mtime)
print py_name + ' ' + time.ctime(py_stat.st_mtime)
command = "pyuic " + ui_name + " > " + py_name
+ if (force == False):
+ response = raw_input(command + "? (y/n) ")
+ response = response.upper()
+ response = response.strip()
+ if response.startswith('Y'):
+ os.system(command)
+ else:
+ print command
+ os.system(command)
+ else:
+ print "No file " + py_name + " exists"
+ command = "pyuic " + ui_name + " > " + py_name
+ if (force == False):
response = raw_input(command + "? (y/n) ")
response = response.upper()
response = response.strip()
if response.startswith('Y'):
os.system(command)
- else:
- print "No file " + py_name + " exists"
- command = "pyuic " + ui_name + " > " + py_name
- response = raw_input(command + "? (y/n) ")
- response = response.upper()
- response = response.strip()
- if response.startswith('Y'):
+ else:
+ print command
os.system(command)
print "------------------------------------------------------"
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyEduWorkspaceView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyEduWorkspaceView.ui 2006-01-25 18:15:52 UTC (rev 446)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyEduWorkspaceView.ui 2006-01-25 21:54:27 UTC (rev 447)
@@ -144,6 +144,7 @@
<item text="&File" name="File">
<action name="fileNewAction"/>
<action name="fileOpenAction"/>
+ <action name="fileSaveAsAction"/>
<separator/>
<action name="m_graph_print_action"/>
</item>
Modified: branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/to-do_list 2006-01-25 18:15:52 UTC (rev 446)
+++ branches/developers/avida-edward/source/python/AvidaGui2/to-do_list 2006-01-25 21:54:27 UTC (rev 447)
@@ -2,6 +2,8 @@
16-Jan-06 Initial location of workspace box (ie before user can run program they must chose (or create) a workspace). -- Brian -- High Priority
+16-Jan-06 Fix problem where start in menu bar not linked to start button -- Brian -- Low priority
+
16-Jan-06 Non-Fix length Genomes? -- Brian -- Low priority
16-Jan-06 Change header of config screen to warn users they can not change it when program is running. -- Brian -- Medium Priority
More information about the Avida-cvs
mailing list