Hi
i have been fiddling around with the wxPython GUI toolkit for a bit and i wanted one of my programs to start with the window expanded. I googled it but couldn't find an answer there so any help here would be greatly appreciated.

Recommended Answers

All 4 Replies

Try ...

frame.SetSize((x, y))

# another way, wx.Frame has a ShowFullScreen method
# strips all border decorations and buttons
# (False restores original frame)
myFrame.ShowFullScreen(True, style=wx.FULLSCREEN_ALL)

is there any way using the os or sys modules that you can find the resolution of the screen and then maybe apply it to

frame.SetSize((x,y))

so that way it could run on machines that had different resolutions without looking weird

Use wx.DisplaySize(), it gives width, height tuple of the display screen

yeah thats perfect. Thanks everyone!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.