Re: Font Dialog not working on Mac
Teuvo Eloranta <[email protected]> Tue, 12 Apr 2011 15:56:44 +0300
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
--===============8387825027756746423== Content-Type: multipart/alternative; boundary=001636284b10a52c1a04a0b83aa2 --001636284b10a52c1a04a0b83aa2 Content-Type: text/plain; charset=ISO-8859-1 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 Neil Hughes <[email protected]> > 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 > > -- > Neil Hughes > > --001636284b10a52c1a04a0b83aa2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Neil,<div><br></div><div>I don't have a mac, but perhaps you can try= if calling directly the wxPython code works.</div><div>I assume this shoul= d work in mac too:</div><div><br></div><div>-----------</div><div><br></div= > <div><div>from wx import ColourDialog, ID_OK</div><div><br></div><div>dlg = =3D ColourDialog(self)</div><div>dlg.GetColourData().SetChooseFull(True)</d= iv><div>if dlg.ShowModal() =3D=3D ID_OK:</div><div><span class=3D"Apple-tab= -span" style=3D"white-space:pre"> </span>sColor =3D dlg.GetColourData().Ge= tColour()</div> <div>dlg.Destroy()</div><div>print sColor</div><div><br></div><div>--------= ---</div><div><br></div><div>Not sure if this ref. code helps you, or anyon= e listening to find out what is the real problem...</div><div>but if this d= oes work for you and all else fails, maybe you can use this kind of code in= you app.</div> <div><br></div><div>-Teuvo</div><div><br></div><div><br></div><br><div clas= s=3D"gmail_quote">2011/4/12 Neil Hughes <span dir=3D"ltr"><<a href=3D"ma= ilto:[email protected]">[email protected]</a>></span><br><= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex;"> <div class=3D"im">On 12/4/11 03:12, hwg wrote:<br> > On Mac it seems the FontDialog does not work properly. =A0When you try= to<br> > open the font dialog, it flashes on the screen for a split second (in<= br> > the lower right corner), then disappears.<br> ><br> > The same code run in Windows works fine.<br> <br> </div>The only Mac I have with PythonCard installed at the moment is an old= G3<br> iMac + OSX 10.4.11 + Python 2.5.1 + wxPython 2.8.9.2. Your example works<br= > OK on that when I run it, except the following warning appears in the<br> Terminal 3 times when I first open the font dialog:<br> <br> Python [2621] Unknown class NSTypographyPanelSlider in InterfaceBuilder fil= e<br> <br> --<br> Neil Hughes<br><br> </blockquote></div><br></div> --001636284b10a52c1a04a0b83aa2-- --===============8387825027756746423== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo --===============8387825027756746423== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pythoncard-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pythoncard-users --===============8387825027756746423==--