aboutmedlg.py

来自「BitTorrentABC-Linux-V.2.4.3源码」· Python 代码 · 共 34 行

PY
34
字号
from wxPython.wx import *
from wxPython import *
from webbrowser import open_new
from threading import Thread

class AboutMeDialog(wxDialog):
    def __init__(self, parent, ID, title,
                 pos=wxDefaultPosition, size=wxDefaultSize,
                 style=wxDEFAULT_DIALOG_STYLE):
        
        pre = wxPreDialog()
        pre.Create(parent, ID, title, pos, size, style)
        self.this = pre.this

        # Start UI in Dialog
        #######################
        wxStaticText(self, -1, "ABC [Yet Another Bittorrent Client] (Version 2.4.3)", wxPoint(55,10))
        wxStaticText(self, -1, "Author   : Choopan Rattanapoka (choopanr@hotmail.com)", wxPoint(20, 38))
        wxStaticText(self, -1, "Date     : 26 September 2003 ", wxPoint(20, 53))
        wxStaticText(self, -1, "Homepage :", wxPoint(20, 68))
        wxStaticText(self, -1, "The system core is the SHAD0W's EXPERIMENTAL S-5.7.6", wxPoint(20,95)) 
        wxStaticText(self, -1, "based on Bittorrent coded by Bram Cohen", wxPoint(20, 110))
        wxStaticText(self, -1, "Powered by Python2.3c2, wxPython2.4, py2exe, NSIS", wxPoint(20, 130))
        wxStaticText(self, -1, "Copyright (c) 2003, Choopan Rattanapoka", wxPoint(70, 150))
        linkhomepage = wxStaticText(self, -1, 'http://pingpong-abc.sourceforge.net', wxPoint(85,68))
        linkhomepage.SetForegroundColour('Blue');
        linkhomepage.SetFont(wxFont(-1, wxDEFAULT, wxNORMAL, wxNORMAL, true))

        def homepagelink(self):
            Thread(target = open_new('http://pingpong-abc.sourceforge.net')).start()
        EVT_LEFT_DOWN(linkhomepage, homepagelink)            
        btn = wxButton(self, wxID_OK, " OK ", wxPoint(125,172))
        btn.SetDefault()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?