Abstract: UliPad that is developed by limodou is an excellent code editor. It works well with wxPython 2.8.x and recently wxPython was updated to 3.0.2 so that problems came. And we tried to modify source code based on UliPad 4.1 and it is still an experimental patch.
keywords: UliPad wxPython
contact:
UliPad是笔者一直喜欢的代码编辑器,但是最近wxPython升级到3.0.x之后,没法正常工作。症状主要2个:文件无法打开,参数设置窗口无法打开。好在UliPad的设计合理,有出错信息记录,那么顺藤摸瓜,笔者这个二把刀也斗胆上阵修改一下源代码。
主要的修改之处有:
1、mixins目录下的Import.py的195行
1 dlg = wx.FileDialog(win,tr("File List"),win.pref.last_dir,"",'|'.join(win.filewildchar),wx.OPEN|wx.HIDE_READONLY|wx.MULTIPLE)
修改为
dlg = wx.FileDialog(win,tr("File List"),win.pref.last_dir,"","|".join(win.filewildchar),wx.FD_OPEN|wx.FD_MULTIPLE|wx.FD_CHANGE_DIR)
2、mixins目录下的Import.py的9008行
wx.FutureCall(1000,check_update())
修改为
wx.FutureCall(1000,check_update)
3、modules目录下的Calltips.py的28行
wx.ScrolledWindow.__init__(self,parent,-1,size=(200,50),style=wx.SIMPLE_BORDER|wx.NO_3D)
修改为
wx.ScrolledWindow.__init__(self,parent,-1,size=(200,50),style=wx.SIMPLE_BORDER)
4、modules目录下的meide.py的943行
sizer.AddGrowableCol(i)
修改为
sizer.AddGrowableCol(i-1)
以上的修改可能仍然不正确和完整,欢迎指正交流。