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_())
7/31/2024 1:01:24 PM
Should You Pay Off Your Mortgage Early or Invest? | Financial Advisor Explains
In this video, we go over the best way to go about where to put your excess cash when you have an existing mortgage. What is the optimal decision? Is it really smarter to invest the money instead of paying off the home? What are the other intangible factors? All that will be answered today. Mortgage Payoff Calculator: https://www.calculator.net/mortgage-payoff-calculator FREE STOCKS + RESOURCES: 🏆 Webull Deposit a Minimum of $500 and Get a Guaranteed $50 Free Stock: https://www.webull.com/k/HumphreyYang 🏆 Webull UK: https://www.webull-uk.com/i/humphreyUK 💸 SoFi Checking & Savings: https://sofi.com/humphrey Get up to 4.40% APY, pay no account fees and earn $250 when you sign up and set up direct deposit. Terms apply. RESOURCES: 💵 Free Templates: https://beacons.ai/humphreytalks/freedownloads 🐪 Hump Days Newsletter ➭ https://humpdays.substack.com ▶️ See What I Invest In ➭ https://patreon.com/humphreytalks 💳 My Favorite Credit Cards ➭ https://cardonomics.com/i/humphrey 👾 Join our free Discord Community: https://discord.gg/xJzsaGaaDE MY SOCIALS: Secret Channel -- https://youtube.com/@hug Instagram -- https://instagram.com/humphreytalks Twitter -- https://twitter.com/humphreytalks TikTok -- https://tiktok.com/@humphreytalks Rickie (Editor) ➭ https://instagram.com/coldgamerick WHO AM I? Hello 👋 I’m Humphrey, I used to be a financial advisor, worked in gaming/tech, and started my own eCommerce business. I make practical, rational content on investing, personal finance, the news, and much more with a data-backed approach. My goal is to help you with financial literacy and creating wealth. PS: I am no longer a current Financial Advisor, any investment commentary are my opinions only. Some of the links in this description are affiliate links that I do receive a commission for & they help support the channel! ⏱️ Timestamps: 0:00 - Start Here 0:55 - How Mortgages Actually Work 4:24 - Stock Market Returns 9:16 - Tips to Pay Off Mortgage Early
6/20/2024 6:00:12 PM
How to Make Your Money Work for You: The Passive Income Blueprint
Subscribe to Market Briefs for FREE and get my daily financial newsletter: http://briefs.co/jaspreet My recommended tools*! *Please note: Yes, these are our sponsors & advertisers. However, these are companies that I trust and use (or have used). The compensation doesn't affect my recommendations or advice. That being said, you should always do your own research & never blindly listen to a random guy on YouTube. ---------- ➤ Get A FREE Consultation With A Financial Advisor 1) 💰 Money Pickle - Best for $100,000 - $3M+ In assets: https://theminoritymindset.com/advisor ---------- ➤ Life Insurance 2) 🛡 Policygenius - Get a free life insurance quote: https://theminoritymindset.com/policygenius ---------- ➤ Real Estate Investing Online 3) 🏠 Fundrise - Invest in real estate with as little as $10! https://theminoritymindset.com/fundrise ---------- ➤ Invest In Stocks Passively 4) 📈 M1 Finance - Buy stocks & ETFs on autopilot: https://theminoritymindset.com/m1 ---------- ➤ Buy Gold Passively 5) 👑 Vaulted - Buy physical gold on autopilot: https://theminoritymindset.com/yt/vaulted ---------- ➤ Business Accounting 6) 💸 CommonWealth - Does your business do over $250k/year? If yes, get a free consultation from my partner accounting firm: https://theminoritymindset.com/yt/accounting ---------- Recommended: How To Live Off Your Dividends (& Never Work Again) https://youtu.be/dP-TDnpIsGE?si=0SEsdFUhqCVqAY91 What Is The Minority Mindset? "The Minority Mindset has nothing to do with the way you look. It's the mindset of thinking differently than the majority of people" ~Jaspreet Singh Follow me: Instagram: https://www.Instagram.com/MinorityMindset Website: https://www.TheMinorityMindset.com Want More 🥑🥑? Minority Mindset Clips: https://www.youtube.com/minoritymindsetclips Minority Mindset En Español: https://www.youtube.com/minoritymindsetenespanol Video host: Jaspreet Singh DISCLAIMER: This description may contain links from our affiliates, sponsors, and partners. If you use these products, we will get compensated - but there's no additional cost to you. DISCLAIMER CONT'D: I'm just a random guy on YouTube so do your own research! Jaspreet Singh is not a licensed financial advisor. He is a licensed attorney, but is he is not providing you with legal advice in these videos. This video, the topics discussed, and ideas presented are Jaspreet's opinions and presented for entertainment purposes only. The information presented should not be construed as financial or legal advice. Always do your own due diligence.
10/9/2024 11:30:05 AM
Let's Buy a Car! | Teacher Resources | Financial Literacy | Khan Academy
Meet Wally. He wants to buy a car! Unfortunately, Wally is the most gullible man alive, and he'll fall for every trick in the car dealer's book. Follow along, so you don't follow his example! 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:teacher-resources/xa6995ea67a8e9fdd:about-this-unit-investments-and-retirement/v/the-case-of-the-early-bird 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 All music and sound effects are either Creative Commons 0 or own work.
7/15/2024 4:15:36 PM
How to Live Off Rental Income: The Real Estate Wealth Formula
Subscribe to Market Briefs for FREE and get my daily financial newsletter: http://briefs.co/jaspreet My recommended tools*! *Please note: Yes, these are our sponsors & advertisers. However, these are companies that I trust and use (or have used). The compensation doesn't affect my recommendations or advice. That being said, you should always do your own research & never blindly listen to a random guy on YouTube. ---------- ➤ Get A FREE Consultation With A Financial Advisor 1) 💰 Money Pickle - Best for $100,000 - $3M+ In assets: https://theminoritymindset.com/advisor ---------- ➤ Life Insurance 2) 🛡 Policygenius - Get a free life insurance quote: https://theminoritymindset.com/policygenius ---------- ➤ Real Estate Investing Online 3) 🏠 Fundrise - Invest in real estate with as little as $10! https://theminoritymindset.com/fundrise ---------- ➤ Invest In Stocks Passively 4) 📈 M1 Finance - Buy stocks & ETFs on autopilot: https://theminoritymindset.com/m1 ---------- ➤ Buy Gold Passively 5) 👑 Vaulted - Buy physical gold on autopilot: https://theminoritymindset.com/yt/vaulted ---------- ➤ Business Accounting 6) 💸 CommonWealth - Does your business do over $250k/year? If yes, get a free consultation from my partner accounting firm: https://theminoritymindset.com/yt/accounting ---------- Recommended: How To Build Generational Wealth Without A Big Salary https://youtu.be/w8XIbQsDK0s?si=AQeYkFQV7M6soXD4 What Is The Minority Mindset? "The Minority Mindset has nothing to do with the way you look. It's the mindset of thinking differently than the majority of people" ~Jaspreet Singh Follow me: Instagram: https://www.Instagram.com/MinorityMindset Website: https://www.TheMinorityMindset.com Want More 🥑🥑? Minority Mindset Clips: https://www.youtube.com/minoritymindsetclips Minority Mindset En Español: https://www.youtube.com/minoritymindsetenespanol Video host: Jaspreet Singh DISCLAIMER: This description may contain links from our affiliates, sponsors, and partners. If you use these products, we will get compensated - but there's no additional cost to you. DISCLAIMER CONT'D: I'm just a random guy on YouTube so do your own research! Jaspreet Singh is not a licensed financial advisor. He is a licensed attorney, but is he is not providing you with legal advice in these videos. This video, the topics discussed, and ideas presented are Jaspreet's opinions and presented for entertainment purposes only. The information presented should not be construed as financial or legal advice. Always do your own due diligence.
10/25/2024 11:30:17 AM