JTrout opened this issue on Sep 15, 2010 · 3 posts
JTrout posted Wed, 15 September 2010 at 5:02 AM
Hi, again
My new worry is about wxPython on Macintosh.
The code with no problem on the Windows. doesn't work suitably on the Macintosh.
Please teach me about the following if there is some information on something.
The "accept" button and the "cance"l button don't appear on the wxColourDialog on Macintosh.
Even if wx.GetColourFromUser() is used, it is the same.
The color of Widget such as a button, TextBox and others can't be set up suitably.
For example.
The color of the button can't be changed by "SetBackgroundColour()" method.
Some sample script bundled in the Poser becomes the same result, too.
It works normally when the code which wxPython is used is executed independently with the Poser.
There is impression which the parent window to specify in widget influences.
However, I haven't understood wxPython well yet.
I am at a standstill after all.
I test this on OS X (10.4 Tiger).
Kind regards,
JTrout
semidieu posted Wed, 15 September 2010 at 9:54 AM
To change the background color from button, you must use a generic button: wx.lib.buttons
For the wxColourDialog... I don't know if there is a way to have a canvel button. Closing the dialog should send the 'apply' code...
JTrout posted Thu, 16 September 2010 at 4:47 AM
Hi, semidieu
Thank you for your reply.
I tried to check under the "lib.buttons" in accordance with your advice. Then, I found "wx.lib.colourselect.ColourSelect" by chance.
Though it looks like "ColourPickerCtrl", the color of the button changes on Macintosh.
However, still "accept" button and "cancel" button don't appear on the provided Color Picker.
"wx.lib.colourselect.ColourSelect" is useful for me because I would like to make a color select button.
Though the rest is the problem of Color Picker. ・・・・・.
I think that Mac always entails special handling.
No, though of course Mac isn't bad.
Thank you,
JTrout