June 24th, 2005, 04:48 PM
[wxPython] Cover screen with Window
Is there a way for wxPython to cover the enter screen with the window of your program?
June 29th, 2005, 11:46 PM
I also need to know this. I am not up to that in my app yet. But there is a SplashScreen object and I think a 'display' object that has the screen's dimensions which you can use with size=wx.Size().
http://wiki.wxwidgets.org/docs.html search for 'Display'
I came up with this:
geometry = wx.Display().GetGeometry()
w = geometry
h = geometry
wx.Frame.__init__(self, None, -1, "Front End", style=wx.STAY_ON_TOP, pos=wx.Point(0, 0), size=wx.Size(w, h))
Last edited by movEAX_444; June 29th, 2005 at 11:54 PM.
June 30th, 2005, 01:27 AM
Doesn't Maximize() do what you want?
def __init__(self, parent, ID, title):
wx.Frame.__init__(self, parent, ID, title, style=wx.DEFAULT_FRAME_STYLE)
app = wx.PySimpleApp(0)
mainframe=TestFrame(None, -1, "Title")
June 30th, 2005, 02:10 AM
Thanks. style=wx.STAY_ON_TOP and the Maximize() method achieved exactly what I want. On Windows at least. Hopefully the same works on Linux.
June 30th, 2005, 03:22 AM
It should. I tested it on Linux (Ubuntu) and it works