Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-23 Thread V. Armando Solé
Mads Ipsen wrote: rom the manual pages: "A dialog's default button is the button that's pressed when the user presses Enter (Return). This button is used to signify that the user accepts the dialog's settings and wants to close the dialog." In other words, the first button that gets added pr

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-23 Thread Sibylle Koczian
Mads Ipsen schrieb: > projetmbc wrote: >> Mads Ipsen a écrit : >>> If you change 'QDialog' to 'QWidget' the problem disappears. But I >>> have no idea why. Anybody? >>> >>> Best regards, >>> >>> Mads >> In the first example proposed that did not work, you can see that the >> button has the focus ev

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-23 Thread Mads Ipsen
projetmbc wrote: Mads Ipsen a écrit : If you change 'QDialog' to 'QWidget' the problem disappears. But I have no idea why. Anybody? Best regards, Mads In the first example proposed that did not work, you can see that the button has the focus even if the cursor is in the lineedit. I think th

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread projetmbc
Mads Ipsen a écrit : If you change 'QDialog' to 'QWidget' the problem disappears. But I have no idea why. Anybody? Best regards, Mads In the first example proposed that did not work, you can see that the button has the focus even if the cursor is in the lineedit. I think that the problem com

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread Mads Ipsen
Sibylle Koczian wrote: "Mads Ipsen" schrieb: Sibylle Koczian wrote: Hello, I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is connected to a method which takes its text and appends it to a QTextBrowser (that's taken from the first GUI example in the PyQt book by M.

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread Sibylle Koczian
"Mads Ipsen" schrieb: > Sibylle Koczian wrote: > > Hello, > > > > I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is > > connected to a method which takes its text and appends it to a > > QTextBrowser (that's taken from the first GUI example in the PyQt book > > by M. Summerfie

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-21 Thread Mads Ipsen
Sibylle Koczian wrote: Hello, I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is connected to a method which takes its text and appends it to a QTextBrowser (that's taken from the first GUI example in the PyQt book by M. Summerfield). The "clicked()" signal of the QPushButton

[PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-20 Thread Sibylle Koczian
Hello, I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is connected to a method which takes its text and appends it to a QTextBrowser (that's taken from the first GUI example in the PyQt book by M. Summerfield). The "clicked()" signal of the QPushButton is connected to a method