Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3fe0e56

Browse files
committed
fazendo testes
1 parent 80ef78c commit 3fe0e56

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from tkinter import *
2+
3+
import tkinter
4+
5+
6+
bt = Button(text='spam')
7+
bt.pack(padx=20, pady=20)
8+
9+
bt.config(bd=8, relief=RAISED)
10+
bt.config(bg='dark green', fg='gray')
11+
12+
bt.config(font=('helvetica', 20, 'underline italic'))
13+
14+
15+
16+
17+
mainloop()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from tkinter import *
2+
3+
4+
root = Tk()
5+
labelfont = ('times', 20, 'bold')
6+
7+
8+
# widget = Label(root, text='hello config world/ ola mundo config')
9+
widget = Label(root, text='hello config world')
10+
11+
widget.config(bg='black', fg='yellow')
12+
widget.config(font=labelfont)
13+
widget.config(height=3, width=20)
14+
widget.pack(expand=YES, fill=BOTH)
15+
16+
root.mainloop()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sys
2+
from tkinter import Toplevel, Button, Label
3+
4+
# quando eh apertado o botão, fecha tudo
5+
# when the button is pressed, exit all of windows
6+
7+
8+
9+
win1 = Toplevel()
10+
win2 = Toplevel()
11+
12+
Button(win1, text='span', command=sys.exit).pack()
13+
Button(win2, text='span', command=sys.exit).pack()
14+
15+
Label(text='popups').pack()
16+
17+
18+
win1.mainloop()
19+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from tkinter import Tk, Button, NoDefaultRoot
2+
3+
NoDefaultRoot()
4+
5+
win1 = Tk()
6+
win2 = Tk()
7+
8+
Button(win1, text='span', command=win1.destroy).pack()
9+
Button(win2, text='span', command=win2.destroy).pack()
10+
11+
win1.mainloop()
12+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /