python3GUI--用Tk开发一款恶搞蓝屏软件(附源码)
本次依然使用Tkinter进行GUI界面的开发,开发一款恶搞蓝屏程序,无毒无害,仅用于恶搞,在博文后面会有关闭本程序的方法。
一.准备工作
1.Tkinter
Tkinter 是 Python 的标准 GUI 库。Python 使用 Tkinter 可以快速的创建 GUI 应用程序。
由于 Tkinter 是内置到 python 的安装包中、只要安装好 Python 之后就能 import Tkinter 库、而且 IDLE 也是用 Tkinter 编写而成、对于简单的图形界面 Tkinter 还是能应付自如。
2.科普-电脑蓝屏
电脑蓝屏,又叫蓝屏死机(Blue Screen of Death,简称BSOD),是微软的 Windows 系列操作系统在无法从一个系统错误中恢复过来时,为保护电脑数据文件不被破坏而强制显示的屏幕图像。
Windows操作系统的蓝屏死机提示已经成为标志性的画面。大部分是系统崩溃的现象。
Windows中有两个蓝底白字图像都被称为蓝屏死机:一种是Windows 9x操作系统发生小故障,一种是Windows NT发生内核错误。由于Windows 9x已退出历史舞台,所以现在一般指后者。
二.预览
程序启动后会自动判断所用windows系统版本(本软件暂不支持MAC电脑)以及系统语言,展示对应的蓝屏界面。
1.蓝屏-win10、win11(中文版)
2.蓝屏-win10、win11(英文版)
3.Windows其他版本(XP、Win7等)
三.思路
整体实现思路
思路很简单,经过两次判断,展示对应界面。
四.源代码
blue_screen.py(主程序GUI)
import io
import random
import locale
from tkinter import *
from os import system
from PIL import ImageTk
from base64 import b64decode
from PIL import Image as imim
from tkinter import messagebox
from platform import platform as plat
"""
图片硬编码,不依赖外部图片
"""
class App:
"""
要重写alt+tab组合键
win10蓝屏,进度速度不同
不同语言显示不同画面
"""
def __init__(self):
self.root=Tk()
self.root.title('Your Windows Is Dead')
self.root.attributes("-fullscreen", True) #全屏
self.root.wm_attributes('-topmost',1) #窗口置顶
self.root.overrideredirect(True) #去边框,任务栏不显示
self.root.bind("<Key>",self.key_watcher)
plat_version=self.get_platform()
self.__using_chinese_flag=self.using_chinese_flag()
self.__qr_code_base64 = b'iVBORw0KGgoAAAANSUhEU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IUFxzLbNJB/chP/6591e79vDPI+mtRY6eo/dUk0nuMxEfj+KdTdxD4Ybikn/vPuRXUgszJKW/8nosDrnPNSRcZ6QPDdm8THJ/OjKXcROXj6+8Lt2nkbFw5bOhuIeee5EffmeDUvwzrgvS6236MyU1BedKnsm4p5Wno4PC8ltCUj7z93om8X7iOH0WpPtIa4nMVGrhn26cEuk3V/FJxuLzbtOkOxe6EYfiKePz97Mi3UdcRj4X8kzEKZHO06ZR8zcUXs9q7v6+5o7UnkkUpgaJrsfckM4ix6YA5rdl/vv/GTffnR9dNlMQfi7iqD0fgtIsMclvzR07BseSPYc/zz3w7GvDSg7+oyWAaw89r7kJ3s9c+S3dS7/lvYfchtyH4MOVYYeel/D+Sv81N1C6yf8QSr/+fuD5wcs2NJ884ZLm/wGNgPGF1bzkOAAAAABJRU5ErkJggg=='
if plat_version==10 or plat_version==11:
self.version_10()
else:
self.version_other()
self.root.mainloop()
def using_chinese_flag(self):
loc_lang = locale.getdefaultlocale()
if "zh_CN"in loc_lang:
return True
else:
return False
def version_other(self):
self.label=Label(self.root)
self.root.config(bg='blue')
self.label.config(text="""A problem has been detected and Windows has been shut down to prevent damage to your computer.\n\nIf this is the first time you've seen this stop error screen,restart your computer.If this screen appears again,follow these steps:\n\nCheck to be sure you have adequate disk space.If a driver is identified in the stop message,disable the driver or check with the manufacturer for driver updates.Try changing video adapters. \n\nCheck with your hardware vendor for any BIOS updates.Disable BIOS memory options such as caching or shadowing if you need to use safe Mode to remove or disable components,restart your computer.Press F8 to select advanced startup options,and then select safe mode.\n\nTechical information:\n\n*** stop:0×0000008E (0×0000005,0×805F91E2,0×B3EE79A8,0×00000000)\n\nSafeBoxKrnl.sys - Address B6D64846 base at B6055000, DataStamp 49ad02f7""")
self.label.config(font=("",20,"bold"),fg='white',bg='blue',wraplength=self.root.winfo_screenwidth(),justify="left")
self.label.place(x=0,y=0,width=self.root.winfo_screenwidth(),height=500,anchor="nw",)
def show_win10_progress(self):
"""
win10蓝屏进度
:return:
"""
if self.__using_chinese_flag:
self.big_words_label.config(text=f"你的电脑遇到问题,需要重新启动。\n\n我们只收集某些错误信息,然后为你重新启动。\n\n{self.n}% 完成")
self.small_words_label.config(text="有关此问题的详细信息和可能的解决方法,请访问 http://windows/stopcode\n\n如果致电支持人员,请向他们提供一下信息\n\n终止代码:SYSTEM_SERVICE_EXCEPTION")
else:
self.big_words_label.config(text=f"Your PC ran into a problem and needs to restart.\n\nWe're just collecting some error,and then we'll restart for you.\n\n({self.n}% complete)")
self.small_words_label.config(text="For more information about this issue and possible fixes, visit \nhttps://www.windows.com/stopcode\n\nIf you call a support person, give them this info:\nStop code:SYSTEM_SERVICE_EXCEPTION")
self.n+=1
if self.n==101:
self.label1.after_cancel(self.show_win10_progress)
else:
if self.n<20:
self.label1.after(random.randint(400,800), self.show_win10_progress)
elif 20<self.n<80:
self.label1.after(random.randint(80,100), self.show_win10_progress)
elif 80<self.n<90:
self.label1.after(random.randint(400,500), self.show_win10_progress)
elif 90<self.n<95:
self.label1.after(random.randint(200,300), self.show_win10_progress)
else:
self.label1.after(random.randint(1000,1200), self.show_win10_progress)
def version_10(self):
"""
windows10蓝屏
:return:
"""
self.n=1
self.root.config(bg='#0078d7')
self.label1=Label(self.root)
self.big_words_label=Label(self.root)
self.small_words_label=Label(self.root)
self.small_words_label.config(font=("微软雅黑",13,),fg='white',bg='#0078d7',justify="left")
paned = PanedWindow(self.root)
photo1=b64decode(self.__qr_code_base64)
data_stream = io.BytesIO(photo1)
pil_image = imim.open(data_stream)
photo = pil_image.resize((110, 110))
paned.image = ImageTk.PhotoImage(photo)
self.qr_img_label = Label(self.root, image=paned.image,background='#0078d7')
self.label1.config(font=("微软雅黑",110,),fg='white',bg='#0078d7',justify="left")
self.big_words_label.config(font=("微软雅黑",20,),fg='white',bg='#0078d7',justify="left")
self.label1.place(relx=0.0001,rely=0.12,width=self.root.winfo_screenwidth()*0.36,height=self.root.winfo_screenheight()*0.2,anchor="nw",)
if self.__using_chinese_flag:
self.big_words_label.config(text=f"你的电脑遇到问题,需要重新启动。\n\n我们只收集某些错误信息,然后为你重新启动。\n\n0%完成")
self.small_words_label.config(
text="有关此问题的详细信息和可能的解决方法,请访问 http://windows/stopcode\n\n如果致电支持人员,请向他们提供一下信息\n\n终止代码:SYSTEM_SERVICE_EXCEPTION")
self.big_words_label.place(relx=0.0001,rely=0.32,width=self.root.winfo_screenwidth()*0.7,height=self.root.winfo_screenheight()*0.3,anchor="nw",)
self.small_words_label.place(relx=0.0001, rely=0.605, width=self.root.winfo_screenwidth() * 0.87,
height=self.root.winfo_screenheight() * 0.22, anchor="nw", )
else:
self.big_words_label.place(relx=0.0001,rely=0.32,width=self.root.winfo_screenwidth()*0.85,height=self.root.winfo_screenheight()*0.3,anchor="nw",)
self.small_words_label.place(relx=0.0001, rely=0.605, width=self.root.winfo_screenwidth() * 0.82,
height=self.root.winfo_screenheight() * 0.22, anchor="nw", )
self.big_words_label.config(
text=f"Your PC ran into a problem and needs to restart.\n\nWe're just collecting some error,and then we'll restart for you.\n\n(0% complete)")
self.small_words_label.config(
text="For more information about this issue and possible fixes, visit \nhttps://www.windows.com/stopcode\n\nIf you call a support person, give them this info:\nStop code:SYSTEM_SERVICE_EXCEPTION")
self.label1.config(text=":(")
self.qr_img_label.place(relx=0.165, rely=0.65, width=110,
height=110, anchor="nw", )
self.label1.after(1000,self.show_win10_progress)
def get_platform(self):
"""
获取电脑window版本
:return:
"""
platform = plat()
if "Windows" in platform:
windows_version = platform.split('-')[1]
return int(windows_version)
else:
return None
def key_watcher(self,event):
if event.keycode==27 :
if self.__using_chinese_flag:
ret=messagebox.askyesno("重启","确定要重启?")
else:
ret=messagebox.askyesno("reboot","Are you sure to reboot?")
if ret:
system('reboot')
if __name__ == '__main__':
a=App()
五.程序关闭方法
方法一:
摁下电源键关机重启。
方法二:
摁下ESC,点击确定后重启。
方法三:
摁下组合键 Ctrl+Alt+Delete,选择任务管理器,右击右下角任务管理器,选择置于顶层,最后选择本程序后,结束进程。
选择进程后,结束进程。
六.总结
本次用Tk开发了一款恶搞蓝屏软件,支持不同windows版本、语言。在开发过程中使用硬编码,将蓝屏二维码图片硬编码到GUI程序中,能够根据不同显示屏分辨率动态地计算文字、图片位置,基本能够以假乱真。
图片硬编码参考了:
动态计算组件位置参考了:
程序已经打包好,放在了蓝奏云,点击链接get同款。思路、代码方面有什么不足欢迎各位大佬指正、批评!能点个赞吗?
python3GUI--用Tk开发一款恶搞蓝屏软件(附源码)的更多相关文章
- leaflet-webpack 入门开发系列三地图分屏对比(附源码下载)
前言 leaflet-webpack 入门开发系列环境知识点了解: node 安装包下载webpack 打包管理工具需要依赖 node 环境,所以 node 安装包必须安装,上面链接是官网下载地址 w ...
- C#/ASP.NET MVC微信公众号接口开发之从零开发(四) 微信自定义菜单(附源码)
C#/ASP.NET MVC微信接口开发文章目录: 1.C#/ASP.NET MVC微信公众号接口开发之从零开发(一) 接入微信公众平台 2.C#/ASP.NET MVC微信公众号接口开发之从零开发( ...
- C#/ASP.NET MVC微信公众号接口开发之从零开发(三)回复消息 (附源码)
C#/ASP.NET MVC微信接口开发文章目录: 1.C#/ASP.NET MVC微信公众号接口开发之从零开发(一) 接入微信公众平台 2.C#/ASP.NET MVC微信公众号接口开发之从零开发( ...
- openlayers4 入门开发系列结合 echarts4 实现散点图(附源码下载)
前言 openlayers4 官网的 api 文档介绍地址 openlayers4 api,里面详细的介绍 openlayers4 各个类的介绍,还有就是在线例子:openlayers4 官网在线例子 ...
- cesium 入门开发系列矢量瓦片加载展示(附源码下载)
前言 cesium 入门开发系列环境知识点了解:cesium api文档介绍,详细介绍 cesium 每个类的函数以及属性等等cesium 在线例子 内容概览 cesium 实现矢量瓦片加载效果 源代 ...
- asp.net开发中常见公共捕获异常方式总结(附源码)
本文实例总结了asp.net开发中常见公共捕获异常方式.分享给大家供大家参考,具体如下: 前言:在实际开发过程中,对于一个应用系统来说,应该有自己的一套成熟的异常处理框架,这样当异常发生时,也能得到统 ...
- openlayers4 入门开发系列之聚合图篇(附源码下载)
前言 openlayers4 官网的 api 文档介绍地址 openlayers4 api,里面详细的介绍 openlayers4 各个类的介绍,还有就是在线例子:openlayers4 官网在线例子 ...
- openlayers4 入门开发系列之迁徙图篇(附源码下载)
前言 openlayers4 官网的 api 文档介绍地址 openlayers4 api,里面详细的介绍 openlayers4 各个类的介绍,还有就是在线例子:openlayers4 官网在线例子 ...
- openlayers4 入门开发系列之地图工具栏篇(附源码下载)
前言 openlayers4 官网的 api 文档介绍地址 openlayers4 api,里面详细的介绍 openlayers4 各个类的介绍,还有就是在线例子:openlayers4 官网在线例子 ...
- openlayers4 入门开发系列之地图切换篇(附源码下载)
前言 openlayers4 官网的 api 文档介绍地址 openlayers4 api,里面详细的介绍 openlayers4 各个类的介绍,还有就是在线例子:openlayers4 官网在线例子 ...
随机推荐
- Android Studio相关配置说明
介绍:Android Sdutio 是谷歌推出的一个 Android 集成开发工具. 现已将 SDK(software development kit)集成到 Android Studio 中.可以直 ...
- CTF Show web入门 1——20(信息收集)wp和一些感想
web1 信息搜集 此题为 [从0开始学web]系列第一题 此系列题目从最基础开始,题目遵循循序渐进的原则 希望对学习CTF WEB的同学有所帮助. 开发注释未及时删除 此题有以上备注,可以想到备注未 ...
- python调用C库的方法
主要介绍两种,一种是python的标准库内置的ctype,另一种是第三方的pybind11. 除此之外,还有其他的方案,例如,CFFI.Cython等等. 一.python的标准库ctype
- ssh远程连接服务器
远程连接服务器及压缩文件与解压 1 终端连接 ssh -p 端口号 用户名@地址 例如:ssh -p 80 name@host 每次远程连接,使用账号和密码登录,有可能使得端口被监听到,从而导致挖矿情 ...
- C# DateTime转换为字符串
12小时制:DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") 24小时制:DateTime.Now.ToString("yyyy- ...
- Java中的左移、右移详细分析
转自csdn--https://blog.csdn.net/weixin_42408447/article/details/125914449 前提:<<(左移),>>(右移) ...
- sql server 常用高级查询sql
数据源:表:coursename kecheng fenshu张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90赵六 语文 88赵六 数 ...
- dnspy查看async方法
- golang常见编程错误集
一.append是深拷贝, func main() { a := []int{7, 8, 9} fmt.Printf("%+v\n", a) ap(a) fmt.Println(& ...
- 物流扫码固定式扫描相机BXT-10M 自动分拣读码器 条码识别扫码器
物流扫码固定式扫描相机BXT-10M 自动分拣读码器 条码识别扫码器 VX : orihard2014 标签: 条码识别扫码器, 自动分拣读码器, 物流扫码固定式扫描相机, 物流扫码相机