Fix re-drawing of grey line on tab change.

pull/54/head
Christian T. Jacobs 2017-02-21 17:57:32 +00:00
rodzic 0456d1b3ec
commit 7cd34fb59a
2 zmienionych plików z 4 dodań i 14 usunięć

Wyświetl plik

@ -93,21 +93,11 @@ class PyQSO:
# once connected to the SQLite database.
self.logbook = Logbook(self)
self.toolbox = Toolbox(self, self.builder)
# Set up menu and tool bars. These classes depend on the Logbook and Toolbox class.
self.menu = Menu(self, self.builder)
# Set up menu and tool bars
# These classes depend on the Logbook and Toolbox class,
# so pack the logbook and toolbox after the menu and toolbar.
#self.toolbar = Toolbar(self)
#vbox_outer.pack_start(self.menu, False, False, 0)
#vbox_outer.pack_start(self.toolbar, False, False, 0)
#vbox_outer.pack_start(self.logbook, True, True, 0)
#vbox_outer.pack_start(self.toolbox, True, True, 0)
#vbox_outer.pack_start(self.statusbar, False, False, 0)
if(have_config):
if(config.get("general", "show_toolbox") == "False"):
self.toolbox.toggle_visible_callback()

Wyświetl plik

@ -58,6 +58,6 @@ class Toolbox:
def _on_switch_page(self, widget, label, new_page):
""" Re-draw the Grey Line if the user switches to the grey line tab. """
if(label.get_text() == "Grey Line"):
label.draw() # Note that 'label' is actually a GreyLine object.
if(widget.get_tab_label(label).get_text() == "Grey Line"):
self.grey_line.draw()
return