Mouse_Keyboard/1.0.2/core/container.py

38 lines
791 B
Python
Raw Normal View History

2022-08-27 08:50:01 +00:00
# Python imports
# Lib imports
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
from .columns import Left_Column, Keys_Column, Right_Column
from .signals_mixin import SignalsMixin
class Container(SignalsMixin, Gtk.Box):
"""docstring for Container."""
def __init__(self):
super(Container, self).__init__()
self.setup_custom_event_signals()
self.setup_styling()
self.add_columns()
self.show_all()
def setup_styling(self):
self.set_orientation(0) # HORIZONTAL = 0, VERTICAL = 1
self.set_vexpand(True)
def setup_signals(self):
pass
def add_columns(self):
self.add(Left_Column())
self.add(Keys_Column())
self.add(Right_Column())