wxPython on Windows Mobile 5

Jeffrey Barish jeff_barish at earthlink.net
Fri Jun 2 07:30:36 PDT 2006


I am still hoping for a current port of wxPython to Windows Mobile, but in
the meantime I had an epiphany about one of my problems.  I described two
problems: two Buttons that are supposed to be centered are shoved to the
left and four BitmapButtons that are supposed to be centered are shoved to
the right.  What I didn't explain is that these two sets of buttons are
supposed to occupy the same space on the screen at different times.  To
accomplish this result, I placed each set of buttons on a panel, I ran
Hide() on one of the panels, and I added both panels to a sizer.  I
manipulate Hide() and Show() on the panels (and then execute Layout() on
the sizer) under program control to select which is visible at any given
time.  Works great on XP.  On WM, it seems that setting Hide() on a panel
does not make it invisible to the sizer, so the sizer is squeezing one
panel to the left of the parent panel and the other to the right.  Is there
another technique that I can use to create this overlay?  I am wondering
whether I should explore SetSize or SetBestFittingSize or SetSizeHints.

I hate wasting time "fixing" code that is already correct, so I hope that
someone out there will respond to my plea for a current port of wxPython to
Windows Mobile.
-- 
Jeffrey Barish





More information about the wxpython-users mailing list