changeset 1509:4a2402ac34dd

Stop install test data for normal execution
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 09 May 2011 20:48:30 +0800
parents 62001d2c89f6
children 47b02e97bdee
files pyink/FSM_window.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.py	Mon May 09 19:25:38 2011 +0800
+++ b/pyink/FSM_window.py	Mon May 09 20:48:30 2011 +0800
@@ -1991,8 +1991,10 @@
         pass
 
     def show(self):
-        self._install_test_data()
-        self._install_test_data = lambda: None
+        if _install_test_data_flag:
+            self._install_test_data()
+            self._install_test_data = lambda: None
+            pass
         self._update_view()
         self._add_state_mode.activate()
         super(FSM_window, self).show()
@@ -2037,7 +2039,10 @@
         pass
     pass
 
+_install_test_data_flag = False
+
 if __name__ == '__main__':
+    _install_test_data_flag = True
     win = FSM_window()
     win._main_win.connect('destroy', gtk.main_quit)
     win.show()