Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson18-diy1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8d9a0c96
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
6a7fb91c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
my_app.py
my_app.py
View file @
8d9a0c96
...
@@ -25,10 +25,15 @@ def register(): # 注册验证
...
@@ -25,10 +25,15 @@ def register(): # 注册验证
messagebox
.
showwarning
(
"错误"
,
"用户已存在"
)
messagebox
.
showwarning
(
"错误"
,
"用户已存在"
)
elif
password1
!=
password2
:
elif
password1
!=
password2
:
messagebox
.
showwarning
(
"错误"
,
"两次密码输入不一致"
)
messagebox
.
showwarning
(
"错误"
,
"两次密码输入不一致"
)
else
:
users
[
name
]
=
password1
content
=
json
.
dumps
(
users
)
messagebox
.
showinfo
(
"成功"
,
"注册成功"
)
login_show
()
def
login
():
# 登录验证
def
login
():
# 登录验证
pass
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
(
"登录窗口"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment