Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63050

Re: On a scrollbar for tkinter

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <vlastimil.brom@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.033
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'root': 0.05; 'suggestions,': 0.07; 'tkinter': 0.07; 'python': 0.11; 'tix': 0.16; 'import': 0.22; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'usually': 0.31; 'anyone': 0.31; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'course': 0.61; 'more': 0.64; 'future,': 0.83
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Dl48+DtN0lMXAtJPIStWbmG47RppSFRzI0n8nyBiUxU=; b=bZ4HheTtRrWEFT2tgOYzJpsfJaMH9js2xRsPFStWIMYGieCfu72BSXVbr3f/jNWzEv 6tmByGr4LtxxufKzPWu03aB7HTPNVPTdCR303nbQyK1G+kSc0nBsL5BCdXzqSgGWoLFb 97I0IRsoQFOghjqIChrsSgTaSIuBwxIU/+TfG3LmKUzb+a+sHbzEZ1UqoihzduXvqxyn yezcrvSQbP3DU4PDZGxby05znvXKWjUdoDXNbAN9thyqNuYiWJeEbMxYNTF44+/dAv5k yXxvBPUpwtWDmno+c/Ldj68D3IfXEelL+3p4JFrikP5mwi82oK5kPL6fMT1YXtQuexi2 A/tg==
MIME-Version 1.0
X-Received by 10.182.144.136 with SMTP id sm8mr258153obb.63.1388746805472; Fri, 03 Jan 2014 03:00:05 -0800 (PST)
In-Reply-To <3a771930-0b4f-4ac8-87f6-89d72625b09e@googlegroups.com>
References <4e8eb7ab-4df0-4d89-ad92-617bd376d85b@googlegroups.com> <3a771930-0b4f-4ac8-87f6-89d72625b09e@googlegroups.com>
Date Fri, 3 Jan 2014 12:00:05 +0100
Subject Re: On a scrollbar for tkinter
From Vlastimil Brom <vlastimil.brom@gmail.com>
To python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4846.1388746814.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388746815 news.xs4all.nl 2886 [2001:888:2000:d::a6]:48642
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63050

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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