当前位置:网站首页>[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-devel
Here 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 wxpython
2022.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.whl
Then 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.
边栏推荐
猜你喜欢
随机推荐
【415. 字符串相加】
老干妈创始人陶华碧现身直播间,70岁“国民女神”拥抱直播电商
[UEFI]EFI_DEVICE_PATH_PROTOCOL 结构体初始化的一个例子
基于 VIVADO 的 AM 调制解调(1)方案设计
基于 VIVADO 的 AM 调制解调(2)工程实现
picker选择器出现object解决办法
为什么会没有内存了呢
向日葵安装教程--向日葵远程桌面控制
专题讲座8 字符串(一) 学习心得
[C语言] sscanf如何实现sscanf_s?
机器学习(一)数据的预处理
For the first time, I suspect that there is a bug in selenium4 because the iframe element is not found?
零基础SQL教程: 基础查询 05
AcWing 272. 最长公共上升子序列
pycharm中绘图,显示不了figure窗口的问题
如何通过开源数据库管理工具 DBeaver 连接 TDengine
IDEA的初步使用
Kotlin算法入门兔子数量优化及拓展
klayout--导出版图为gds文件
eureka和consul的区别