Replace multiline TBuffer with an Entry widget and rename
This commit is contained in:
parent
ee2017bb05
commit
7fd517d76e
|
@ -91,7 +91,7 @@ class GuiAutoImport (threading.Thread):
|
||||||
self.importer.addImportDirectory(self.path, True)
|
self.importer.addImportDirectory(self.path, True)
|
||||||
self.do_import()
|
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)
|
gobject.timeout_add(interval*1000, self.do_import)
|
||||||
#end def GuiAutoImport.browseClicked
|
#end def GuiAutoImport.browseClicked
|
||||||
|
|
||||||
|
@ -127,11 +127,10 @@ class GuiAutoImport (threading.Thread):
|
||||||
self.settingsHBox.pack_start(self.intervalLabel)
|
self.settingsHBox.pack_start(self.intervalLabel)
|
||||||
self.intervalLabel.show()
|
self.intervalLabel.show()
|
||||||
|
|
||||||
self.intervalTBuffer=gtk.TextBuffer()
|
self.intervalEntry=gtk.Entry()
|
||||||
self.intervalTBuffer.set_text(str(self.settings['hud-defaultInterval']))
|
self.intervalEntry.set_text(str(self.settings['hud-defaultInterval']))
|
||||||
self.intervalTView=gtk.TextView(self.intervalTBuffer)
|
self.settingsHBox.pack_start(self.intervalEntry)
|
||||||
self.settingsHBox.pack_start(self.intervalTView)
|
self.intervalEntry.show()
|
||||||
self.intervalTView.show()
|
|
||||||
|
|
||||||
|
|
||||||
self.pathHBox = gtk.HBox(False, 0)
|
self.pathHBox = gtk.HBox(False, 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user