add diagramm view in our programm - modify src/core.py
author“Alexandr <“popov2al@gmail.com”>
Sat, 4 Apr 2009 19:51:43 +0000 (23:51 +0400)
committer“Alexandr <“popov2al@gmail.com”>
Sat, 4 Apr 2009 19:51:43 +0000 (23:51 +0400)
src/core.py

index de6681f..14054d5 100644 (file)
@@ -16,6 +16,9 @@ class Core_Control(object):
         if show_type is 'table_view':
             from outtable import Out_Table_Control
             out = Out_Table_Control(self.cfg)
+        elif show_type is 'diag_view':
+            from outdiag import Out_Diag_Control
+            out = Out_Diag_Control(self.cfg)
             
         if search_type is 'large_file':
             from filesearch import Search_File_Control
@@ -55,7 +58,7 @@ class Core_Presentation(gtk.Window):
         show_butt1.connect('toggled', self.show_type, 'table_view')
         show_butt1.set_active(True)
         show_butt2 = gtk.RadioButton(show_butt1, 'Show in Diagram view')
-        show_butt2.connect('toggled', self.show_type, 'table_view')
+        show_butt2.connect('toggled', self.show_type, 'diag_view')
         self.show = 'table_view'
         separator2 = gtk.HSeparator()