Skip to content

Commit 54f4c66

Browse files
authored
Update cronometro_v2.py
1 parent 76889cb commit 54f4c66

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Cronometro/cronometro_v2.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Youtube: https://www.youtube.com/c/MagnoEfren
44

55
from tkinter import Canvas, Button, Frame, Label,Tk
6-
76
ventana = Tk()
87
ventana.config(bg='black')
98
ventana.geometry('500x250')
@@ -38,15 +37,13 @@
3837
frame5.columnconfigure(0, weight=1)
3938
frame5.rowconfigure(0, weight=1)
4039

41-
4240
canvas1= Canvas(frame1, bg='gray40', width=200, height =200,highlightthickness=0)
4341
canvas1.grid(column=0,row=0, sticky='nsew')
4442
canvas2= Canvas(frame2, bg='gray30', width=200, height =200,highlightthickness=0)
4543
canvas2.grid(column=0,row=0, sticky='nsew')
4644
canvas3= Canvas(frame3, bg='gray20', width=200, height =200,highlightthickness=0)
4745
canvas3.grid(column=0,row=0, sticky='nsew')
4846

49-
5047
texto1 = canvas1.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
5148
texto2 = canvas2.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
5249
texto3 = canvas3.create_text(1,1, text='0', font=('Arial',12,'bold'), fill= 'White')
@@ -69,7 +66,6 @@
6966
click_lectura = 0
7067
clik_stop = 0
7168
clik_inicio =0
72-
7369
def iniciar_pausar():
7470
global mi, se, ml, contar, clik_stop, clik_inicio
7571
ml = ml + 1
@@ -84,15 +80,13 @@ def iniciar_pausar():
8480
if clik_inicio is None:
8581
stop.grid(column=0, row=0, padx =10, pady=10, sticky='nsew')
8682
stop.config(bg= 'orange', text= 'DETENER')
87-
8883
def stop_boton():
8984
global contar, clik_stop
9085
clik_stop = stop.grid_forget()
9186
if clik_stop is None :
9287
inicio.grid(column=0, row=0, padx =10, pady=10, sticky='nsew')
9388
inicio.config(bg= 'aqua', text='CONTINUAR')
9489
inicio.after_cancel(contar)
95-
9690
def vueltas():
9791
global mi, se, ml,click_lectura
9892

@@ -116,7 +110,6 @@ def vueltas():
116110
lectura6.config(text='{} → {}:{}:{}'.format(click_lectura, mi,se,ml),
117111
fg = 'white', bg='gray10')
118112
click_lectura = 0
119-
120113
def reiniciar():
121114
global mi, se, ml, contar, click_lectura
122115
mi = 0
@@ -133,7 +126,6 @@ def reiniciar():
133126
stop.grid_forget()
134127
inicio.grid(column=0, row=0, padx =10, pady=10, sticky='nsew')
135128
inicio.config(bg= 'green2', text='INICIAR')
136-
137129
def coordenadas():
138130
x = canvas1.winfo_width()
139131
y = canvas1.winfo_height()

0 commit comments

Comments
 (0)