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


Groups > comp.lang.python > #36604

Re: How to change colors of multiple widgets after hovering in Tkinter

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rantingrickjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:How': 0.09; 'bindings': 0.09; 'events.': 0.09; 'script,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; '(like': 0.15; 'subject:Tkinter': 0.16; 'subject:colors': 0.16; 'wrote:': 0.17; 'widget': 0.17; 'trying': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'class': 0.29; 'thursday,': 0.30; 'subject:change': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'except': 0.36; 'method': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'advice': 0.39; 'instead': 0.39; 'skip:" 10': 0.40; 'color': 0.69; '2013': 0.84; 'otten': 0.84
Newsgroups comp.lang.python
Date Thu, 10 Jan 2013 21:43:00 -0800 (PST)
In-Reply-To <mailman.378.1357845233.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=70.196.110.24; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj
References <f393c060-3017-420a-8ead-e790d36a302d@googlegroups.com> <mailman.378.1357845233.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 70.196.110.24
MIME-Version 1.0
Subject Re: How to change colors of multiple widgets after hovering in Tkinter
From Rick Johnson <rantingrickjohnson@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc 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>
Message-ID <mailman.387.1357882989.2939.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357882989 news.xs4all.nl 6967 [2001:888:2000:d::a6]:48464
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36604

Show key headers only | View raw


On Thursday, January 10, 2013 1:13:38 PM UTC-6, Peter Otten wrote:
> mountdoom wrote:
> > I´m trying to make a script, which will change the background and
> > foreground color of widgets after hovering.

Peter's advice is spot on except you may want ALL widgets to change colors on <ENTER> and <LEAVE> events. If you want all widgets use the "w.bind_all" method instead of "w.bind". Also check out the "w.bind_class" method to confine bindings to one particular class of widget (like a Tkinter.Button).

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to change colors of multiple widgets after hovering in Tkinter mountdoom12@gmail.com - 2013-01-10 10:32 -0800
  Re: How to change colors of multiple widgets after hovering in Tkinter Peter Otten <__peter__@web.de> - 2013-01-10 20:13 +0100
    Re: How to change colors of multiple widgets after hovering in Tkinter Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-10 21:43 -0800
    Re: How to change colors of multiple widgets after hovering in Tkinter Rick Johnson <rantingrickjohnson@gmail.com> - 2013-01-10 21:43 -0800

csiph-web