change shortcut key for import button so that it still works when button label is 'I M P O R T I N G'

This commit is contained in:
sqlcoder 2010-06-20 17:47:23 +01:00
parent d6f3bed1d4
commit 6a999f4232

View File

@ -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