Windows application with python - Tcl/Tk. How?

richard_chamberlain richard_chamberlain at ntlworld.com
Sun Jun 4 06:50:27 EDT 2000


from Tkinter import *
root=Tk()
label=Label(root,width=12)
def clicker():
    label.configure(text="Hello Jilani")
button=Button(root,text="Click Me",command=clicker)
label.pack(side=TOP)
button.pack(side=TOP)
root.mainloop()

Try www.pythonware.com/library.htm

Also there is a good book by John Grayson (Python and Tkinter Programming)
and one on the way by Frederik Lundh published by O'Reilly.

Richard


Jilani Khaldi <jilanik at tin.it> wrote in message
news:393A2B0E.6879595F at tin.it...
> Hi All,
> could somebody send me a little example, or point me where can find it,
> about how to use python with Tcl/Tk to write GUI windows applications?
>
> Thank you.
>
> Jilani
> --
> <jk>
> ___________________________________________________
> http://space.tin.it/scuola/jkhaldi
> FreeBSD ~ The Power to Serve
>
>
>
>
>





More information about the Python-list mailing list