[PyQt] Beginners - signal - slots - question
Henrik Pauli
henrik.pauli at gmail.com
Fri Dec 21 11:26:02 GMT 2007
On Friday 21 December 2007, Jochen Georges wrote:
> Hello,
>
> i finished my first "Hello-World"-PyQt-program sucessfully,
> but not my second.
>
> I googled for an example, but did not find any, so maybe you can give me a
> hint.
>
> There is a QLineEdit-element and a QLabel-element.
> When te user finished editing the QLineEdit, the text should be changed and
> then displayed in the QLabel.
>
> Which is the right QLineEdit-Signal?
> the action should start when return is pressed, but the
> signal "returnPressed" has no parameter "QString"
> and
> textChanged(QString) or textEdited(QString) react on every single input
> How do i place my own method, that changes the text?
>
Here's a hint that might get you going:
Create a new slot for your own use :) In PyQt it’s just a python method, you
can do anything in it.
More information about the PyQt
mailing list