fixed problem with show main window - fixed src/vvod.py
authorAlexandr Popov <popov2al@gmail.com>
Sat, 28 Mar 2009 22:41:37 +0000 (01:41 +0300)
committerAlexandr Popov <popov2al@gmail.com>
Sat, 28 Mar 2009 22:41:37 +0000 (01:41 +0300)
src/vvod.py

index 8995427..a16e6e6 100644 (file)
@@ -5,8 +5,14 @@
 import gtk
 
 class Gtk_Inp_Control(object):
-    def __init__(self):
+    def __init__(self, start_path, count):
+        self.input_ui = Gtk_Inp_Presentation(start_path, count)
+    
+    def get_ui(self):
+        return self.input_ui.get_ui()
 
+    def get_data(self):
+        return self.input_ui.get_data()
 
 class Gtk_Inp_Abstraction(object):
     pass
@@ -14,7 +20,7 @@ class Gtk_Inp_Abstraction(object):
 
 class Gtk_Inp_Presentation(object):
     def __init__(self, start_path, count):
-        self.input_vdox = gtk.VBox(False, 0)
+        self.input_vbox = gtk.VBox(False, 0)
         
         # Строка ввода каталога
         self.srch_p_entr = gtk.Entry()
@@ -25,15 +31,15 @@ class Gtk_Inp_Presentation(object):
         adj = gtk.Adjustment(count, 1, 65536, 1, 5, 0)
         self.file_cnt = gtk.SpinButton(adj, 0, 0)
 
-        hdox = gtk.HBox(False, 0)
+        hbox = gtk.HBox(False, 0)
         hbox.pack_start(label1, False, False, 5)
         hbox.pack_start(self.file_cnt, False, False, 0)
 
-        self.input_vdox.pack_start(self.srch_p_entr, False, False, 0)
+        self.input_vbox.pack_start(self.srch_p_entr, False, False, 0)
         self.input_vbox.pack_start(hbox, False, False, 0)
 
-    def get_gui(self):
-        return self.input_vdox
+    def get_ui(self):
+        return self.input_vbox
         
     def get_data(self):
         return self.srch_p_entr.get_text(), int( self.file_cnt.get_value() )