wxPython:启动画面SplashScreen介绍
来源:互联网 发布:ghost覆盖 数据恢复 编辑:程序博客网 时间:2024/05/21 09:26
程序启动时出现一个启动画面,先看代码:
class PaintApp(wx.App): def OnInit(self): bmp = wx.Image("P7080079.JPG").ConvertToBitmap() wx.SplashScreen(bmp, wx.SPLASH_CENTER_ON_SCREEN | wx.SPLASH_TIMEOUT,, None, -1) wx.Yield() frame = PaintFrame(None) frame.Show(True) self.SetTopWindow(frame) return True if __name__ == '__main__': app = PaintApp() app.MainLoop()测试一下,使用一张自己前几天拍的荷花。
知识点:
原型:
wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow*parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP)
splashStyle is a bitlist of some of the following:
- wxSPLASH_CENTRE_ON_PARENT
- wxSPLASH_CENTRE_ON_SCREEN
- wxSPLASH_NO_CENTRE
- wxSPLASH_TIMEOUT
- wxSPLASH_NO_TIMEOUT
milliseconds is the timeout in milliseconds.
方法:
- wxSplashScreen::OnCloseWindow
- wxSplashScreen::GetSplashStyle
- wxSplashScreen::GetSplashWindow
- wxSplashScreen::GetTimeout
- wxPython:启动画面SplashScreen介绍
- 程序启动画面——SplashScreen
- JAVA 闪屏 SplashScreen 程序启动画面 浅谈
- appframework和phongGap启动画面(splashscreen)--拒绝启动黑屏
- VC++2010工程中加入SplashScreen的启动画面
- [Phonegap+Sencha Touch] 移动开发36 Phonegap/Cordova项目的图标和启动画面(splashscreen)配置
- cordova SplashScreen插件在android上退出app后不再显示启动画面的问题
- Android启动页SplashScreen实现
- SplashScreen
- 启动画面
- wxPython画面使用delayedresult进行耗时处理
- wxPython启动程序进度条
- wxPython:应用程序对象介绍
- wxPython:Frame类介绍
- wxPython:状态栏介绍
- wxPython:菜单介绍
- wxPython:进度条Gauge介绍
- 程序启动画面
- C++中 類构造函数前面explicit的作用
- 关于CPU和内存小节
- MediaRecorder framework层的处理流程
- 求贤若渴
- Windows Media Player 解码器 win7codecs
- wxPython:启动画面SplashScreen介绍
- 责任链模式
- wxPython:绘画按钮BitmapButton介绍
- Android电话拨号器
- 关于tomcat服务器部署,页面报404/500错误,myeclipse异常关闭 导致tomcat 6.0 无法重启 的问题
- wxPython:进度条Gauge介绍
- UITableView 使用方法(一) - 创建简单的列表
- 2005年企业员工保险福利调查报告
- Grub2 Configuration (boot menu)