osx - can't set background color ttk python os x using styles -



osx - can't set background color ttk python os x using styles -

with code fragment, expect label have background color red. def createwidgets(self):

style = ttk.style() style.configure("red.tlabel", foreground="green", background="red") self.label1 = ttk.label(textvariable=self.numberarray[0][0],style="red.tlabel") self.label1.pack()

i greenish foreground color can't alter background color. on os x. i'm using activestate's tcl , python. same problem occurs python 3.2 , 2.7

you'll seek alter alternative supposed exist according element options, have no effect. as example, can't modify background color of button in "aqua" theme used mac os x. while there valid reasons these cases, @ moment not easy find them, can create experimenting frustrating @ times.

taken tutorial http://www.tkdocs.com/tutorial/styles.html

python osx operating-system tkinter ttk

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -