Python Gtk+ Development In Linux Using Eclipse + Pydev, Unresolved Import: Gtk
I just tried to write my first Gtk+ program using python in linux mint with Eclipse + PyDev, but I met this error in PyDev, Unresolved import: Gtk program source code: http://pytho
Solution 1:
same issue: https://stackoverflow.com/a/11418828/1040891
In Gtk+ 3 Python bindings to binary modules are generated dynamically using *.typelib databases. The dynamic importer for accessing all the modules is located in gi.repository. PyCharm cannot detect these modules using its code insight, because they require special handling.
Note: IPython can detect and handle these modules
Solution 2:
You must use Python 3.x.
Eclipse->Windows->Preferences->PyDev->Python Interpreter*->Advanced Auto-Config->/usr/share/python3.3**->Ok->Apply->Ok
*If using Python, instead of Jython or IronPython
**If Python 3.3 installed, otherwise try python3, but I've not tested.
Post a Comment for "Python Gtk+ Development In Linux Using Eclipse + Pydev, Unresolved Import: Gtk"