def OnInit(self):
w = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_X)
h = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y)
frame = MainFrame(None, -1, "", (w / 2 - 200, h / 2 - 50), style = wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX)
self.SetTopWindow(frame)
frame.Show()
return True
评论列表
文章目录