Let's code a DIGITAL CLOCK in Python! 🕒
#python #pythontutorial #pythoncourseforbeginners 00:00:00 pip install PyQt5 00:00:41 imports 00:01:57 class DigitalClock(QWidget) 00:02:59 if __name__ == "__main__" 00:04:48 setting up __init__() 00:05:29 initUI() 00:10:03 update_time() 00:12:47 custom font ## 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, 300) ## 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_())
2024-08-04T13:01:24Z
Rich vs. Broke: Can Money Buy Happiness? (Spoiler: Nope!)
Welcome to "Rich vs. Broke: Can Money Buy Happiness? (Spoiler: Nope!)" – a fun and eye-opening exploration of how wealth and frugality shape our lives in unexpected ways! In this entertaining episode, we’ll take you on a rollercoaster ride through the extravagant world of the rich, showcasing luxurious cars, opulent vacations, and gourmet meals. But wait! We’ll also flip the coin and dive into the resourceful and inventive lives of those living on a budget. Watch as we uncover clever hacks, unexpected joys, and the creative ways people find happiness without breaking the bank. Through laugh-out-loud skits and relatable scenarios, we’ll tackle the myths about money and happiness. Can a designer handbag really make you happier than a cozy night in with friends? Is a fancy dinner worth more than a picnic in the park? Spoiler alert: the answer might surprise you! Join us for this lighthearted journey that proves joy comes in many forms—sometimes, the best things in life are free! Don’t forget to like, subscribe, and share your thoughts in the comments about what truly makes you happy! Check out our BEST Crafty Panda Videos HERE: https://www.youtube.com/playlist?list=PL_hNADyE5fYAMdaXlw9xyi6Y9OILd2iXC Don't forget to subscribe: https://www.youtube.com/@CraftyPanda/?sub_confirmation=1 The Producers and Creatives do not make any representation or warranty in regards to the accuracy, applicability or fitness of the contents of this video. This video was made strictly for entertainment and informational purposes only. If you wish to apply ideas in this video, you are taking full responsibility for your actions. Producers and Creatives of this video are not held liable for any damage or loss arising from the use of this video material. All products and company names shown in this video are trademarks™ or registered trademarks® of their respective holders. Use of them does not imply any endorsement by them.
2024-10-13T11:00:57Z
How to make your money grow | Banking | Financial Literacy | Khan Academy
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now! https://www.khanacademy.org/college-careers-more/financial-literacy/xa6995ea67a8e9fdd:banking/xa6995ea67a8e9fdd:interest-from-savings-to-investing/v/how-to-make-your-money-grow Compound interest helps your money grow by earning interest on both your original amount and any accumulated interest over time. This snowball effect can significantly increase your savings or investment value in the long run. Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help! Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
2024-08-01T19:50:02Z
The Subtle Difference Between Old Money And Quiet Luxury
🔴 https://www.realmenrealstyle.com/rmrscyt - JOIN the best style community here to get access to awesome perks. See you there! The video covers the differences between old money and quiet luxury clothing styles, analyzing their key characteristics and providing examples of brands that fit into each category. If you want to master sending subtle signals about your status, be sure to watch the video. ➡️ https://youtu.be/l4oCtg6sK5s?list=PLbAUemeg-KyfFVPVCmGq9RGp_5XHCq6Or - Click here to watch 11 Old Money Manners That Elevate Your Style. ➡️ https://youtu.be/cRNbCeFeYPU?list=PLbAUemeg-Kyc4nJ2iFUTUyTFMhQxh3YR5 - Click here to watch The ONLY Style Rules A Man Needs To Know (2024 Edition) 📝(QUIZ) How do people perceive your style & image?: https://stylescorequiz.com/youtube 👞My favorite products and accessories: https://amazon.com/shop/realmenrealstyle 👉JOIN THE COMMUNITY ✔ Join the best style community here to get access to awesome perks - https://www.realmenrealstyle.com/rmrscyt ✔ Get access to RMRS stickers and emojis on this channel: https://youtube.com/realmenrealstyle/join ✔ Learn how to dress for success & be confident: https://thestylesystem.com/youtube 🔴FREE MEN’S STYLE GUIDELINES: https://realmenrealstyle.com/rmrs-ebooks 📙7 Deadly Style Sins 📘How To Dress For Your Body Type 📗The Ultimate Guide To Casual Style 👉 FOLLOW ME ✔ Instagram: https://instagram.com/rmrstyle ✔ Pinterest: https://pinterest.com/rmrstyle ✔ Facebook: https://fb.com/RealMenRealStyle 📺 MORE YOUTUBE CHANNELS ✔ Scenteno Channel: https://youtube.com/@Scenteno ✔ Spanish YouTube: https://www.youtube.com/@RealMenRealStyleSpanish ✔ Russian YouTube: https://youtube.com/@RealMenRealStyleRussian 📨 CONTACT ✔ To Work With Me: [email protected] ✔ Talk to Me Directly: https://realmenrealstyle.com/contact 📫 SHIPPING ADDRESS Antonio Centeno A Tailored Suit PO Box 415 Wittenberg, WI 54499 USA CHAPTERS 0:00 - Old Money Vs Quiet Luxury - Is There A Difference? 0:18 - Old Money vs Quiet luxury 1:05 - What is Quiet Luxury? 1:38 - 5 Key characteristics of Quiet Luxury 1:45 - Modern & minimalistic 2:51 - Enclothed cognition 3:25 - Discrete branding 4:00 - Versatile & functional 4:21 - Sustainiability 4:50 - 5 Key Characteristics of Old Money 5:20 - Conservative choices 5:52 - Subdued elegance 6:43 - Check out my new FREE men's style community 7:30 - Quality over trend 8:05 - Understated elegance 9:02 - Which brands are old money vs quiet luxury? #menstyle #mensfashion #menswear 👔 Real Men Real Style helps YOU become the man you know yourself to be. Gentlemen, welcome. I'm Antonio Centeno, founder of Real Men Real Style. Join me as I empower you to wield style as your secret weapon for success. https://realmenrealstyle.com/ From men's shoes, men’s fashion, cologne, accessories, to men's hair – I've got your style essentials covered. Navigate beyond fleeting trends and embrace the essence of timeless men's fashion 👞 It’s not just about dressing well; it's about embodying the actions that lead to being a true gentleman. Get ready for job interview tips, life skills, and communication training that'll amp up your public speaking game. Achieve your dreams, earn more money, and exude confidence. 💼 New videos drop Tuesday, Thursday, and Saturday. Don't miss out – hit that subscribe button and level up your style game with Real Men Real Style 🎩
2024-02-20T13:00:29Z