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 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