你觉得我的LinVin OS好吗?
<未编写完成>源代码:
# LinVin 1.0
# CopyRight 2022 Kevin · Whoami
# Tool: (Please Install Easygui Module)
# System Language : Chinese
import easygui as eg
class System:
Status = False # True = Up , False = Down
SystemPath = r"C:\System.cfg" # System Config File Path
LoginName = "root" # Login User Name
LoginPassword = None # Root User Password
def __init__(self,path,name,password):
self.Status = False
self.SystemPath = path if path != None else System.SystemPath
self.LoginName = name if name != None else System.LoginName
self.LoginPassword = password
def OpenSystem(self):
self.Status = True
if eg.msgbox(msg="正在开机……",title="欢迎使用",ok_button="登录") == "登录":
while True:
Login = eg.multpasswordbox(msg="登录",title="欢迎",fields=("用户:","密码:"))
if Login == self.LoginName and Login == self.LoginPassword:
break
else:
if eg.msgbox(msg="用户名或密码错误!",title="请重新登录",ok_button="登录") == "登录":
continue
if eg.msgbox(msg="欢迎!",title="系统加载中……",ok_button="进入桌面") == "进入桌面":
return self.ShowDesktop()
else:
return False
else:
return False
def ShowDesktop
# Warning : Your Computer Is Not Safe !!!
源文件:
日后我会更新源文件
页:
[1]