科普-电脑蓝屏
电脑蓝屏,又叫蓝屏死机(Blue Screen of Death,简称BSOD),是微软的 Windows 系列操作系统在无法从一个系统错误中恢复过来时,为保护电脑数据文件不被破坏而强制显示的屏幕图像。
Windows操作系统的蓝屏死机提示已经成为标志性的画面。大部分是系统崩溃的现象。
Windows中有两个蓝底白字图像都被称为蓝屏死机:一种是Windows 9x操作系统发生小故障,一种是Windows NT发生内核错误。由于Windows 9x已退出历史舞台,所以现在一般指后者。
代码实现-用tkinter 模拟蓝屏效果
from tkinter import*
HEIGHT = 2800
WIDTH = 2000
window = Tk()
c = Canvas(window,width=WIDTH,height=HEIGHT,bg='darkblue')#darkblue
c.pack()
c.create_text(520,380,text='''
A problem has been detected and windows has been shut\
down to prevent damage\n\
to your computer.\n\n\
DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\
If this is the first time you've seen this Stop error screen, \n\
restart your computer.If this screen appears again, follow \n\
these steps:\n\n\
Check to make sure any new hardware or software is properly installed.\n\
If this is a new installation, ask your hardware or software manufacturer\n\
for any windows updates you might need.\n\n\
If problems continue. disable or remove any newly installed hardware\n\
or software. Disable BIOS memory option such as caching or shadowing.\n\
If you need to nsu Safe Mode to remove or disable components, restart\n\
your computer, press F8 to select Advanced Startup Options, and then\n\
select Safe Mode.\n\n\
Technical information:\n\
\"\"\"STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n\
\"\"\"SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c
''',fill= 'white',font = ('Helvetica',20))
window.overrideredirect(1) # 隐藏标题栏 最大化最小化按钮
window.attributes("-toolwindow", 2) # 去掉窗口最大化最小化按钮,只保留关闭
window.mainloop()