[PyQt] QPushButton Checkable

2007-11-22 Thread Lawrence Shafer
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(): Thanks, Lawrence ___ PyQt mailing list

Re: [PyQt] threading

2007-11-22 Thread Andreas Pakulat
On 22.11.07 09:11:31, Lawrence Shafer wrote: > I've been playing with threading the last few hours, because I have a lcd > number object in the gui that I want to update once per second. Am I > barking up the right tree with threading? Maybe you're not barking up the right tree here. An IMHO eas

Re: [PyQt] Custom widgets, dynamic properties and css

2007-11-22 Thread David Boddie
On Thu Nov 22 14:50:20 GMT 2007, Richard Smith wrote: > Probably a really stupid question, but since I don't actually want to > change the style, merely get it to update, is this likely to be valid, > by the way to do it?: > > self.setStyle(self.style()) If you're using a style sheet, can't yo

[PyQt] threading

2007-11-22 Thread Lawrence Shafer
I've been playing with threading the last few hours, because I have a lcd number object in the gui that I want to update once per second. Am I barking up the right tree with threading? The problem Ive got is self is no longer defined in countFunction. Is there a way to run a thread that has acc

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 14:35:36, Alexandre Badez wrote: > On Nov 22, 2007 2:22 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > On 22.11.07 13:54:58, Alexandre Badez wrote: > > > By the way, is there a better than re implement the complete paint > > method ? > > > I mean, I just want to change the color of

Re: [PyQt] Custom widgets, dynamic properties and css

2007-11-22 Thread Richard Smith
Mark Summerfield wrote: > Well, if you're not mixing painting with calling setStyle() I don't see > why it should segfault. If you could reduce it to as small an example as > possible and post that then at least Phil could try it and see if it is > a PyQt bug. (A backtrace might help too.) No, not

Re: [PyQt] QItemDelegate

2007-11-22 Thread Alexandre Badez
On Nov 22, 2007 2:22 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > On 22.11.07 13:54:58, Alexandre Badez wrote: > > By the way, is there a better than re implement the complete paint > method ? > > I mean, I just want to change the color of the line according to the > "type" > > of the node (bu

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 13:54:58, Alexandre Badez wrote: > By the way, is there a better than re implement the complete paint method ? > I mean, I just want to change the color of the line according to the "type" > of the node (but not in every view). Sure, either let the model provide the color or change the

Re: [PyQt] QItemDelegate

2007-11-22 Thread Alexandre Badez
On Nov 22, 2007 11:48 AM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Thursday 22 November 2007, Alexandre Badez wrote: > > On Nov 22, 2007 11:09 AM, Phil Thompson <[EMAIL PROTECTED]> > > > > wrote: > > > On Thursday 22 November 2007, Alexandre Badez wrote: > > > > On Nov 21, 2007 5:26 PM, Alexa

Re: [PyQt] QItemDelegate

2007-11-22 Thread Phil Thompson
On Thursday 22 November 2007, Alexandre Badez wrote: > On Nov 22, 2007 11:09 AM, Phil Thompson <[EMAIL PROTECTED]> > > wrote: > > On Thursday 22 November 2007, Alexandre Badez wrote: > > > On Nov 21, 2007 5:26 PM, Alexandre Badez <[EMAIL PROTECTED]> > > > > wrote: > > > > On Nov 21, 2007 5:06 PM, A

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 11:21:31, Alexandre Badez wrote: > On Nov 22, 2007 11:09 AM, Phil Thompson <[EMAIL PROTECTED]> > wrote: > > QItemDelegate::decoration() is internal to Qt. > > But why does it work in Win32 and not on Unix ? Probably because on Linux the visibility flag of gcc is used, which completely

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 09:57:41, Alexandre Badez wrote: > On Nov 21, 2007 5:26 PM, Alexandre Badez <[EMAIL PROTECTED]> wrote: > > > On Nov 21, 2007 5:06 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > I'm steel trying to make my deletage, but I've steel have some problem. > My application must be multi-pl

Re: [PyQt] QItemDelegate

2007-11-22 Thread Alexandre Badez
On Nov 22, 2007 11:09 AM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Thursday 22 November 2007, Alexandre Badez wrote: > > On Nov 21, 2007 5:26 PM, Alexandre Badez <[EMAIL PROTECTED]> > wrote: > > > On Nov 21, 2007 5:06 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > > > [...] > > > > You ca

Re: [PyQt] QItemDelegate

2007-11-22 Thread Phil Thompson
On Thursday 22 November 2007, Alexandre Badez wrote: > On Nov 21, 2007 5:26 PM, Alexandre Badez <[EMAIL PROTECTED]> wrote: > > On Nov 21, 2007 5:06 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > > [...] > > > You can't, unless you copy the code, translate it to python and put it > > > into your

Re: [PyQt] Deleting a PyQt object

2007-11-22 Thread Phil Thompson
On Thursday 22 November 2007, Fabian Steiner wrote: > Hello! > > I'm currently working on a programm which adds a QTableWidget to an > existing QGridLayout using QGridLayout.addWidget(). When the user pushes > button btn1, this QTableWidget should disappear and the layout should free > the space. >

Re: [PyQt] QMainWindow close button [X] signals...

2007-11-22 Thread Alexandre Badez
On Nov 22, 2007 9:48 AM, Dirk Wagener <[EMAIL PROTECTED]> wrote: > Hi > > I have a QMainWindow. > What signals are emitted when the user presses the close button [X] in > the top right corner? > I want to wire the relevant signals to invoke a local slot (in my main > window class) to do some clean

Re: [PyQt] QProcess arguments list problem

2007-11-22 Thread kib2
Mark Summerfield a écrit : I think PyQt is nice enough to accept a Python list here. Also, I don't think you can use a shell redirection (>) like this, so I'd try: self.proc.start("lout", ["-o", "my_file.ps", "my_file.lout"]) Thanks Mark, this is exactly what I was looking for. If you

Re: [PyQt] QItemDelegate

2007-11-22 Thread Alexandre Badez
On Nov 21, 2007 5:26 PM, Alexandre Badez <[EMAIL PROTECTED]> wrote: > On Nov 21, 2007 5:06 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > > [...] > > You can't, unless you copy the code, translate it to python and put it > > into your own delegate. Only whats documented in the API docs can be

[PyQt] QMainWindow close button [X] signals...

2007-11-22 Thread Dirk Wagener
Hi I have a QMainWindow. What signals are emitted when the user presses the close button [X] in the top right corner? I want to wire the relevant signals to invoke a local slot (in my main window class) to do some cleanup when the user closes the window with the close button. Can somebody ple

Re: [PyQt] Deleting a PyQt object

2007-11-22 Thread Mark Summerfield
On 2007-11-22, Fabian Steiner wrote: > Hello! > > I'm currently working on a programm which adds a QTableWidget to an > existing QGridLayout using QGridLayout.addWidget(). When the user pushes > button btn1, this QTableWidget should disappear and the layout should free > the space. > > In order to