Re: [PyQt] QCheckBox problem

2009-01-08 Thread Ulrich Berning
Doug Hackworth wrote: > FoobarApplication is calling the wrong super-class __init__. Duly noted, thanks for the correction. I changed it to call QtGui.QMainWindow.__init__() instead. The change produced no visible effect, but I assume it's a better initialization to call, so thanks for po

Re: [PyQt] QCheckBox problem

2009-01-05 Thread Doug Hackworth
> FoobarApplication is calling the wrong super-class __init__. Duly noted, thanks for the correction. I changed it to call QtGui.QMainWindow.__init__() instead. The change produced no visible effect, but I assume it's a better initialization to call, so thanks for pointing this out. Use

Re: [PyQt] QCheckBox problem

2009-01-05 Thread Phil Thompson
On Mon, 05 Jan 2009 11:57:16 -0600, Doug Hackworth wrote: >> If that isn't the problem, it'd help someone to figure it out if you >> could provide a complete small executable program that exhibits the >> problem behavior. > > Attached is an example program which illustrates the problem I'm havi

Re: [PyQt] QCheckBox problem

2009-01-05 Thread Doug Hackworth
If that isn't the problem, it'd help someone to figure it out if you could provide a complete small executable program that exhibits the problem behavior. Attached is an example program which illustrates the problem I'm having. Again, the QCheckBox seems to work (its isChecked() method retu

Re: [PyQt] QCheckBox problem

2009-01-04 Thread Hackworth, Doug
> If the code you've provided is what you actually have, you haven't > connected the signal to the slot you show - instead of > self.MyCheckboxSlotFunction, you should be connecting to > self.CheckMultiMask. Darn it. Editing problem, not a coding problem. I was renaming my variables/functions t

Re: [PyQt] QCheckBox problem

2009-01-04 Thread Jim Bublitz
On Sunday 04 January 2009 17:30:41 pm Doug Hackworth wrote: > Greetings. This should be an easy one for someone to answer. > > Simple situation: I have a QCheckBox on a main window along with > other widgets, but mysteriously it won't do anything. Since all my > other widgets (buttons, mainly) d

[PyQt] QCheckBox problem

2009-01-04 Thread Doug Hackworth
Greetings. This should be an easy one for someone to answer. Simple situation: I have a QCheckBox on a main window along with other widgets, but mysteriously it won't do anything. Since all my other widgets (buttons, mainly) do what they're supposed to, I suspect I am using the QCheckBox i

Re: [PyQt] QcheckBox

2008-10-10 Thread Darryl Wallace
Hello, The checkbox has the ability to be tri-state (unchecked | partially checked | checked). So using setCheckState() will require a Qt.CheckState enum, since this is how you set it's tri-state value. What you want to use is setChecked(True) or setChecked(False) That should work. If yo

[PyQt] QcheckBox

2008-10-10 Thread Min Li
Hi, everyone. Sorry to bother your guys. I'm a Novice in PyQt. Currently, I want to set the 'clicked' status as the default status for QcheckBox. I have tried some ways, such as setCheckState(). However, they're not working. I think I use it in a wrong way. Could you pleasae give me some advi

Re: [PyQt] QCheckBox in a QTreeWidget

2008-09-05 Thread David Boddie
On Fri Sep 5 22:19:22 BST 2008, Jake Richards wrote: > I've done a bit of googling and looked at the docs but haven't seen an > example of how to place a checkbox (or other widgets) into a QTreeWidget. You need to change the flags for the item so that it is editable: http://www.riverbankcomputin

[PyQt] QCheckBox in a QTreeWidget

2008-09-05 Thread Jake Richards
Hello: I've done a bit of googling and looked at the docs but haven't seen an example of how to place a checkbox (or other widgets) into a QTreeWidget. Does anyone have a small sample of code they can share that shows how to insert a widget such as a QCheckbox into either a QTree or QList? Thank