Menubar Size

Hi List,

I an using WxPython 2.8.1.1 on Python 2.4.4

When I try
self.menuBar.GetSizeTuple()[0]

I get
-258359228
and
-258359240
once a menu is added.

Any clues?

Cheers,
Davy

···

--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/

Davy Mitchell wrote:

Hi List,

I an using WxPython 2.8.1.1 on Python 2.4.4

When I try
self.menuBar.GetSizeTuple()[0]

I get
-258359228
and
-258359240
once a menu is added.

Although a menubar derives from wx.Window it may or may not be an actual window in the native implementation. If not then calling things like GetSize will attempt to use an invalid handle and will just fail, leaving whatever memory garbage was already in the data objects it is trying to set.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Makes sense given the nature of wxPython. Luckily, I've found a way to
live without the menu size.

Thanks,
Davy

···

On 2/20/07, Robin Dunn <robin@alldunn.com> wrote:

Although a menubar derives from wx.Window it may or may not be an actual
window in the native implementation.

--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel