generated from itdominator/Python-With-Gtk-Template
38 lines
744 B
Python
38 lines
744 B
Python
# Python imports
|
|
|
|
# Lib imports
|
|
import gi
|
|
gi.require_version('Gtk', '3.0')
|
|
from gi.repository import Gtk
|
|
|
|
# Application imports
|
|
from .widgets.base.notebook.editor_notebook import EditorNotebook
|
|
|
|
|
|
|
|
class EditorsContainer(Gtk.Paned):
|
|
def __init__(self):
|
|
super(EditorsContainer, self).__init__()
|
|
|
|
self._setup_styling()
|
|
self._setup_signals()
|
|
self._subscribe_to_events()
|
|
self._load_widgets()
|
|
|
|
self.show()
|
|
|
|
|
|
def _setup_styling(self):
|
|
self.set_wide_handle(True)
|
|
self.set_vexpand(True)
|
|
|
|
def _setup_signals(self):
|
|
...
|
|
|
|
def _subscribe_to_events(self):
|
|
...
|
|
|
|
def _load_widgets(self):
|
|
self.add1(EditorNotebook())
|
|
self.add2(EditorNotebook())
|