User Tools

Site Tools


qt:pyqt_ide_autocompletion_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
qt:pyqt_ide_autocompletion_testing [2011/04/17 11:19] – [PyDev] mithatqt:pyqt_ide_autocompletion_testing [2011/04/17 11:22] mithat
Line 19: Line 19:
     open()     open()
 </code> </code>
-This is from my {{:qt:evalpyqt.zip|EvalPyQt}} example project (except for the last line). +This is from my {{:qt:evalpyqt.zip|EvalPyQt}} example project (except for the last line). All IDEs were set up with this project. Then everything after ''if __name__ == '__main__':'' in ''main.py'' was removed and the document savedThen the code was retyped.
-===== Spyder ===== +
-<code python> +
-if __name__ == '__main__': +
-    # create application +
-    app = QApplication(sys.argv) # worked, but calltip/doc not that helpful +
-    app.setApplicationName('My PyQt4 QtGui Project') # good +
-    # create widget +
-    w = MainWindow() # good +
-    w.setWindowTitle('My PyQt4 QtGui Project') # w's setWindowTitle not detected, no calltip +
-    w.show() # w's show not detected +
-    # connection +
-    QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()')) # good, calltip/doc not that helpful +
-        # no help at all in suggesting signals and slots +
-    # execute application +
-    sys.exit(app.exec_()) # no ac until 'sys.e', calltip not helpful; ac at 'app.e', calltip helpful! +
-    ############################ +
-    open() # completion at 'o', calltip/doc is helpful +
-</code>     +
-A huge win for Spyder is that the docs remain onscreen after the calltips have disappeared. +
-Syntax error markers can be very slow.+
  
 ===== Eclipse + PyDev ===== ===== Eclipse + PyDev =====
Line 79: Line 59:
 </code> </code>
 Calltips remain onscreen throughout typing. Calltips remain onscreen throughout typing.
 +
 ===== Eric (Assistant handles both) ===== ===== Eric (Assistant handles both) =====
 <code python> <code python>
Line 117: Line 98:
 </code> </code>
 Calltips remain onscreen throughout typing. Calltips remain onscreen throughout typing.
 +
 +===== Spyder =====
 +<code python>
 +if __name__ == '__main__':
 +    # create application
 +    app = QApplication(sys.argv) # worked, but calltip/doc not that helpful
 +    app.setApplicationName('My PyQt4 QtGui Project') # good
 +    # create widget
 +    w = MainWindow() # good
 +    w.setWindowTitle('My PyQt4 QtGui Project') # w's setWindowTitle not detected, no calltip
 +    w.show() # w's show not detected
 +    # connection
 +    QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()')) # good, calltip/doc not that helpful
 +        # no help at all in suggesting signals and slots
 +    # execute application
 +    sys.exit(app.exec_()) # no ac until 'sys.e', calltip not helpful; ac at 'app.e', calltip helpful!
 +    ############################
 +    open() # completion at 'o', calltip/doc is helpful
 +</code>    
 +A huge win for Spyder is that the docs remain onscreen after the calltips have disappeared.
 +Syntax error markers can be very slow.
  
qt/pyqt_ide_autocompletion_testing.txt · Last modified: 2011/04/17 11:22 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki