> > Has anyone got the Tile themeing engine (from http://tktable.sf.net) > > working with Tkinter? If so, how'd you do it? Instructions on the > > site don't give much clue for Python users.
I got this to work under win32 by just dropping the tile directory into the <python>/tcl directory. You may need to write a little python to wrap the new widgets, but its not hard even if you don't know tcl. Stephen. import Tkinter as tk root = tk.Tk() root.tk.call('package', 'require', 'tile') root.tk.call('namespace', 'import', '-force', 'ttk::*') root.tk.call('tile::setTheme', 'xpnative') class Notebook(tk.Widget): def __init__(self, master=None, cnf={}, **kw): tk.Widget.__init__(self, master, 'notebook', cnf, kw) def add(self, text, child): self.tk.call(self._w, 'add', child, "-text", text) book = Notebook(root) book.pack(fill=tk.BOTH, expand=1) v = tk.IntVar() for i in range(3): f = tk.Frame(book) tk.Radiobutton(f, text="Hello", variable=v, value=1).pack() tk.Radiobutton(f, text="There", variable=v, value=2).pack() book.add( "Tab %i"%i, f ) root.mainloop() _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss