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


Groups > comp.lang.python > #54185 > unrolled thread

Re: How to differ between checked and unckecked

Started byVincent Vande Vyvre <vincent.vandevyvre@swing.be>
First post2013-09-15 09:56 +0200
Last post2013-09-15 09:56 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#54185 — Re: How to differ between checked and unckecked

FromVincent Vande Vyvre <vincent.vandevyvre@swing.be>
Date2013-09-15 09:56 +0200
SubjectRe: How to differ between checked and unckecked
Message-ID<mailman.385.1379232251.5461.python-list@python.org>
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>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web