On Sat, 20 Dec 2008 17:22:29 -0500, Neal Becker <[email protected]> wrote: > I hate to ask for help debugging this code, but this is my first little > pyqt project, and I'm stumped. > > This little form has a text input widget, and a button marked 'dowload'. I > connected the text input "returnPressed" to one method, and connected the > download button "clicked" to another method. > > When I hit return in the text input, both methods trigger! Can anyone give > me a hint?
Have a look at the description of default buttons in QDialog and QPushPutton.setAutoDefault(). Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
