Skip to content

Commit 767b7c7

Browse files
ready interface
1 parent c7fdfa9 commit 767b7c7

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

03_PokeDEX/code/main.py

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Imagem
4040
imagem = Image.open('assets/img/pikachu.png')
41-
imagem = imagem.resize((238,238))
41+
imagem = imagem.resize((238, 238))
4242
imagem = ImageTk.PhotoImage(imagem)
4343
imagemBanner = Label(frameBanner, relief='flat', image=imagem)
4444
imagemBanner.place(x=60, y=50)
@@ -57,7 +57,8 @@
5757
ataque.place(x=15, y=385)
5858
defesa = Label(window, text='Defesa: 300', relief='flat', anchor=CENTER, font=('Verdana 10'), fg=azul, bg=branco)
5959
defesa.place(x=15, y=410)
60-
velocidade = Label(window, text='Velocidade: 400', relief='flat', anchor=CENTER, font=('Verdana 10'), fg=azul, bg=branco)
60+
velocidade = Label(window, text='Velocidade: 400', relief='flat', anchor=CENTER, font=('Verdana 10'), fg=azul,
61+
bg=branco)
6162
velocidade.place(x=15, y=435)
6263
total = Label(window, text='Total: 1000', relief='flat', anchor=CENTER, font=('Verdana 10'), fg=azul, bg=branco)
6364
total.place(x=15, y=460)
@@ -78,48 +79,57 @@
7879
# Botões ________________________________________________________________↓
7980

8081
imgPikachu = Image.open('assets/img/cabeca-pikachu.png')
81-
imgPikachu = imgPikachu.resize((40,40))
82+
imgPikachu = imgPikachu.resize((40, 40))
8283
imgPikachu = ImageTk.PhotoImage(imgPikachu)
83-
imagemBanner = Button(window, image=imgPikachu, text='Pikachu', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
84+
imagemBanner = Button(window, image=imgPikachu, text='Pikachu', font=('Verdana 12'), width=150, relief='raised',
85+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
8486
imagemBanner.place(x=375, y=10)
8587

8688
imgBulbasaur = Image.open('assets/img/cabeca-bulbasaur.png')
87-
imgBulbasaur = imgBulbasaur.resize((40,40))
89+
imgBulbasaur = imgBulbasaur.resize((40, 40))
8890
imgBulbasaur = ImageTk.PhotoImage(imgBulbasaur)
89-
imagemBanner = Button(window, image=imgBulbasaur, text='Bulbasaur', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
91+
imagemBanner = Button(window, image=imgBulbasaur, text='Bulbasaur', font=('Verdana 12'), width=150, relief='raised',
92+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
9093
imagemBanner.place(x=375, y=65)
9194

9295
imgCharmander = Image.open('assets/img/cabeca-charmander.png')
93-
imgCharmander = imgCharmander.resize((40,40))
96+
imgCharmander = imgCharmander.resize((40, 40))
9497
imgCharmander = ImageTk.PhotoImage(imgCharmander)
95-
imagemBanner = Button(window, image=imgCharmander, text='Charmander', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
98+
imagemBanner = Button(window, image=imgCharmander, text='Charmander', font=('Verdana 12'), width=150, relief='raised',
99+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
96100
imagemBanner.place(x=375, y=120)
97101

98102
imgDragonite = Image.open('assets/img/cabeca-dragonite.png')
99-
imgDragonite = imgDragonite.resize((40,40))
103+
imgDragonite = imgDragonite.resize((40, 40))
100104
imgDragonite = ImageTk.PhotoImage(imgDragonite)
101-
imagemBanner = Button(window, image=imgDragonite, text='Dragonite', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
105+
imagemBanner = Button(window, image=imgDragonite, text='Dragonite', font=('Verdana 12'), width=150, relief='raised',
106+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
102107
imagemBanner.place(x=375, y=175)
103108

104109
imgGengar = Image.open('assets/img/cabeca-gengar.png')
105-
imgGengar = imgGengar.resize((40,40))
110+
imgGengar = imgGengar.resize((40, 40))
106111
imgGengar = ImageTk.PhotoImage(imgGengar)
107-
imagemBanner = Button(window, image=imgGengar, text='Gengar', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
112+
imagemBanner = Button(window, image=imgGengar, text='Gengar', font=('Verdana 12'), width=150, relief='raised',
113+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
108114
imagemBanner.place(x=375, y=230)
109115

110116
imgGyarados = Image.open('assets/img/cabeca-gyarados.png')
111-
imgGyarados = imgGyarados.resize((40,40))
117+
imgGyarados = imgGyarados.resize((40, 40))
112118
imgGyarados = ImageTk.PhotoImage(imgGyarados)
113-
imagemBanner = Button(window, image=imgGyarados, text='Gyarados', font=('Verdana 12'),width=150, relief='raised', overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
119+
imagemBanner = Button(window, image=imgGyarados, text='Gyarados', font=('Verdana 12'), width=150, relief='raised',
120+
overrelief=RIDGE, compound=RIGHT, anchor=CENTER, padx=5, fg=preto, bg=branco)
114121
imagemBanner.place(x=375, y=285)
115122

116123
# Botões ________________________________________________________________↑
117124
# onclick ________________________________________________________________↓
118125

119126

120-
121-
122127
# onclick ________________________________________________________________↑
123128

124129

125-
window.mainloop()
130+
window.mainloop()
131+
132+
'''
133+
Desenvolvido por Leonardo Alves
134+
Contato: leon4rdoalvess@gmail.com
135+
'''

0 commit comments

Comments
 (0)