当前位置:网站首页>[wxGlade learning] wxGlade environment configuration
[wxGlade learning] wxGlade environment configuration
2022-08-11 08:43:00 【Frank learning on the way】
Learn wxGlade because Autoware.ai's interface is made with it.
wxGlade is a cross-platform GUI development tool based on wxPython. The following is the environment configuration under Ubuntu system.
1. Install Gnome/GTK
wxGlade needs a GTK pre-environment, otherwise the next step of pip install wxpython will make an error.The installation command is as follows:
sudo apt-get install gnome-develHere I installed Gnome, which should include gtk, and some gadgets will be installed automatically. If you want a simple installation, you can try other methods of installing gtk separately.
eg: sudo apt-get install libgtk2.0-dev (untested)
2.pip install wxpython
This step is relatively simple, but time-consuming.The installation command is as follows: (this step is wrong)
pip install wxpython2022.8.8 record
If the wxpython installation version is wrong, it will cause autoware to fail to open. The error is as follows:
pip install wxpython The installed version is wxpython 4.1.1, not 4.0.7, so you can check your own version and re-download it on the official websiteDownload the corresponding version of the wxpython package:
wxpython 4.0.7 download
Download wxPython-4.0.7-cp27-cp27mu-linux_x86_64.whl, then open a terminal in the download directory:
python2.7 -m pip install wxPython-4.0.7-cp27-cp27mu-linux_x86_64.whlThen modify the runtime_manager_dialog.py script file:
Find the runtime_manager_dialog.py file in autoware.ai/src/autoware/utilities/runtime_manager/scripts
- Add import wx.adv to the file
- Replace all wx.HyperlinkCtrl in the file with wx.adv.HyperlinkCtrl
- Replace all wx.EVT_HYPERLINK in the file with wx.adv.EVT_HYPERLINK
You can recompile after making changes.
3. Download wxglade source code
github:https://github.com/wxGlade/wxGlade
gitee:https://gitee.com/mirrors/wxGlade/
4. Open the wxGlade GUI development environment
After the above source code download number, enter the wxglade directory, find the following two scripts, and open them with python xxx (both can be used).
python wxglade
After opening, the software interface is as follows:

5. Help Documentation
In this directory wxGlade/docs/html/index.html, there is a tutorial, just open it with a browser.
Above.
边栏推荐
猜你喜欢
随机推荐
magical_spider远程采集方案
对比学习系列(三)-----SimCLR
Creo9.0 特征的成组
你有对象类,我有结构体,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang结构体(struct)的使用EP06
C语言-结构体
Getting Started with Kotlin Algorithms Calculating Prime Numbers and Optimization
持续集成/持续部署(2)Jenkins & SonarQube
C Primer Plus(6) 中文版 第1章 初识C语言 1.6 语言标准
picker选择器出现object解决办法
idea 方法注释:自定义修改method的return和params,void不显示
快速幂,逆元的求解
基于 VIVADO 的 AM 调制解调(2)工程实现
MySql事务
机器学习(三)多项式回归
opengauss创建用户权限问题
Kotlin算法入门兔子数量优化及拓展
【43. 字符串相乘】
Kali penetration test environment set up
mysql数据查询因为查询的时间跨度过大导致cup爆满应该怎么办
C Primer Plus(6) 中文版 第1章 初识C语言 1.1 C语言的起源 1.2 选择C语言的理由 1.3 C语言的应用范围

![[C语言] sscanf如何实现sscanf_s?](/img/aa/1060c8fd22b09bd6509f8bc41b316e.png)






