[Python-checkins] r62596 - sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst

guilherme.polo python-checkins at python.org
Wed Apr 30 19:02:04 CEST 2008


Author: guilherme.polo
Date: Wed Apr 30 19:02:04 2008
New Revision: 62596
Log:
Not sure what I had in mind when I set the style of a Label to the style of a Button, the example is corrected now.
Modified:
 sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst
Modified: sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst
==============================================================================
--- sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst	(original)
+++ sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst	Wed Apr 30 19:02:04 2008
@@ -76,10 +76,10 @@
 Ttk code::
 
 style = Ttk.Style()
- style.configure("BW.TButton", foreground="black", background="white")
+ style.configure("BW.TLabel", foreground="black", background="white")
 
- l1 = Ttk.Label(text="Test", style="BW.TButton")
- l2 = Ttk.Label(text="Test", style="BW.TButton")
+ l1 = Ttk.Label(text="Test", style="BW.TLabel")
+ l2 = Ttk.Label(text="Test", style="BW.TLabel")
 
 
 .. class:: Widget


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /