试用了一下ULipad后,觉得相当不错,很多功能做得不错,也很人性
代码提示功能相当强,自己后安装上去的python模块自动提示都能识别
F5可以直接运行
有详细的语法自动完成,多使用Tab键会很有帮助
还能自动生成函数docstring
还有很多其它编辑器不具备的功能,总之,觉得limodou很牛,想到很多人性化的东西了
不过,有点意见,觉得里面的shell窗口不是基于当前文件目录的,这使得当前写的py文件无法import
最后,谢谢limodou对于学习python给我的一些建议,从现在开始,在基本完成dive into python, python tut学习后,开始研究wxPython
现贴我的第一个wxPython程序
#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""我的第一个wxPython程序,学习了wxPython的第一章"""
import wx
class Frame(wx.Frame):
"""Frame class that displays an image."""
def __init__(self, image, parent=None, id=-1,
pos=wx.DefaultPosition, title='Hello, wxPython!'):
"""Create a Frame instance and display image."""
temp = image.ConvertToBitmap()
size = temp.GetWidth(), temp.GetHeight()
wx.Frame.__init__(self, parent, id, title, pos, size)
self.bmp = wx.StaticBitmap(parent=self, bitmap=temp)
self.SetClientSize(size)
class App(wx.App):
"""Application class."""
def OnInit(self):
image = wx.Image('wxPython.jpg', wx.BITMAP_TYPE_JPEG)
self.frame = Frame(image)
self.frame.Show()
self.SetTopWindow(self.frame)
return True
def main():
app = App()
app.MainLoop()
if __name__ == '__main__':
main()
