• 大小: 35.09MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-30
  • 语言: Python
  • 标签: wxpython  python  

资源简介

使用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个文件信息

评论

共有 条评论