You can use the ShowFullScreen() method to display your window:
whatever.ShowFullScreen(True, style= wx.DEFAULT_FRAME_STYLE |
wx.NO_FULL_REPAINT_ON_RESIZE | wx.FULLSCREEN_ALL)
--Paul
···
On Fri, 2008-07-25 at 18:34 -0400, Clay Hobbs wrote:
I was wondering: is it possible to have a fullscreen (not just
maximized) window in wxPython? If there is, how is it done?
Thank you for your help, but the menu bar, status bar, and toolbar
didn't appear. This works a bit better:
self.ShowFullScreen(True, style=wx.DEFAULT_FRAME_STYLE |
wx.NO_FULL_REPAINT_ON_RESIZE)
But the toolbar still doesn't appear. Does anybody know what I'm doing
wrong?
-- Ratfink
···
On Sat, 2008-07-26 at 01:07 +0200, Paul Scott wrote:
On Fri, 2008-07-25 at 18:34 -0400, Clay Hobbs wrote:
> I was wondering: is it possible to have a fullscreen (not just
> maximized) window in wxPython? If there is, how is it done?
>
You can use the ShowFullScreen() method to display your window:
whatever.ShowFullScreen(True, style= wx.DEFAULT_FRAME_STYLE |
wx.NO_FULL_REPAINT_ON_RESIZE | wx.FULLSCREEN_ALL)
--Paul
You want
self.ShowFullScreen(not self.IsFullScreen(),wx.FULLSCREEN_NOCAPTION)
(okay, this toggles full screen mode, but this is the style you want.)
It works for me in the attached sample file.
Joshg
FullScreen.py (3.5 KB)
···
On 7/26/08, Clay Hobbs <clay@lakeserv.net> wrote:
Thank you for your help, but the menu bar, status bar, and toolbar
didn't appear. This works a bit better:
self.ShowFullScreen(True, style=wx.DEFAULT_FRAME_STYLE |
wx.NO_FULL_REPAINT_ON_RESIZE)
But the toolbar still doesn't appear. Does anybody know what I'm doing
wrong?
-- Ratfink
--
Josh English
Joshua.R.English@gmail.com
That gives me the same problem. I'm using wxPython 2.8.7.1, Python
2.5.1, and wxGTK 2.8.7. Once again, thank you for your help.
-- Ratfink
···
On Sat, 2008-07-26 at 11:01 -0700, Josh English wrote:
You want
self.ShowFullScreen(not self.IsFullScreen(),wx.FULLSCREEN_NOCAPTION)
(okay, this toggles full screen mode, but this is the style you want.)
It works for me in the attached sample file.
Joshg
On 7/26/08, Clay Hobbs <clay@lakeserv.net> wrote:
>
> Thank you for your help, but the menu bar, status bar, and toolbar
> didn't appear. This works a bit better:
>
> self.ShowFullScreen(True, style=wx.DEFAULT_FRAME_STYLE |
> wx.NO_FULL_REPAINT_ON_RESIZE)
>
> But the toolbar still doesn't appear. Does anybody know what I'm doing
> wrong?
>
> -- Ratfink
Sorry, I don't have the GTK to figure out a workaround, I'm stuck on Windows XP.
Josh.
···
--
Josh English
Joshua.R.English@gmail.com
http://joshenglish.livejournal.com
I added more to my program, allowing a user to see how the various
styles work on SetFullScreen.
I can't tell if there is a difference between FULLSCREEN_NOCAPTION and
FULLSCREEN_NOBORDER. They seem to give me the same results.
ShowFullScreen also doesn't "maximize" the window. If the caption is
still visible in fullscreen mode, the maximize button can be clicked,
and it does redraw.
I have no idea if this matters at all, or if it's just a variation
because I'm on Windows XP.
FullScreen.py (3.59 KB)
···
--
Josh English
Joshua.R.English@gmail.com
http://joshenglish.livejournal.com