I'm currently attempting to learn the ttk widgets in the process of updating our locally written Tkinter reference manual.
However, I am unable to reproduce the behavior described in this paragraph from the Python 2.7.3 library reference. This is from http://docs.python.org/2.7/library/ttk.html, in the section on the ttk.Widget class, the table of "Label Options": image: Specifies an image to display. This is a list of 1 or more elements. The first element is the default image name. The rest of the list is a sequence of statespec/value pairs as defined by Style.map(), specifying different images to use when the widget is in a particular state or a combination of states. All images in the list should have the same size. First of all, image names don't work. I was able to get a ttk.Label to display an image by using image=t, where t is an instance of ImageTk.PhotoImage. For the rest of it, after an hour of trying I was unable to get the state-dependent image changing to work. If anyone has a working example of this, I would greatly appreciate it! Best regards, John Shipman (j...@nmt.edu), Applications Specialist New Mexico Tech Computer Center, Speare 146, Socorro, NM 87801 (575) 835-5735, http://www.nmt.edu/~john ``Let's go outside and commiserate with nature.'' --Dave Farber P.S. Here's a preview of the new stuff. This is the section on the Treeview widget, which I think I understand now: _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss