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


Groups > comp.lang.python > #54185

Re: How to differ between checked and unckecked

Date 2013-09-15 09:56 +0200
From Vincent Vande Vyvre <vincent.vandevyvre@swing.be>
Subject Re: How to differ between checked and unckecked
References <1379230483.9698.28.camel@debian>
Newsgroups comp.lang.python
Message-ID <mailman.385.1379232251.5461.python-list@python.org> (permalink)

Show all headers | View raw


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 <https://launchpad.net/oqapy> . Qarte 
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>

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


Thread

Re: How to differ between checked and unckecked Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-09-15 09:56 +0200

csiph-web