[Pythonmac-SIG] wxCocoa no top menu

Ronald Oussoren ronaldoussoren at mac.com
Thu Aug 16 07:57:55 CEST 2012


On 12 Aug, 2012, at 5:31, Mark Livingstone <livingstonemark at gmail.com> wrote:

> Hi Guys,
> 
> I finally dragged myself kicking and screaming into the current
> millennium, and loaded Macports py27-wxpython-devel 2.9.4. on my
> Mountain Lion machine.
> 
> If I do a
> 
> frame.Show()
> 
> I get my program in a frame in the middle of the screen, and the usual
> top of screen menu. If I click the green LED, it resizes to take up
> most of the screen as expected. However, if I do
> 
> frame.ShowFullScreen(True,False)
> 
> I get the frame full screen, and I get the toolbar, but not the title
> bar with the 3 LEDs or the top menu.
> 
> Has anyone else come across this behaviour? Is this a bug, my
> misunderstanding, or the way it works?
> 
> I guess I could set the frame size to wx.DisplaySize() before showing
> it, but that seems messy unless it is the wxCocoa way of doing things?
> 
> Thanks in advance,

Looking at the documentation of wx I'd say this behavior is expected. When you click on the green led the window is maximized, and ShowFullScreen makes the window a full screen window (simular to the arrow icon's in the lefthand corner of Safari on recent OSX versions, and simular to how full-screen games work). Wx also has a Maximize method that does do the same thing as the green LED.

Ronald

> 
> MarkL
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4788 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120816/b4ae0cfd/attachment.bin>


More information about the Pythonmac-SIG mailing list