From: Teuvo E. <te...@gm...> - 2011-04-12 12:57:11
|
Hi Neil, I don't have a mac, but perhaps you can try if calling directly the wxPython code works. I assume this should work in mac too: ----------- from wx import ColourDialog, ID_OK dlg = ColourDialog(self) dlg.GetColourData().SetChooseFull(True) if dlg.ShowModal() == ID_OK: sColor = dlg.GetColourData().GetColour() dlg.Destroy() print sColor ----------- Not sure if this ref. code helps you, or anyone listening to find out what is the real problem... but if this does work for you and all else fails, maybe you can use this kind of code in you app. -Teuvo 2011/4/12 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > On 12/4/11 03:12, hwg wrote: > > On Mac it seems the FontDialog does not work properly. When you try to > > open the font dialog, it flashes on the screen for a split second (in > > the lower right corner), then disappears. > > > > The same code run in Windows works fine. > > The only Mac I have with PythonCard installed at the moment is an old G3 > iMac + OSX 10.4.11 + Python 2.5.1 + wxPython 2.8.9.2. Your example works > OK on that when I run it, except the following warning appears in the > Terminal 3 times when I first open the font dialog: > > Python [2621] Unknown class NSTypographyPanelSlider in InterfaceBuilder > file > > -- > XXXXXXXXXXX > > |