Fleshing out rewrite

This commit is contained in:
2022-08-27 23:24:12 -05:00
parent 55515a0825
commit c8a62f2781
11 changed files with 1781 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
# Python imports
import os
# Lib imports
import gi
@@ -10,12 +11,15 @@ from .container import Container
class Window(Gtk.ApplicationWindow):
"""docstring for Window."""
def __init__(self, args, unknownargs):
super(Window, self).__init__()
self._SCRIPT_PTH = os.path.dirname(os.path.realpath(__file__))
self.setup_styling()
self.setup_signals()
self.add(Container())
@@ -24,9 +28,12 @@ class Window(Gtk.ApplicationWindow):
def setup_styling(self):
# self.set_icon_from_file("/usr/share/bulkr/bulkr.png")
self.set_icon_from_file(f"{self._SCRIPT_PTH}/../resources/icon.png")
self.set_title(app_name)
self.set_default_size(800, 200)
self.set_accept_focus(False)
self.set_skip_taskbar_hint(True)
self.set_skip_pager_hint(True)
self.set_type_hint(3) # 3 = TOOLBAR
self.set_gravity(8) # 5 = CENTER, 8 = SOUTH
self.set_position(1) # 1 = CENTER, 4 = CENTER_ALWAYS