Peter Gorniak wrote:
Reposting to this list as wxPython-mac seems dead....
Sorry, I intended to answer this message there but got swammped.
----------------------
I find the various list archives hard to search for recent hits, so sorry if there are known answers to the below. I'm on Mac OS X 10.3.2 and secondarily on various flavours of linux. Is this the appropriate (if quiet) list, or should this go to 'users'?
1) What version of wxPython should I be using to get the maximum amount of bug fixes? Disregarding 2.5 as still unstable, there seem to be at least three options: the current 2.4 branch in CVS, the 2.4.2 tarball (which still has patches applied that are not in CVS?), or the 2.4 branch with the patches applied from the tarball.
On the 2.4 branch the latter would probably be best, but wxMac 2.5 is actually in real good shape at the moment and has had lots of improvements over 2.4.
2) Is it a known bug in 2.4.2 that wxCheckListBox.Destroy() crashes the app? At least it does so on the Mac after removing one from a sizer. On the Mac you can get around this by just removing it, not destroying it, but on linux you need to destroy it or otherwise it seems to keep showing up when reusing the sizer/panel.
No, please provide a small sample app that shows the problem.
3) Should wxGLCanvas work out of the box? My pyopengl install works fine, but I can't get the glcanvas python demo or any of the samples I've found on the web to display anything but a blank window. All the drawing calls seem to be happening as they should, but nothing shows.
I'm not sure that I've ever tried it, because I had problems building PyOpenGL on OS X way back when and havn't gone back to try again. I'll try to get to it again sometime soon.
4) Is there an available fix for putting the preferences and exit menu items in only the right places on Mac OS X? This happens correctly for the About menu item, but prefs and exit get put into the correct place _and_ stay in their old place. Again, I found an old message stating that the behaviour I'm describing was being put in as a temporary fix, but that was over a year ago.
If you use the correct menu IDs (wxID_EXIT, wxID_PREFERENCES[I think]) then they should be automatically moved like the About menu item does. Otherwise you can use the SetMac* methods of wxApp to set the menu id that shoudl get that special behaviour:
static void SetMacAboutMenuItemId(long val);
static void SetMacPreferencesMenuItemId(long val);
static void SetMacExitMenuItemId(long val);
One gotcha about this however is that if you run the wxPython app directly with the Python Framework then the menus that the Framework creates can get in the way sometimes. If you create an app bundle and run it that way then things should work as expected.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!