gui_support.py: Implement manual window centreing

This commit is contained in:
Mykola Grymalyuk
2023-05-28 10:57:05 -06:00
parent 597a4a6e14
commit 80e836e3bb
11 changed files with 63 additions and 28 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ import wx
import wx.adv
import logging
from resources.wx_gui import gui_support
from resources import constants
@@ -16,7 +18,7 @@ class AboutFrame(wx.Frame):
logging.info("Generating About frame")
super(AboutFrame, self).__init__(None, title="About", size=(350, 350), style=wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX))
self.constants: constants.Constants = global_constants
self.Centre()
gui_support.Centre(self, self.constants)
self.hyperlink_colour = (25, 179, 231)
self._generate_elements(self)