GUI: work around Python 3.10 + wxPython 4.2.0 bug

This commit is contained in:
Dhinak G
2022-09-08 19:18:24 -04:00
parent d00e667caf
commit 8322e270db

View File

@@ -2358,7 +2358,7 @@ class wx_python_gui:
self.gpu_dropdown.SetSelection(0)
self.gpu_dropdown.SetPosition(wx.Point(
self.label_model.GetPosition().x,
self.label_model.GetPosition().y + self.label_model.GetSize().height / 1.5))
int(self.label_model.GetPosition().y + self.label_model.GetSize().height / 1.5)))
self.gpu_dropdown.Bind(wx.EVT_CHOICE, self.gpu_selection_click)
self.gpu_dropdown.Centre(wx.HORIZONTAL)
self.gpu_dropdown.SetToolTip(wx.ToolTip("Configures MXM GPU Vendor logic on pre-built models\nIf you are not using MXM iMacs, please leave this setting as is."))