Future Python Gui?
Kevin Walzer
kw at codebykevin.com
Thu Apr 19 08:09:17 EDT 2007
bcwhite at pobox.com wrote:
> However, that file is completely useless without instructions on how
> to use it, and there are no instructions within the page or file.
>
> That is:
> - exactly where does it get installed
In your Python site-packages directory.
> - what else needs to get installed (eg. some dll)
The Tile package. Install ActiveTcl from http://www.activestate.com,
find the Tile package, and copy it to Python's installation of Tcl/Tk
(find the libs directory--I'm not on a Windows box ATM and don't
remember exactly).
> - where do you find these other things
http://www.activestate.com
> - where does that something else get installed
See above.
> - how do you import this module
import Tile
> - how does use of Tkinter change (if at all) once imported
>
It shouldn't change at all. I use Frame for Tkinter frames and
Tile.Frame for Tile frames, since a lot of the widgets have the same
names. Here's a sample:
from Tkinter import *
import Tile
root = Tk()
root.tk.call('package', 'require', 'tile')
def printme():
print "You clicked me"
frame = Tile.Frame(root)
frame.pack(fill=BOTH, expand=TRUE)
button = Tile.Button(frame, text="Print", command=printme)
button.pack()
root.mainloop()
HTH,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
More information about the Python-list
mailing list