2023-04-23 12:06:16 -05:00
|
|
|
# Python imports
|
|
|
|
|
|
|
|
|
|
# Lib imports
|
|
|
|
|
import gi
|
|
|
|
|
gi.require_version('Gtk', '3.0')
|
|
|
|
|
from gi.repository import Gtk
|
|
|
|
|
|
|
|
|
|
# Application imports
|
2023-04-23 16:47:33 -05:00
|
|
|
from .left_box import LeftBox
|
|
|
|
|
from .right_box import RightBox
|
2023-04-29 15:20:36 -05:00
|
|
|
|
2023-04-23 12:06:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class BaseContainer(Gtk.Box):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super(BaseContainer, self).__init__()
|
|
|
|
|
|
|
|
|
|
self._setup_styling()
|
|
|
|
|
self._setup_signals()
|
|
|
|
|
self._load_widgets()
|
|
|
|
|
|
|
|
|
|
self.show_all()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _setup_styling(self):
|
2023-04-29 15:20:36 -05:00
|
|
|
self.set_orientation(Gtk.Orientation.HORIZONTAL)
|
|
|
|
|
ctx = self.get_style_context()
|
|
|
|
|
ctx.add_class("container-padding-5px")
|
2023-04-23 12:06:16 -05:00
|
|
|
|
|
|
|
|
def _setup_signals(self):
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
def _load_widgets(self):
|
2023-04-29 15:20:36 -05:00
|
|
|
self.add(LeftBox())
|
|
|
|
|
self.add(RightBox())
|