2023-07-30 00:36:52 -05:00
|
|
|
# Python imports
|
|
|
|
|
|
|
|
|
|
# Lib imports
|
|
|
|
|
import gi
|
|
|
|
|
gi.require_version('Gtk', '3.0')
|
|
|
|
|
from gi.repository import Gtk
|
|
|
|
|
|
|
|
|
|
# Application imports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LeftContainer(Gtk.Box):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super(LeftContainer, self).__init__()
|
|
|
|
|
|
|
|
|
|
self._setup_styling()
|
|
|
|
|
self._setup_signals()
|
|
|
|
|
self._subscribe_to_events()
|
|
|
|
|
self._load_widgets()
|
|
|
|
|
|
2024-08-31 22:27:11 -05:00
|
|
|
self.show()
|
|
|
|
|
|
2023-07-30 00:36:52 -05:00
|
|
|
|
|
|
|
|
def _setup_styling(self):
|
|
|
|
|
self.set_orientation(Gtk.Orientation.VERTICAL)
|
2025-11-29 23:22:03 -06:00
|
|
|
|
|
|
|
|
self.set_vexpand(True)
|
|
|
|
|
|
2023-07-30 00:36:52 -05:00
|
|
|
ctx = self.get_style_context()
|
|
|
|
|
ctx.add_class("left-container")
|
|
|
|
|
|
|
|
|
|
def _setup_signals(self):
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
def _subscribe_to_events(self):
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
def _load_widgets(self):
|
2024-08-31 22:27:11 -05:00
|
|
|
...
|