Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get code-hints for gtk3 and python working on aptana?

My situation is Aptana eclipse plug-in installed and working properly.

If I from gi.repository import Gtk the code completion I'm used to from import gtk is gone. Any solutions or is it just a bug?

My interim solution is keeping an import gtk\ngtk. in a clipboard manager and dropping it in when I need hints.

like image 510
RobotHumans Avatar asked Apr 11 '12 12:04

RobotHumans


1 Answers

Yes, there is! You should add gi to the forced builtins and you'll get a code completion:

Go to the Window->Preferences, PyDev->Interpreter python section and add gi to the "Forced builtin" tab for each interpreter you would like to use Gtk3.

More about this: http://pydev.org/manual_101_interpreter.html

like image 128
hzsolt94 Avatar answered Sep 21 '22 12:09

hzsolt94