⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutmedlg.py

📁 BitTorrentABC-Linux-V.2.4.3源码
💻 PY
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -