generated from itdominator/Python-With-Gtk-Template
WIP pickling of widgets
This commit is contained in:
@@ -84,6 +84,8 @@ class Settings(StartCheckMixin):
|
||||
self._debug = False
|
||||
self._dirty_start = False
|
||||
self._active_notebook = None
|
||||
self._active_section = None
|
||||
self._active_page = None
|
||||
|
||||
self.load_settings()
|
||||
|
||||
@@ -166,8 +168,15 @@ class Settings(StartCheckMixin):
|
||||
|
||||
def set_main_window(self, window): self._main_window = window
|
||||
def set_builder(self, builder) -> any: self._builder = builder
|
||||
def set_active_notebook(self, path: str): self._active_notebook = path
|
||||
|
||||
def get_active_notebook(self) -> str: return self._active_notebook
|
||||
def get_active_section(self) -> str: return self._active_section
|
||||
def get_active_page(self) -> str: return self._active_page
|
||||
def set_active_notebook(self, path: str): self._active_notebook = path
|
||||
def set_active_section(self, path: str): self._active_section = path
|
||||
def set_active_page(self, path: str): self._active_page = path
|
||||
|
||||
|
||||
|
||||
def get_monitor_data(self) -> list:
|
||||
screen = self._main_window.get_screen()
|
||||
|
||||
Reference in New Issue
Block a user