Open JohnMarieArpon opened 2 years ago
kamo na bahala magvideo aning sa stopwatch.py magrun manang file hehehehehe thank you.
panong video? basta mapakita lang na naga work? try ko now
kamo na bahala magvideo aning sa stopwatch.py magrun manang file hehehehehe thank you.
walang pause D:
ay okay lang man kasi stop apat na button lang naman ang function
ay akala ko kasi need pa base run sa binigay na mga gagawin sana natin 😅
anong novel ng stop watch natin? try ko sana yung video, kaso sabi ni sir sa instructions need makita face ng naga discuss hahahaha .__.'
Guys may alam kayo na app or any software pwede gamitin to screen record para sa video natin?
@KarlaShaneValdez pwede ka magamit ug OBS in case magrecord :>
naubusan na ako ng sasabihin. hanggang 45sec lang 😭
check niyo vid ko guys if okay na ba yun 💀
hindi masend sa gc. sending lang palagi. san ko pwede isend?
import
import tkinter as tk
WIDGETS
root=tk.Tk() root.geometry('485x220') root.title('Stopwatch')
VARIABLES
running=False hours,minutes,seconds=0,0,0
start function
def start(): global running if not running: update() running=True
start button
start_button=tk.Button(text='start',height=5,width=7,font=('Arial',20),command=start) start_button.pack(side=tk.LEFT)
update stopwatch function
def update(): global hours,minutes,seconds seconds+=1 if seconds ==60: minutes+=1 seconds=0 if minutes==60: hours+=1 minutes=0
formatbtime to include leading zeroes
hour_string=f'{hours}' if hours>9 else f'0{hours}' minutes_string=f'{minutes}' if hours>9 else f'0{minutes}' secong_string=f'{seconds}' if hours>9 else f'{seconds}'
run app
root.mainloop
@KarlaShaneValdez ito na yung nagawa ko sa start 😁