Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62999 > unrolled thread
| Started by | eneskristo@gmail.com |
|---|---|
| First post | 2014-01-02 11:52 -0800 |
| Last post | 2014-01-04 01:45 -0800 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-01-02 11:52 -0800 |
| Subject | On a scrollbar for tkinter |
| Message-ID | <4e8eb7ab-4df0-4d89-ad92-617bd376d85b@googlegroups.com> |
Hello people! I'm new to tkinter, but I have to use it for a program for a competition. So, I make a RadioButton program using a while loop. So far so good, fully working. BUT it didn't show the full content, even after maximising the window. So, my question is, how do I make a scroll bar(On x and y axis) for my Main Frame. I can provide additional info if needed. Notes: Python 3.2 (Using Portable Python for a while. Outdated but meh.) Thank you in advance!
[toc] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-01-02 15:41 -0500 |
| Message-ID | <mailman.4808.1388695300.18130.python-list@python.org> |
| In reply to | #62999 |
On 1/2/2014 2:52 PM, eneskristo@gmail.com wrote: > I'm new to tkinter, but I have to use it for a program for a competition. So, I make a RadioButton program using a while loop. So far so good, fully working. BUT it didn't show the full content, even after maximising the window. So, my question is, how do I make a scroll bar(On x and y axis) for my Main Frame. I can provide additional info if needed. Have you already searched 'python tkinter scrollbar', with maybe 'example' added? Or looked at the links given in the library manual chapter? -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-01-02 14:30 -0800 |
| Message-ID | <e9388258-adf1-4e21-b213-01d19da2389b@googlegroups.com> |
| In reply to | #63000 |
@Teddy Yes, indeed I have, but so far I have only found material for scrolling in other stuff, not the main frame. If you can give me a link...
[toc] | [prev] | [next] | [standalone]
| From | Rick Johnson <rantingrickjohnson@gmail.com> |
|---|---|
| Date | 2014-01-02 15:49 -0800 |
| Message-ID | <3cd10b81-178b-4003-b5e0-237246878e15@googlegroups.com> |
| In reply to | #62999 |
I know you're using Python3.x, so there may be new functionality in Tkinter that i am not aware of yet. I still have oodles of Python2.x dependencies and really don't see a need to make the jump yet -- so keep that in mind when taking my advice below.
In the old days of Tkinter, if you wanted to scroll the mainframe (aka:root, aka:Tkinter.Tk) you had two choices:
OPTION_1. Use tk.Canvas and "create_window" method
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/create_window.html
OPTION_2. The "TIX" extension widgets for Tkinter has a "scrolledwindow" object that requires much less work and provides a more intuitive interface than the canvas.
PS: It's "Terry" not "Teddy".
[toc] | [prev] | [next] | [standalone]
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-01-03 00:14 -0800 |
| Message-ID | <3a771930-0b4f-4ac8-87f6-89d72625b09e@googlegroups.com> |
| In reply to | #62999 |
@Terry Quite sorry but had to write that message in a hurry, didn't notice the name. @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!
[toc] | [prev] | [next] | [standalone]
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
|---|---|
| Date | 2014-01-03 12:00 +0100 |
| Message-ID | <mailman.4846.1388746814.18130.python-list@python.org> |
| In reply to | #63040 |
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
[toc] | [prev] | [next] | [standalone]
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-01-04 01:45 -0800 |
| Message-ID | <fb67169d-307e-47cd-b313-91768b626523@googlegroups.com> |
| In reply to | #63050 |
On Friday, January 3, 2014 12:00:05 PM UTC+1, Vlastimil Brom wrote:
> 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
Thank you sir! It really helped!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web