Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'canvas': 0.07; 'latter': 0.09; 'cc:addr:python-list': 0.11; 'bind': 0.16; 'canvas,': 0.16; 'cc:name:python list': 0.16; 'frame,': 0.16; 'screen,': 0.16; 'scrollbar': 0.16; 'subject:Tkinter': 0.16; 'widgets.': 0.16; '\xa0what': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'widget': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'replace': 0.24; 'scroll': 0.24; 'text,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'options': 0.25; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'serve': 0.31; 'embed': 0.31; 'this.': 0.32; 'created': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'entry': 0.36; 'method': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'jason': 0.38; 'pm,': 0.38; 'does': 0.39; 'according': 0.40; 'to:addr:gmail.com': 0.65; 'url:htm': 0.73; 'action.': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=9uMBIxV3CxuqpUgn7jNVA1XWXdtBS4BmZLiMt0tZ1Zg=; b=ut1bhDCYPwUhv60Fdiy0G8cfW5st5UdExxtpuOz4/Avzuujm18KRwEzGIqOQd6/tTq kGGKrDSetEUFJoDvEdvDBLcsWjkJIbXB1l6gvWcFkYNKtDQrb3w03h8say7Ts3evnSNx GYHS+c2JYT+olc7AIx/1ah6u9uUexUlwpqCdW3syslwUwYHLWA+F6wNTtv0/b1lplc+8 CRrusB1pZ80OHKtXdSwFuw3NF40ZoBC4xbY4HmbjSaGEJLx09s0agkjexdi7Yx5itxfb LafK8mct5tzX/vKqQIG9d70dJbFy9JDoxzdiFzs5p0+iusBKM7DjhqCYsHapwa4iEocY IdDg== MIME-Version: 1.0 X-Received: by 10.50.22.3 with SMTP id z3mr149764ige.80.1364990753917; Wed, 03 Apr 2013 05:05:53 -0700 (PDT) In-Reply-To: References: Date: Wed, 3 Apr 2013 08:05:53 -0400 Subject: Re: Tkinter From: Jason Swails To: Renato Barbosa Pim Pereira Content-Type: multipart/alternative; boundary=047d7b10caff02626504d973ad7e Cc: python list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 65 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364990763 news.xs4all.nl 6970 [2001:888:2000:d::a6]:42820 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42657 --047d7b10caff02626504d973ad7e Content-Type: text/plain; charset=ISO-8859-1 On Tue, Apr 2, 2013 at 10:04 PM, Renato Barbosa Pim Pereira < renato.barbosa.pim.pereira@gmail.com> wrote: > Thanks for the advices, I need now one scrollbar to roll under screen, I > created the scrollbar but cant roll, please help me on this. > > http://pastebin.com/L6XWY6cm > You need to bind your scrollbar to a particular action. It does not roll because you never told it what 'rolling' should do. That said, you need to bind your scrollbar command to a widget that actually supports scrolling. According to [1], your options are the Listbox, Text, Canvas, and Entry widgets. What that means is that you will need to replace your Frame widget with a Canvas widget (or embed a Canvas in your Frame, although with your existing code that latter approach does not serve much purpose). Then bind your scrollbar command to the xview method of your Canvas instance (or the yview method of your Canvas instance if you want to scroll vertically). HTH, Jason [1] http://effbot.org/zone/tkinter-scrollbar-patterns.htm --047d7b10caff02626504d973ad7e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Tu= e, Apr 2, 2013 at 10:04 PM, Renato Barbosa Pim Pereira &l= t;renato.barbosa.pim.pereira@gmail.com> wrote:
Thanks for the advices, I need now one sc= rollbar to roll under screen, I created the scrollbar but cant roll, please= help me on this.

http://paste= bin.com/L6XWY6cm


You need to bind your scrollbar to a particular action. =A0It does not roll= because you never told it what 'rolling' should do. =A0That said, = you need to bind your scrollbar command to a widget that actually supports = scrolling. =A0According to [1], your options are the Listbox, Text, Canvas,= and Entry widgets. =A0What that means is that you will need to replace you= r Frame widget with a Canvas widget (or embed a Canvas in your Frame, altho= ugh with your existing code that latter approach does not serve much purpos= e). =A0Then bind your scrollbar command to the xview method of your Canvas = instance (or the yview method of your Canvas instance if you want to scroll= vertically).

HTH,
Jason

--047d7b10caff02626504d973ad7e--