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

📄 error_windows.py

📁 pyLJclient是一个跨平台的livejournal客户端
💻 PY
字号:
# pyLJclient - a python based live journal client with a wxPython gui
# Copyright (C) 2002 Sameer Chowdhury
# refer to "about this software.txt" for info on licensing

from wxPython.wx import *

#pop-up dialog that indicates an error occured, and shows the error message
def nonfatal_error(frame, msg):
    win = wxDialog(frame, -1, "Error", wxDefaultPosition,
                   wxSize(250, 200))
    l1 = wxStaticText(win, -1, msg, pos=(10,50))
    wxButton(win, wxID_OK,     " OK ", wxPoint(75, 120),
             wxDefaultSize).SetDefault()
    win.ShowModal()

#pop-up dialog that indicates a fatal error occured.
#shows the fatal error and then program usually terminates
def fatal_error(frame, msg):
    win = wxDialog(frame, -1, "Fatal Error", wxDefaultPosition,
                   wxSize(350, 200))
    l1 = wxStaticText(win, -1, "("+msg+") Program will Exit! ", pos=(10,50))
    wxButton(win, wxID_OK,     " OK ", wxPoint(75, 120),
             wxDefaultSize).SetDefault()
    win.ShowModal()

⌨️ 快捷键说明

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