随笔分类 -  Qt-wxWidgets

摘要:Miscellaneous For Windows, we also provide the pre-compiled wxWidgets, version 2.8.12 used to compile the release. You can download and extract it eit 阅读全文
posted @ 2018-01-15 21:57 findumars 阅读(408) 评论(0) 推荐(0) 编辑
摘要:1、 安装 运行wxMSW-2.8.3-Setup1.exe,将之安装到不带空格符号的目录中,本例为C:/wxWidgets-2.8.3; 2、 编译和配置 (1) 用VC6.0编译 进入C:/wxWidgets-2.8.3/build/msw,用VC打开wx.dsw工程文件。进入Build—〉Ba 阅读全文
posted @ 2017-11-09 17:03 findumars 阅读(539) 评论(0) 推荐(0) 编辑
摘要:编译wxWidgets —— windows、vc71、bcc32、MinGW与命令行 http://www.diybl.com/course/3_program/vc/vc_js/20071226/93502.html#wxWidgets 是一个极具名望的提供图形界面支持的C++库,你可以用它来开 阅读全文
posted @ 2017-10-19 00:27 findumars 阅读(1195) 评论(0) 推荐(0) 编辑
摘要:不建议用wxWidgets, 搞了wxWidgets 3年,不是所说的那么容易跨平台,很多bug,不稳定, 莫名其妙的崩溃找源代码修改编译真是费时费力. 开发速度真没有使用本地sdk开发高, 很难定制复杂的控件和界面. 定制了复杂的控件后崩溃发现它的基础的类库有bug, 后悔浪费那3年时间. htt 阅读全文
posted @ 2016-08-24 05:02 findumars 阅读(3044) 评论(0) 推荐(0) 编辑
摘要:MinGW编译器: 1.打开工程文件,在工程文件浏览其中,在你要设置为预编译的头文件上,点击鼠标右键,选择“属性(properties)” 你会看到一个多页面的属性框,选择“构建(build)”页面,将“编译文件(complie file)”选项勾上,其默认状态为没有勾 2.从菜单->工程(proj 阅读全文
posted @ 2016-01-07 18:23 findumars 阅读(1781) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/25074960 https://zhuanlan.zhihu.com/p/25095222 总体上是参考这两个链接,感谢大神的分享,但是中间遇到很多问题,也学到很多,现总结如下: 以下是基于win10 64 位& Visual Studio 阅读全文
posted @ 2015-11-16 19:34 findumars 阅读(1038) 评论(0) 推荐(0) 编辑
摘要:wxWidgets初学者导引全目录 PDF版及附件下载 1 前言2 下载、安装wxWidgets3 wxWidgets应用程序初体验4 wxWidgets学习资料及利用方法指导5 用wxSmith进行可视化设计附:学习材料清单 1 前言2 下载、安装wxWidgets3 wxWidgets应用程序初 阅读全文
posted @ 2015-09-22 18:06 findumars 阅读(2488) 评论(1) 推荐(1) 编辑
摘要:wxWidgets初学者导引全目录 PDF版及附件下载 1 前言2 下载、安装wxWidgets3 wxWidgets应用程序初体验4 wxWidgets学习资料及利用方法指导5 用wxSmith进行可视化设计附:学习材料清单 1 前言2 下载、安装wxWidgets3 wxWidgets应用程序初 阅读全文
posted @ 2015-08-21 18:17 findumars 阅读(867) 评论(0) 推荐(0) 编辑
摘要:作为Python开发者,你迟早都会用到图形用户界面来开发应用。本文将推荐一些 Python GUI 框架,希望对你有所帮助,如果你有其他更好的选择,欢迎在评论区留言。 Python 的 UI 开发工具包 Kivy Kivy是一个开源工具包能够让使用相同源代码创建的程序能跨平台运行。它主要关注创新型用 阅读全文
posted @ 2014-12-17 20:27 findumars 阅读(4297) 评论(0) 推荐(0) 编辑
摘要:import wxclass MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None) self.panel = wx.Panel(self) # create contr... 阅读全文
posted @ 2014-03-26 06:12 findumars 阅读(970) 评论(0) 推荐(0) 编辑
摘要:import wximport randomclass View(wx.Panel): def __init__(self, parent): super(View, self).__init__(parent) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) self.Bind(wx.EVT_PAINT, self.on_paint) self.Bind(wx.EVT_SIZE, self.on_size) def on_size(self, event): # OnSize时重画很棒... 阅读全文
posted @ 2014-03-26 05:49 findumars 阅读(483) 评论(0) 推荐(0) 编辑
摘要:import wxclass View(wx.Panel): def __init__(self, parent): super(View, self).__init__(parent) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) self.Bind(wx.EVT_SIZE, self.on_size) self.Bind(wx.EVT_PAINT, self.on_paint) def on_size(self, event): # 没有这个事件,改变尺寸的时候就全乱了 ... 阅读全文
posted @ 2014-03-26 05:43 findumars 阅读(389) 评论(0) 推荐(0) 编辑
摘要:import wxclass Example(wx.Frame): def __init__(self, parent, title): super(Example, self).__init__(parent, title=title, size=(250, 150)) wx.FutureCall(2000, self.DrawLine) self.Centre() self.Show() def DrawLine(self): dc = wx.ClientDC(self) ... 阅读全文
posted @ 2014-03-26 05:25 findumars 阅读(473) 评论(0) 推荐(0) 编辑
摘要:代码摘自wx\lib\agw\knobctrl.py一点体会是,OnSize作为class的函数,被放在构造函数里执行,会先于OnPaint执行。测试结果是,初始启动后,会执行8次OnSize(为什么是8次?2个闹钟就2次,每个闹钟分别1次SetTags,其中一个调用一次self.OnTicks,总共应该是5次),然后才会执行2次OnPaint。而且这两次OnPaint可能还是附送的,估计是执行的时候正好console盖住gui,gui恢复显示的时候会执行两次OnPaint用任意窗口遮住OnPaint,然后最小化,就会发现执行两次OnPaint(为什么是两次?一次就够了啊)每次OnPaint的 阅读全文
posted @ 2014-03-24 08:22 findumars 阅读(1596) 评论(0) 推荐(0) 编辑
摘要:import wxclass SketchWindow(wx.Window): def __init__(self, parent, ID): wx.Window.__init__(self, parent, ID) self.SetBackgroundColour("White") self.color = "Black" self.thickness = 1 self.pen = wx.Pen(self.color, self.thickness, wx.SOLID) self.lines = [] ... 阅读全文
posted @ 2014-03-23 07:51 findumars 阅读(1027) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env pythonimport wxclass DoubleEventFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, 'Frame With Button', size=(300, 100)) self.panel = wx.Panel(self, -1) self.cc = 1 self.button = wx.Button(self.panel, -1, "Cli... 阅读全文
posted @ 2014-03-23 07:06 findumars 阅读(4095) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示