[PyQt] how to link my widget to program

Surya K suryak at live.com
Tue Apr 10 09:20:23 BST 2012

Hi there, 

I am new to GUI and Qt. So, I thought to stick with Qt Designer to write some small UI's for my programs (which I write in python).

I could manage to arrange widgets over canvas but don't know how to connect them to my program and run. So, could anyone help me on it?

I have attached as a zip file containing (myApp.ui) file so that you can help me specifically.

My app details:

It contains 2 lineEdit widgets, 1 Push button, 1 textBrowser.

This app should take two strings from the two lineEdit widgets process those in my program and show the output of the textBrowser.

So, how would I do that?

I usually take those two strings on command line like this:name1 = raw_input()name2 = raw_input()

theOutputStr(name1, name2)It returns a string.
How should possibly do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120410/c6996936/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myApp.zip
Type: application/octet-stream
Size: 1080 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120410/c6996936/attachment-0001.obj>

More information about the PyQt mailing list