From 7fd517d76ed0d591e8c59bd96b496b4f16f997fb Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 17 Oct 2008 20:31:36 +0800 Subject: [PATCH] Replace multiline TBuffer with an Entry widget and rename --- pyfpdb/GuiAutoImport.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pyfpdb/GuiAutoImport.py b/pyfpdb/GuiAutoImport.py index 25e38fec..4c00b36a 100644 --- a/pyfpdb/GuiAutoImport.py +++ b/pyfpdb/GuiAutoImport.py @@ -91,7 +91,7 @@ class GuiAutoImport (threading.Thread): self.importer.addImportDirectory(self.path, True) self.do_import() - interval=int(self.intervalTBuffer.get_text(self.intervalTBuffer.get_start_iter(), self.intervalTBuffer.get_end_iter())) + interval=int(self.intervalEntry.get_text()) gobject.timeout_add(interval*1000, self.do_import) #end def GuiAutoImport.browseClicked @@ -127,11 +127,10 @@ class GuiAutoImport (threading.Thread): self.settingsHBox.pack_start(self.intervalLabel) self.intervalLabel.show() - self.intervalTBuffer=gtk.TextBuffer() - self.intervalTBuffer.set_text(str(self.settings['hud-defaultInterval'])) - self.intervalTView=gtk.TextView(self.intervalTBuffer) - self.settingsHBox.pack_start(self.intervalTView) - self.intervalTView.show() + self.intervalEntry=gtk.Entry() + self.intervalEntry.set_text(str(self.settings['hud-defaultInterval'])) + self.settingsHBox.pack_start(self.intervalEntry) + self.intervalEntry.show() self.pathHBox = gtk.HBox(False, 0)