Let's code a DIGITAL CLOCK in Python! 🕒

  Рет қаралды 10,943

Bro Code

Bro Code

Күн бұрын

Пікірлер: 33
@BroCodez
@BroCodez 6 ай бұрын
# Python PyQt5 Digital Clock import sys from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout from PyQt5.QtCore import QTimer, QTime, Qt from PyQt5.QtGui import QFont, QFontDatabase class DigitalClock(QWidget): def __init__(self): super().__init__() self.time_label = QLabel(self) self.timer = QTimer(self) self.initUI() def initUI(self): self.setWindowTitle("Digital Clock") self.setGeometry(600, 400, 300, 100) vbox = QVBoxLayout() vbox.addWidget(self.time_label) self.setLayout(vbox) self.time_label.setAlignment(Qt.AlignCenter) self.time_label.setStyleSheet("font-size: 150px;" "color: hsl(111, 100%, 50%);") self.setStyleSheet("background-color: black;") # Use a custom font # font_id = QFontDatabase.addApplicationFont("DS-DIGIT.TTF") # font_family = QFontDatabase.applicationFontFamilies(font_id)[0] # my_font = QFont(font_family, 150) # self.time_label.setFont(my_font) self.timer.timeout.connect(self.update_time) self.timer.start(1000) self.update_time() def update_time(self): current_time = QTime.currentTime().toString("hh:mm:ss AP") self.time_label.setText(current_time) if ___name___ == "__main__": app = QApplication(sys.argv) clock = DigitalClock() clock.show() sys.exit(app.exec_())
@w1nrex1338
@w1nrex1338 6 ай бұрын
THANK YOU FOR NOT QUITTING KZbin! YOU ARE THE BEST,❤ and because if you I know Python and html. THANK YOU SO MUCHHH!!!❤❤
@JeezySlots
@JeezySlots 6 ай бұрын
Congrats on 2 Mil bro! you've been great help!
@randompersonrnhaha
@randompersonrnhaha 6 ай бұрын
Great video! Terrific teaching man!
@w1nrex1338
@w1nrex1338 6 ай бұрын
2 million subscribers!!!!🎉🎉🎉🎉 YEAHHHHH! Finally, the legend got 2milion subscribers!!! Congratulations!🎉🎉🎉🎉🥳. And never forget, YOU ARE THE BEST, maybe your vies are not so good, but your content is the best!!!!❤
@EmilioAt77
@EmilioAt77 5 ай бұрын
I dont give a fuck about the algorithm or youtube, you are THE MAN, Bro! Seriously cant thank you enough for this! When you visit Argentina 🇦🇷, drinks are on me 🍻🍻
@AvengingKnight
@AvengingKnight 6 ай бұрын
Congrats on 2 Mil bro continue the good work
@gabrieljoseph4407
@gabrieljoseph4407 6 ай бұрын
Bro Code you are literally amazing man.
@AryanSingh-br1oq
@AryanSingh-br1oq 5 ай бұрын
first Welcome Bcak after a long time. Your way of teaching and desribe the code are really awsome.Can you make a playlist or long video of data analysis using python like library Pandas and Matplotlib?
@jesiemi
@jesiemi 6 ай бұрын
Awesome! I will learn it after i Learn html and css
@rajushah8748
@rajushah8748 6 ай бұрын
❤❤
@Piranha_Dark
@Piranha_Dark 6 ай бұрын
Great job Bro
@antonchigurh7198
@antonchigurh7198 6 ай бұрын
Great videos Bro! I wonder, can you make a video about unittest in python?
@hamod6R
@hamod6R 6 ай бұрын
Nice + Can you make a flet Tutorial?
@Unknown-sn4fv
@Unknown-sn4fv 6 ай бұрын
Hey Bro Code When will u make full course Lua
@omkarwakchaure1396
@omkarwakchaure1396 6 ай бұрын
Hello brother when you launched reactjs advanced part video.
@NyagaHarrison
@NyagaHarrison 6 ай бұрын
hi bro please i have been trying to add the image tag in your html beginner using notepad and i don't know what to do. Please help
@sanjithrathinavelan4081
@sanjithrathinavelan4081 6 ай бұрын
Bro pls upload flutter tutorial
@vijayjadav1808
@vijayjadav1808 6 ай бұрын
Bro please make video on nodejs And express js
@faiza4769
@faiza4769 5 ай бұрын
Bro please do pytorch tutorial
@DomainVoidB
@DomainVoidB 6 ай бұрын
For some reason im not able to use any of the imports. does anyone have any tips on how to fix that?
@r_lyricals_6201
@r_lyricals_6201 6 ай бұрын
Bro make one on Golang
@ferneto-ht7fc
@ferneto-ht7fc 6 ай бұрын
Can you make a tutorial about how to program with godot script one day?
@mnikhil8491
@mnikhil8491 6 ай бұрын
bro please make a video on flask and django
@JassersChannel
@JassersChannel 2 ай бұрын
I think he already made a Django one
@mnikhil8491
@mnikhil8491 2 ай бұрын
If u don't mind can u attach the link of that video... Thank you for response ​@@JassersChannel
@ABigLumpofClay
@ABigLumpofClay 6 ай бұрын
Yooo Brocode at 2mil subs!!!!
@Nom3x
@Nom3x 6 ай бұрын
I'll just stick with tkinter.
@JassersChannel
@JassersChannel 2 ай бұрын
Nah bro it is bad idea, PyQt5 ain't hard at all man, Especially when it comes from Bro Code
@WOLYON-x4
@WOLYON-x4 6 ай бұрын
Mr. Bro code , can you please help me design my website it will take me forever please I need your help I have the map on the design and it might be the biggest project you'll do ever , Since you love coding I've a design you might wanna help me build it everytime I build something different and I don't like it the Next day as I said it might be the biggest. let's talk in private and discuss more
Let's code a STOPWATCH in Python! ⏱
17:58
Bro Code
Рет қаралды 10 М.
How programmers flex on each other
6:20
Fireship
Рет қаралды 2,6 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
2 Python Developers VS $1000
15:04
PolyMars
Рет қаралды 1,8 МЛН
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2,2 МЛН
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
What does '__init__.py' do in Python?
6:50
Indently
Рет қаралды 98 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,2 МЛН
3 Levels of WiFi Hacking
22:12
NetworkChuck
Рет қаралды 2,5 МЛН
How I Would Learn Python FAST (if I could start over)
12:19