Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63050
| References | <4e8eb7ab-4df0-4d89-ad92-617bd376d85b@googlegroups.com> <3a771930-0b4f-4ac8-87f6-89d72625b09e@googlegroups.com> |
|---|---|
| Date | 2014-01-03 12:00 +0100 |
| Subject | Re: On a scrollbar for tkinter |
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4846.1388746814.18130.python-list@python.org> (permalink) |
2014/1/3 <eneskristo@gmail.com>:
> @Rick
> I found some solutions for python 2.x, but still, as I am with the future, I need a futuristic solution or 2, so if anyone else could help me, I'd be grateful!
> --
Hi,
I usually don't use tkinter myself, hence others may have more
idiomatic suggestions,
but you can of course use ScrolledWindow tix with python3; cf.:
from tkinter import tix
root = tix.Tk()
root.title("scrolled window")
root.geometry("50x500+50+50")
sw= tix.ScrolledWindow(root)
sw.pack(fill=tix.BOTH, expand=1)
for i in range(1,101):
cb = tix.Checkbutton(sw.window, text=str(i))
cb.pack(fill=tix.BOTH, expand=0)
root.mainloop()
hth,
vbr
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
On a scrollbar for tkinter eneskristo@gmail.com - 2014-01-02 11:52 -0800
Re: On a scrollbar for tkinter Terry Reedy <tjreedy@udel.edu> - 2014-01-02 15:41 -0500
Re: On a scrollbar for tkinter eneskristo@gmail.com - 2014-01-02 14:30 -0800
Re: On a scrollbar for tkinter Rick Johnson <rantingrickjohnson@gmail.com> - 2014-01-02 15:49 -0800
Re: On a scrollbar for tkinter eneskristo@gmail.com - 2014-01-03 00:14 -0800
Re: On a scrollbar for tkinter Vlastimil Brom <vlastimil.brom@gmail.com> - 2014-01-03 12:00 +0100
Re: On a scrollbar for tkinter eneskristo@gmail.com - 2014-01-04 01:45 -0800
csiph-web