mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
gui_support.py: Implement manual window centreing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user