Re: [PyQt] QTableWidget Desperation!

2007-11-23 Thread Lawrence Shafer
OK, I'm a total ID10T! Two more lines did it! just when you give up after 3 hrs of struggle, it all comes together! Sorry! additional code; item = QtGui.QTableWidgetItem("simple text") self.tableWidget.setItem(0, 0, item) Lawrence Shafer wrote: I am tryin

[PyQt] QTableWidget Desperation!

2007-11-23 Thread Lawrence Shafer
I am trying to get the QTableWidget figured out. So far, adding data to the cells doesn't seem straightforward. I can't seem to find a good solid example that is simple, maybe because it's not simple! This is what I have so far, can you just give me an example of how to put simple text into on

Re: [PyQt] Can't get QCheckBox to work in a QTableView

2007-11-23 Thread Andreas Pakulat
On 23.11.07 09:04:56, Chris Dunscombe wrote: > Hi, > > I'm trying to have a checkable column plus label with other columns in a > table. I can't use > QTableWidget as one of the other columns is a ComboBox. After much trying, > googling and reading of > Mark's excellent new book I just can't get

[PyQt] Can't get QCheckBox to work in a QTableView

2007-11-23 Thread Chris Dunscombe
Hi, I'm trying to have a checkable column plus label with other columns in a table. I can't use QTableWidget as one of the other columns is a ComboBox. After much trying, googling and reading of Mark's excellent new book I just can't get it to work. I'm clearly doing something wrong Main probl

Re: [PyQt] QPushButton Checkable

2007-11-23 Thread Phil Thompson
On Friday 23 November 2007, Lawrence Shafer wrote: > I have set a QPushButton checkable, so now it "sticks" down when > clicked. How can I detect that in an if statement? > > I tried this but it gives me an AttributeError: toggled error. > > if self.startButton.toggled(): isChecked() Phil ___