FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python3-tkinter/grid.py at master · futurepaycc/python3-tkinter · GitHub
futurepaycc
python3-tkinter
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python3-tkinter
/
grid.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 446 Bytes
Breadcrumbs
python3-tkinter
/
grid.py
Copy path
File metadata and controls
17 lines (12 loc) · 446 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#coding:utf-8
import
tkinter
as
tk
from
tkinter
import
messagebox
root
=
tk
.
Tk
()
root
.
geometry
(
"400x300"
)
def
butClick
():
messagebox
.
showinfo
(
title
=
"按钮"
,
message
=
"你要干嘛"
)
btn1
=
tk
.
Button
(
root
,
text
=
"btn1"
,
command
=
butClick
).
grid
(
row
=
0
,
column
=
0
)
btn2
=
tk
.
Button
(
root
,
text
=
"btn2"
).
grid
(
row
=
0
,
column
=
1
)
btn3
=
tk
.
Button
(
root
,
text
=
"btn3"
).
grid
(
row
=
1
,
column
=
0
)
btn4
=
tk
.
Button
(
root
,
text
=
"btn4"
).
grid
(
row
=
1
,
column
=
1
)
root
.
mainloop
()
Back
|
FazBrowse Home
|
New Git URL