Skip to content

Commit fade3d1

Browse files
authored
Update cronometro.py
1 parent 949de57 commit fade3d1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Cronometro/cronometro.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55
from tkinter import Canvas, Button, Frame, Label,Tk
66

7-
87
ventana = Tk()
98
ventana.config(bg='black')
109
ventana.geometry('500x250')
1110
ventana.title('Cronometro')
1211
ventana.minsize(width=500, height=250)
1312

14-
1513
ventana.columnconfigure(0,weight=2)
1614
ventana.rowconfigure(0,weight=2)
1715
ventana.columnconfigure(1, weight=2)
@@ -23,7 +21,6 @@
2321
ventana.columnconfigure(1,weight=2)
2422
ventana.rowconfigure(1,weight=1)
2523

26-
2724
frame1 = Frame(ventana)
2825
frame1.grid(column=0,row=0,sticky='snew')
2926
frame2 = Frame(ventana)
@@ -34,9 +31,7 @@
3431
frame4.grid(row=1, columnspan=3, sticky='snew')
3532
frame5 = Frame(ventana, bg='black')
3633
frame5.grid(row=2, columnspan=3, sticky='snew')
37-
3834
#---
39-
4035
frame1.columnconfigure(0, weight=1)
4136
frame1.rowconfigure(0, weight=1)
4237
frame2.columnconfigure(0, weight=1)
@@ -48,15 +43,13 @@
4843
frame5.columnconfigure(0, weight=1)
4944
frame5.rowconfigure(0, weight=1)
5045

51-
5246
canvas1= Canvas(frame1, bg='gray40', width=200, height =200,highlightthickness=0)
5347
canvas1.grid(column=0,row=0, sticky='nsew')
5448
canvas2= Canvas(frame2, bg='gray30', width=200, height =200,highlightthickness=0)
5549
canvas2.grid(column=0,row=0, sticky='nsew')
5650
canvas3= Canvas(frame3, bg='gray20', width=200, height =200,highlightthickness=0)
5751
canvas3.grid(column=0,row=0, sticky='nsew')
5852

59-
6053
texto1 = canvas1.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
6154
texto2 = canvas2.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
6255
texto3 = canvas3.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
@@ -72,7 +65,6 @@
7265
circulo2 = canvas2.create_oval(10,10,100,100, outline='medium spring green',width=10)
7366
circulo3 = canvas3.create_oval(10,10,100,100, outline='magenta2',width=10)
7467

75-
7668
mi = 0
7769
se = 0
7870
ml = 0
@@ -81,7 +73,6 @@
8173
clik_stop = 0
8274
clik_inicio =0
8375

84-
8576
def iniciar_pausar():
8677
global mi, se, ml, contar, clik_stop, clik_inicio
8778
ml = ml + 1
@@ -158,8 +149,6 @@ def reiniciar():
158149
inicio.config(bg= 'green2', text='INICIAR')
159150

160151

161-
162-
163152
def coordenadas():
164153
x = canvas1.winfo_width()
165154
y = canvas1.winfo_height()
@@ -203,8 +192,6 @@ def coordenadas():
203192

204193
canvas1.after(1000, coordenadas)
205194

206-
207-
208195
frame4.columnconfigure(0, weight= 1)
209196
frame4.rowconfigure(0, weight= 1)
210197
frame4.columnconfigure(1, weight= 1)
@@ -256,9 +243,7 @@ def coordenadas():
256243
font=('Arial', 12, 'bold'), width =20, command = reiniciar)
257244
fin.grid(column=2, row=0, padx =10, pady=10, sticky='nsew')
258245

259-
260246
coordenadas()
261-
262247
ventana.mainloop()
263248

264249

0 commit comments

Comments
 (0)