# Main window class MainWindowclass MainWindow(wx.Frame): # Class variables file_path Record file Lu Jin file_path = '' def __init__(self): super().__init__(None, title=" Performance analysis ", size=(300, 570)) panel = wx.Panel(self) # Set center , Maximum and minimum dimensions self.Center() self.SetMaxSize((300, 570)) self.SetMinSize((300, 570))
https://blog.csdn.net/rao356/article/details/120708350
Refer to this