tkinter urgent help request

Lonnie Princehouse fnord at u.washington.edu
Tue Jun 24 17:04:34 EDT 2003


Eric Brunel <eric.brunel at pragmadev.com> wrote in message news:<bd9va0$o4j$1 at news-reader3.wanadoo.fr>...
> from Tkinter import *
> 
> root = Tk()
> 
> cnv = Canvas(root, width=400, height=400)
> cnv.pack(fill=BOTH,expand=1)
> 
> scroll = Scrollbar(cnv, command=cnv.xview, orient=HORIZONTAL)
> cnv.create_window(200, 400, anchor=S, window=scroll, width=400)
> cnv.configure(xscrollcommand=scroll.set, scrollregion=(0, 0, 1000, 1000))
> 
> root.mainloop()
> ----------------------------
> 
> One of the most useless script I ever wrote... Sorry: it's a bit late here...


Haha!  That self-scrollbar belongs in comp.lang.python.humor  (which
of course doesn't exist, but given the namesake of the language, maybe
it should...)




More information about the Python-list mailing list