LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3098|回复: 8

pida , 一个不错的 Python IDE , 跟 gvim 集成很好

[复制链接]
发表于 2005-9-10 13:30:08 | 显示全部楼层 |阅读模式
http://pida.berlios.de/


Hello, and Welcome to the PIDA website!

PIDA is the Python Integrated Development Application. It is an IDE (integrated development environment) written in Python (http://www.python.org/) and the GTK (http://www.pygtk.org/) graphical toolkit.

Pida is an IDE, but one that is slightly different from other IDEs. Rather than attempting to write a set of development tools of its own, Pida uses tools that the developer has available. In this regards Pida can be used as a framework for putting together your own bespoke IDE.

Although still a young application, Pida can already boast a huge number of features because of the power of some of the tools it integrates. For example features such as code completion and syntax highlighting are well implemented in Pida's integrated editors far better than any editor built for a commercial IDE. Pida currently features: FUll code editing (syntax highlighting, code completion, automatic indenting, block commenting etc) Project management, version control management, Python debugger and profiler, GTK graphical user interface building and rapid application design, Pastebin integration.


这儿有 deb 包
http://pida.berlios.de/index.php/PIDAocumentation






发表于 2005-9-12 00:58:24 | 显示全部楼层
现在用的SPE,感觉也还行。个人觉得KDE下不妨试试ERIC3,习惯eclipse的可以用pydev,我是用wxPython, 所以用SPE了。你推荐这个倒是还没接触过……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-12 22:08:40 | 显示全部楼层
eric / eric3 我在用

但是感觉eric 的编辑器没有  vim 顺手



跟 spe 类似的还有 pype
对了 , 官方的 spe 在我的 Linux 下处理中文有问题
我给文件 /usr/bin/spe 的前面加了

#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
sys.setappdefaultencoding('utf8')

才好
回复 支持 反对

使用道具 举报

发表于 2005-9-13 01:40:36 | 显示全部楼层
呵呵,我的机器上也同样有这个中文问题,这下又学了一手,谢谢啦~这个问题回头应该反映给spe的维护者。

用spe主要是看上其有语法自动补全功能,又集成了wxGlade,现在感觉还可以,所以也就没太去了解别的IDE了。vim很遗憾地没有学过,IDE的使用习惯全是eclipse培养出来的……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-13 11:01:01 | 显示全部楼层
Archetype 兄:

eric / eric3 也有自动补全 , 她带的界面设计器是 designer-qt3

vim 的自动补全 python 代码等要自己设置一下






对了 , spe 还有个问题
现在 spe 可以显示 utf8 中文了 , 但是 spe 的自动补全是 Ctrl + 空格 , 跟输入法的冲突
搞的默认没法输入中文
回复 支持 反对

使用道具 举报

发表于 2005-9-13 20:45:01 | 显示全部楼层
曾经企图用过一阵Eric3,但在我的gnome环境下,感觉显示出来的界面总是有点怪怪,等发现spe以后就没再动他了。Eric3的快捷键可以通过图形界面修改,spe的得自己手动一下就可以(方法在spe的帮助里面有说到),具体来说,就是在 /usr/lib/python2.3/site-packages/_spe/shortcuts/ 下面建立一个my.py文件,给这个文件执行权限,编辑文件内容类似:
  1. keys = {
  2.     'Auto complete'    : 'Alt+/',
  3. }
复制代码

然后在spe的edit->preference里面将“Keyborad Shortcuts”指定为“my”,重启spe就搞定,原来huahua也是不看帮助的啊:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-14 18:51:07 | 显示全部楼层
主要是一般都用 gvim

其它懒得弄了 :)



BTW:
我在 Gnome 下的 eric4 不错啊
如果没有 KDE , 也可以单独装 qt3-qtconfig 来配置 Qt 程序主题
回复 支持 反对

使用道具 举报

发表于 2005-9-14 20:25:05 | 显示全部楼层
试了试,没太摸门,也是懒得弄了……^_^
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-5 00:21:45 | 显示全部楼层
Post by jhuangjiahua
主要是一般都用 gvim

其它懒得弄了 :)



BTW:
我在 Gnome 下的 eric4 不错啊
如果没有 KDE , 也可以单独装 qt3-qtconfig 来配置 Qt 程序主题

忘记说了, 要补充一下

如果您用的是 Python 2.3
那么我原先贴的
import sys
sys.setappdefaultencoding('utf8')
就可以了


在 Python 2.4  下面

要改为
import sys
reload(sys)
sys.setdefaultencoding('utf8')

因为 python2.4 里原先的 etappdefaultencoding函数消失不见了 ...
并且在读取 site.py 之后会去掉 setdefaultencoding
所以 sys 要 重新装入
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表