Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42657
| 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 | <jason.swails@gmail.com> |
| 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 | <CAHq3d9BRdS7-n_8yGvMGvx=C1NPeGfhk154g0AYsWBCr+DkAiQ@mail.gmail.com> |
| References | <CAHq3d9C_ruMdbhc2vWZJCRDh=o4yQhEm33r=CMp9rbzqGYdx6g@mail.gmail.com> <CAEk9e3o=CzSeHD902DmMiVgXY0ZK1S4wLnDY0DOQw1Ab03QKXA@mail.gmail.com> <CAHq3d9Cfudq1RpvAnuGEjr4PWjuqqaskqerDHa_OLSYnJhb6dw@mail.gmail.com> <CAEk9e3p097wC0dHagQe_=9CTYkYVyH-TMmLZ-Lf7=WRMUf5_DQ@mail.gmail.com> <CAHq3d9BRdS7-n_8yGvMGvx=C1NPeGfhk154g0AYsWBCr+DkAiQ@mail.gmail.com> |
| Date | Wed, 3 Apr 2013 08:05:53 -0400 |
| Subject | Re: Tkinter |
| From | Jason Swails <jason.swails@gmail.com> |
| To | Renato Barbosa Pim Pereira <renato.barbosa.pim.pereira@gmail.com> |
| Content-Type | multipart/alternative; boundary=047d7b10caff02626504d973ad7e |
| Cc | python list <python-list@python.org> |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.51.1364990763.3114.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Tkinter Jason Swails <jason.swails@gmail.com> - 2013-04-03 08:05 -0400
csiph-web