资源简介
使用python做UI也是不错的,这是收集了官方文档,供学习交流使用
代码片段和文件信息
#!/usr/bin/env python
import sys
import wx
import wx.html
import wx.lib.wxpTag
#---------------------------------------------------------------------------
class MyAboutBox(wx.Dialog):
text = ‘‘‘
cellpadding=“0“ border=“1“>
wxPython %s
(%s)
Running on Python %s
wxPython is a Python extension module that
encapsulates the wxWindows GUI classes.
This demo shows off some of the capabilities
of wxPython. Select items from the menu or tree control
sit back and enjoy. Be sure to take a peek at the source code for each
demo item so you can learn how to use the classes yourself.
wxPython is brought to you by Robin Dunn and
Total Control Software Copyright (c) 1997-2017.
Please see license.txt for licensing information.
‘‘‘
def __init__(self parent):
wx.Dialog.__init__(self parent -1 ‘About the wxPython demo‘)
html = wx.html.HtmlWindow(self -1 size=(420 -1))
if “gtk2“ in wx.PlatformInfo or “gtk3“ in wx.PlatformInfo:
html.SetStandardFonts()
py_version = sys.version.split()[0]
txt = self.text % (wx.VERSION_STRING
“ “.join(wx.PlatformInfo[1:])
py_version
)
html.SetPage(txt)
btn = html.FindWindowById(wx.ID_OK)
ir = html.GetInternalRepresentation()
html.SetSize( (ir.GetWidth()+25 ir.GetHeight()+25) )
self.SetClientSize(html.GetSize())
self.CentreOnParent(wx.BOTH)
#---------------------------------------------------------------------------
if __name__ == ‘__main__‘:
app = wx.App()
dlg = MyAboutBox(None)
dlg.ShowModal()
dlg.Destroy()
app.MainLoop()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1253888 2010-06-01 21:30 wxPython2.doc
文件 1799167 2010-05-21 13:03 wxPython3.doc
文件 1592175 2010-05-21 13:04 wxPython1.doc
文件 2122 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\About.py
文件 2485 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\AboutBox.py
文件 3942 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\ActiveXWrapper_Acrobat.py
文件 5928 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\ActiveXWrapper_IE.py
文件 3145 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\ActiveX_FlashWindow.py
文件 7890 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\ActiveX_IEHtmlWindow.py
文件 7604 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\ActiveX_PDFWindow.py
文件 6245 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\AdjustChannels.py
文件 1636 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\AdvancedSplash.py
文件 5311 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\AGWInfoBar.py
文件 4693 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\AquaButton.py
文件 133233 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\AUI.py
文件 14962 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\BalloonTip.py
文件 17898 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\advancedsplash.png
文件 2168 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\aquabutton.png
文件 1406 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\aquachecked.ico
文件 1406 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\aquaflagged.ico
文件 1406 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\aquanotchecked.ico
文件 1406 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\aquanotflagged.ico
文件 152 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\canada.gif
文件 634 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\checked.ico
文件 263 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\columns.png
文件 688 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\contexthelp-16.png
文件 717 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\contexthelp.png
文件 602 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\copy.png
文件 1700 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\cut.png
文件 964 2018-01-31 12:35 wxPython\wxPython-demo-4.0.0\wxPython-demo-4.0.0\demo\agw\bitmaps\editcopy.png
............此处省略8943个文件信息
相关资源
- 《面向arcgis的python脚本编程》练习数
- NLP实战之fasttext进行THUCNews文本分类
- opencv_python-3.4.0.12-cp36-cp36m-win_amd64.wh
- 面向Arcgis的python脚本编程_ 李明巨编著
- python-2.7.9.amd64.msi
- Python金融大数据分析Python爬取京东手
- python27.zip 完整资源包
- python3导入excel数据到mysql
- Flask Web开发:基于Python的Web应用开发
- 虫师经典著作:python web接口开发与测
- Python数据挖掘入门与实践.zip code
- PyQt5-5.4-gpl-Py3.4-Qt5.4.0-x64
- python数据可视化编程实战源码
- python2.7.5 64位
- Python 计算机视觉编程中文版PDF
- Python机器学习(预测分析核心算法)
- Python核心编程(第三版)-PDF高清晰完
- RNN python
- 可用于毕业设计、课程设计的车牌识
- 数据结构(python语言描述)Kenneth 著配
- python2.6(64位)
- python学习手册(第5版)(英文版)
- 基于python的行人与车辆检测和跟踪实
- 利用Python实现的BP神经网络进行人脸识
- 文字版pdf书和源代码:深度学习入门
- Python游戏编程快速上手+(高清完整版
- python3 + wxpython 实现RSA加密聊天室
- 21天学通python源码和PPT
- 深度学习入门:基于Python的理论与实
- Python地理空间分析指南第2版.pdf
评论
共有 条评论