Eclipse + PyDev 怎么做到 Gtk 的代码提示?

软件和网站开发以及相关技术探讨
回复
foxbat123
帖子: 12
注册时间: 2012-06-27 14:50

Eclipse + PyDev 怎么做到 Gtk 的代码提示?

#1

帖子 foxbat123 » 2012-06-29 12:04

Eclipse + PyDev 怎么做到 Gtk 的代码提示?


习惯了IDE. 没代码提示很不习惯。英语不好,记性也不好。

Eclipse + PyDev 很不错。但我用 PyGTK 没有代码提示了。

需要怎么设置 ?
头像
rickleaf
帖子: 34
注册时间: 2009-11-29 20:56

Re: Eclipse + PyDev 怎么做到 Gtk 的代码提示?

#2

帖子 rickleaf » 2013-03-08 12:08

我也遇到了这个问题,在老外的一封邮件中解决了
https://mail.gnome.org/archives/gtk-lis ... 00000.html

- In Eclipse's menu, go to "Window" > "Preferences" > "PyDev" > "Interpreter - Python" - In the "Python interpreters" list, select the Python interpreter you want to configure (this example assumes Python 2.7 installed into C:\bin\Python27, adjust as needed) - In the bottom notebook, go to the "Environment" tab and click the "New..." button - Set "Name:" to PATH and "Value:" to C:\bin\Python27\Lib\site-packages\gtk-2.0\runtime\bin;%PATH% and click the "OK" button. The "Value:" part points to the bin directory of your GTK+ bundle (this example assumes the PyGTK All-in-one installer which already comes
with an appropriate GTK+ bundle out of the box).
- In the bottom notebook, go to the "Forced Builtins" tab and click the "New..." button - Set "Builtin to add" to cairo,glib,gobject,gio,atk,pango,pangocairo,gtk,gtk.gdk,rsvg,gtksourceview2,goocanvas
and click the "OK" button.
- Back in the "Preferences" dialog, click the "OK" button and wait for PyDev to update its
symbol database.
回复