Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54185 > unrolled thread
| Started by | Vincent Vande Vyvre <vincent.vandevyvre@swing.be> |
|---|---|
| First post | 2013-09-15 09:56 +0200 |
| Last post | 2013-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.
Re: How to differ between checked and unckecked Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-09-15 09:56 +0200
| From | Vincent Vande Vyvre <vincent.vandevyvre@swing.be> |
|---|---|
| Date | 2013-09-15 09:56 +0200 |
| Subject | Re: 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>
Back to top | Article view | comp.lang.python
csiph-web