zoukankan      html  css  js  c++  java
  • Run UliPad 4.1 Under Windows 7 64bit and wxPython 3.0.2

    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: pasuka@foxmail.com

    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)
    

     以上的修改可能仍然不正确和完整,欢迎指正交流。

  • 相关阅读:
    实现对象属性的lazy-loading(延迟加载)
    Scikit-Learn机器学习入门
    实现后门程序以及相应的rootkits,实现对后门程序的隐藏
    关于iptables命令
    基于netfilter和LVM的密码窃取
    实验一:网络嗅探器
    实验二:ICMP重定向攻击
    第八节课、第九节
    第六、七课
    python读取excel文件
  • 原文地址:https://www.cnblogs.com/pasuka/p/4191536.html
Copyright © 2011-2022 走看看