Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'url:launchpad': 0.05; 'skip:` 10': 0.07; 'subject:How': 0.10; 'from:addr:swing.be': 0.16; 'from:addr:vincent.vandevyvre': 0.16; 'from:name:vincent vande vyvre': 0.16; 'message-id:@swing.be': 0.16; 'oqapy': 0.16; 'paqager': 0.16; 'received:mobistar.be': 0.16; 'subject:between': 0.16; 'url:oqapy': 0.16; 'url:paqager': 0.16; 'url:qarte': 0.16; 'v.v.': 0.16; '\xe9crit': 0.16; 'all,': 0.19; 'differ': 0.19; 'header:User-Agent:1': 0.23; 'header:In- Reply-To:1': 0.27; 'function': 0.29; 'ball': 0.31; 'slot': 0.31; "can't": 0.35; 'yours,': 0.36; 'should': 0.36; 'so,': 0.37; 'checks': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'signal': 0.60; 'different': 0.65; 'dear': 0.65; 'between': 0.67 Date: Sun, 15 Sep 2013 09:56:33 +0200 From: Vincent Vande Vyvre User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to differ between checked and unckecked References: <1379230483.9698.28.camel@debian> In-Reply-To: <1379230483.9698.28.camel@debian> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379232251 news.xs4all.nl 15931 [2001:888:2000:d::a6]:41197 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54185 Le 15/09/2013 09:34, Mohsen Pahlevanzadeh a écrit : > Dear all, > > > My program have a set of checkbox, > When user check a checkbox, i should > call slot1() and when user uncheck > checkbox, i should call slot2(),But > i can't understand when user checks > and unchecked. > > My questions is, How can i find out > user check and unchecked checkbox? > It's very important that i differ > between check and unckeck. > > Yours, > Mohsen > > In my crystal ball I see your are using PyQt. So, there's no different signal for each state of the QCheckBox, create one slot that will call the good function in accordance with the state wich is the argument of the signal `stateChanged`. -- Vincent V.V. Oqapy . Qarte . PaQager