Qt4 and auto completition

2009-06-27
2013-03-15
  • Erwin Mueller

    Erwin Mueller - 2009-06-27

    Hi, I'm new to Python and using Pydev the first time. I like to use python to develop with Qt4. Now, from Java Eclipse I'm used to the auto completition (i.e. if I enter xxxx. the IDE will give me every public method and attribute and with Ctrl+Space I get the overview, too). It works fine with the python lib, but it do nothing with the Qt4 lib. I.e. QtCore. Ctrl-Space do nothing.

    Can I somehow activate it? I using Fedora and I have PyQt4 and PyQt4-devel installed.

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-06-27

      Hi,

      Actually, pydev extensions has that, but only for files for which you have python code... as PyQt4 doesn't have source code, just the dll with the bindings, right now pydev will only give you code-completion for it when you have it imported. ie. if you do

      from PyQt4 import QtCore
      QtCore.|<-- request completion here

      it should give you those tokens.

      Cheers,

      Fabio

       
    • Erwin Mueller

      Erwin Mueller - 2009-06-27

      I have exact the same code but nothing happens.
      Shouldn't PyQt4-devel have the sources for PyQt4?

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-06-28

        Strange... do you have some error in your error log? (see: http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug\)

        Did you properly configure your python interpreter after installing PyQt4? (when it's configured, it caches many things and doesn't change it later if you change system libraries, so, you have to reconfigure the interpreter).

        Cheers,

        Fabio

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks