From 6a999f4232b2066021fb46770f7b33fbcb5058bf Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 20 Jun 2010 17:47:23 +0100 Subject: [PATCH] change shortcut key for import button so that it still works when button label is 'I M P O R T I N G' --- pyfpdb/GuiAutoImport.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyfpdb/GuiAutoImport.py b/pyfpdb/GuiAutoImport.py index 6dd67ba5..5ff28703 100755 --- a/pyfpdb/GuiAutoImport.py +++ b/pyfpdb/GuiAutoImport.py @@ -100,7 +100,7 @@ class GuiAutoImport (threading.Thread): hbox.pack_start(lbl1, expand=True, fill=False) self.doAutoImportBool = False - self.startButton = gtk.ToggleButton(" _Start Autoimport ") + self.startButton = gtk.ToggleButton(" Start Autoimpor_t ") self.startButton.connect("clicked", self.startClicked, "start clicked") hbox.pack_start(self.startButton, expand=False, fill=False) @@ -153,7 +153,7 @@ class GuiAutoImport (threading.Thread): def do_import(self): """Callback for timer to do an import iteration.""" if self.doAutoImportBool: - self.startButton.set_label(u' I M P O R T I N G ') + self.startButton.set_label(u' I M P O R _T I N G ') self.importer.runUpdated() self.addText(".") #sys.stdout.write(".") @@ -164,9 +164,9 @@ class GuiAutoImport (threading.Thread): def reset_startbutton(self): if self.pipe_to_hud is not None: - self.startButton.set_label(u' _Stop Autoimport ') + self.startButton.set_label(u' Stop Autoimpor_t ') else: - self.startButton.set_label(u' _Start Autoimport ') + self.startButton.set_label(u' Start Autoimpor_t ') return False @@ -243,7 +243,7 @@ class GuiAutoImport (threading.Thread): #print >>self.pipe_to_hud.stdin, "\n" self.pipe_to_hud.communicate('\n') # waits for process to terminate self.pipe_to_hud = None - self.startButton.set_label(u' _Start Autoimport ') + self.startButton.set_label(u' Start Autoimpor_t ') #end def GuiAutoImport.startClicked