error_windows.py
来自「pyLJclient是一个跨平台的livejournal客户端」· Python 代码 · 共 26 行
PY
26 行
# 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 + =
减小字号Ctrl + -
显示快捷键?