kopia lustrzana https://github.com/ctjacobs/pyqso
Fix re-drawing of grey line on tab change.
rodzic
0456d1b3ec
commit
7cd34fb59a
14
bin/pyqso
14
bin/pyqso
|
@ -93,21 +93,11 @@ class PyQSO:
|
||||||
# once connected to the SQLite database.
|
# once connected to the SQLite database.
|
||||||
self.logbook = Logbook(self)
|
self.logbook = Logbook(self)
|
||||||
self.toolbox = Toolbox(self, self.builder)
|
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)
|
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)
|
#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(have_config):
|
||||||
if(config.get("general", "show_toolbox") == "False"):
|
if(config.get("general", "show_toolbox") == "False"):
|
||||||
self.toolbox.toggle_visible_callback()
|
self.toolbox.toggle_visible_callback()
|
||||||
|
|
|
@ -58,6 +58,6 @@ class Toolbox:
|
||||||
|
|
||||||
def _on_switch_page(self, widget, label, new_page):
|
def _on_switch_page(self, widget, label, new_page):
|
||||||
""" Re-draw the Grey Line if the user switches to the grey line tab. """
|
""" Re-draw the Grey Line if the user switches to the grey line tab. """
|
||||||
if(label.get_text() == "Grey Line"):
|
if(widget.get_tab_label(label).get_text() == "Grey Line"):
|
||||||
label.draw() # Note that 'label' is actually a GreyLine object.
|
self.grey_line.draw()
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue