Commit 9c71ace6 by BellCodeEditor

auto save

parent c652437c
Showing with 18 additions and 6 deletions
import tkinter import tkinter
def login_to_reg(): # 登录界面转注册界面 def login_to_reg(): # 登录界面转注册界面
pass app_login.root.destroy()
global app_reg
app_reg=My_register()
app_reg.show()
def reg_to_login(): # 注册界面转登录界面 def reg_to_login(): # 注册界面转登录界面
pass app_reg.root.destroy()
global app_login
app_login=My_login()
app_login.show()
def register(): # 注册验证 def register(): # 注册验证
pass
def login(): # 登录验证 def login(): # 登录验证
pass
class My_login(): # 登录窗口 class My_login(): # 登录窗口
def __init__(self): def __init__(self):
self.root = tkinter.Tk() self.root = tkinter.Tk()
self.root.title("登录窗口") self.root.title("登录窗口")
self.root.geometry('400x300+500+300') self.root.geometry('400x300+450+200')
self.root.resizable(width=False, height=False) # True可以拉伸,False不能拉伸 self.root.resizable(width=False, height=False) # True可以拉伸,False不能拉伸
def show(self): # 登录界面的所有控件 def show(self): # 登录界面的所有控件
...@@ -58,7 +70,7 @@ class My_register(): # 注册窗口 ...@@ -58,7 +70,7 @@ class My_register(): # 注册窗口
def __init__(self): def __init__(self):
self.root = tkinter.Tk() self.root = tkinter.Tk()
self.root.title("注册窗口") self.root.title("注册窗口")
self.root.geometry('400x320+500+300') self.root.geometry('400x320+450+200')
self.root.resizable(width=False, height=False) # True可以拉伸,False不能拉伸 self.root.resizable(width=False, height=False) # True可以拉伸,False不能拉伸
def show(self): # 注册界面的所有控件 def show(self): # 注册界面的所有控件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment