Wed, Dec 4, 2:20 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: wxPython on Macintosh


JTrout ( ) posted Wed, 15 September 2010 at 5:02 AM · edited Sat, 26 October 2024 at 1:28 AM

Hi, again

Though I looked for past thread, I couldn't find a definite solution.

Forgive me if I miss it, please.

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.

  • How to use the color picker on Macintosh.

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.

  • Look Preferences of the widget.

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


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.