made default hiding transparency controls easier with restructured show calls

This commit is contained in:
itdominator 2024-08-31 22:27:11 -05:00
parent 25b6b5305b
commit e2e9dc8c1f
6 changed files with 14 additions and 5 deletions

View File

@ -22,7 +22,7 @@ class BaseContainer(Gtk.Box):
self._subscribe_to_events()
self._load_widgets()
self.show_all()
self.show()
def _setup_styling(self):

View File

@ -23,7 +23,7 @@ class BodyContainer(Gtk.Box):
self._subscribe_to_events()
self._load_widgets()
self.show_all()
self.show()
def _setup_styling(self):

View File

@ -21,6 +21,8 @@ class CenterContainer(Gtk.Box):
self._subscribe_to_events()
self._load_widgets()
self.show()
def _setup_styling(self):
self.set_orientation(Gtk.Orientation.VERTICAL)
@ -39,6 +41,9 @@ class CenterContainer(Gtk.Box):
button.connect("clicked", self._hello_world)
button.show()
glade_box.show()
self.add(button)
self.add(glade_box)
self.add( WebkitUI() )

View File

@ -48,4 +48,4 @@ class HeaderContainer(Gtk.Box):
event_system.emit("load-interactive-debug")
def tggl_top_main_menubar(self):
self.hide() if self.is_visible() else self.show()
self.hide() if self.is_visible() else self.show_all()

View File

@ -18,6 +18,8 @@ class LeftContainer(Gtk.Box):
self._subscribe_to_events()
self._load_widgets()
self.show()
def _setup_styling(self):
self.set_orientation(Gtk.Orientation.VERTICAL)
@ -31,4 +33,4 @@ class LeftContainer(Gtk.Box):
...
def _load_widgets(self):
...
...

View File

@ -18,6 +18,8 @@ class RightContainer(Gtk.Box):
self._subscribe_to_events()
self._load_widgets()
self.show()
def _setup_styling(self):
self.set_orientation(Gtk.Orientation.VERTICAL)
@ -31,4 +33,4 @@ class RightContainer(Gtk.Box):
...
def _load_widgets(self):
...
...