python3GUI--用tkinter模拟蓝屏(附源码)

博客科普了电脑蓝屏,即微软Windows系列系统遇错误无法恢复时,为保护数据强制显示的画面,现一般指Windows NT内核错误。还提到用Python的tkinter库模拟蓝屏效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

科普-电脑蓝屏

电脑蓝屏,又叫蓝屏死机(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()

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值