Forum: Poser Python Scripting


Subject: Setting button colors in a dialog?

maclean opened this issue on Apr 18, 2009 · 12 posts


maclean posted Sat, 18 April 2009 at 12:51 PM

Can anyone tell me what method python uses to set the color of a button in dialogs? I'm trying to modify a script which uses lines like this

self.buttonBack = Button(self.master, text="Back", bg="lightgreen",command=self.HandleBack)

Is there any option other than naming the color, (like 'lightgreen')? Can I use RGB codes for colors? If not, what names are acceptable in python? I've found a few by experimenting, but it's tedious work.

TIA

mac

PS I did trying searching for this subject, but I kept getting hundreds of unrelated posts.