[PyKDE] QPushButton on OS X: another peculiarity

2006-10-11 Thread Arve Knudsen
I've stumbled onto another peculiar problem with QPushButton on OS X (and PyQt 4.0.1). I have a dialog with only two buttons, "Next" and "Cancel". In my code I make "Next" default, by calling setDefault(True) on it. However, if I run the app as the root user, with "sudo", the "Cancel" button is def

Re: [PyKDE] QPushButton

2003-09-06 Thread Phil Thompson
On Tuesday 02 September 2003 10:10 am, GuineaPig wrote: > Hello, > > Situation is as follows: > > I'm working with pyQt and I have a widget with 40 QPushButtons > (toggles). On 'toggled()' the buttons emit a signal to a function. In > this function I'd like to find out wich button was pressed. I

Re: [PyKDE] QPushButton

2003-09-02 Thread Gordon Tyler
GuineaPig wrote: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating through all the buttons to check theirs state but I c

Re: [PyKDE] QPushButton

2003-09-02 Thread GuineaPig
Fredrik Juhlin wrote: Hi, GuineaPig wrote: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating through all the buttons to c

Re: [PyKDE] QPushButton

2003-09-02 Thread Fredrik Juhlin
Hi, GuineaPig wrote: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating through all the buttons to check theirs state bu

[PyKDE] QPushButton

2003-09-02 Thread GuineaPig
Hello, Situation is as follows: I'm working with pyQt and I have a widget with 40 QPushButtons (toggles). On 'toggled()' the buttons emit a signal to a function. In this function I'd like to find out wich button was pressed. I'm thinking about iterating through all the buttons to check thei