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
Beat Impulse Buys: Strategies for Savvy Spending | Over 50 & Flourishing
Join me for an insightful conversation with Jen Smith from Frugal Friends as we explore what you need to know to achieve financial wellness. In this episode, we cover everything from curbing impulse spending to mastering your budget. Jen shares her expert tips on how to outsmart those sneaky impulse buys and offers the best strategies for savvy spending. Don’t miss out on these transformative tips that will put you on the path to financial freedom! Check out the Frugal Friends Podcast: https://www.frugalfriendspodcast.com/ Jen's Book: https://www.amazon.com/What-Love-Without-Going-Broke/dp/0063371316 Thanks to my Sponsors: Go to https://boncharge.com/OVER50 and use coupon code OVER50 to save 15% If you’re over 50, use all that wisdom you’ve gained over the years and visit Midi Health. Book your virtual visit today at https://JoinMidi.com Get 15% off OneSkin with the code OVER50at https://www.oneskin.co/ #oneskinpod I worked with Miraclesuit on a special offer just for my listeners. Order today with my exclusive code OVER50 at https://Miraclesuit.com to get 25% off! Interested in being featured as a guest? Please email [email protected] For advertising opportunities please email [email protected] We want to make the podcast even better, help us learn how we can: https://bit.ly/2EcYbu4 Privacy Policy: https://www.studio71.com/terms-and-conditions-use/#Privacy Policy -------------------------------------------- Subscribe: http://bit.ly/subdominique Watch the latest videos: https://youtube.com/playlist?list=PLKUX44R3MbuSYHIQgfhzmQ9dOJI_c3N7L&playnext=1&index=2 Watch more Dominique Sachse: Beauty: https://www.youtube.com/watch?v=XDHJ901QU_Q&list=PLKUX44R3MbuSDQV7BzvQxMrVeVZfGBCcD Lifestyle Tips & Tricks: https://youtube.com/playlist?list=PLKUX44R3MbuR3sX61i9QiwnOBr61tEMc_&playnext=1 Most Popular: https://youtube.com/playlist?list=PLKUX44R3MbuTDh-LeJThrmz5XBrjQxbob&playnext=1 Follow Dominique Sachse: TikTok: https://www.tiktok.com/@dominiquesachse Instagram: https://instagram.com/dominiquesachse Facebook: https://facebook.com/DominiqueSachse Check out my website: http://dominiquesachse.tv You can order a copy of my new book LIFE MAKEOVER - Embrace The Bold, Beautiful, & Blessed YOU here: https://www.dominiquesachse.tv/book/ Each product I feature is something I have used and loved and wanted to share with you. I choose 100% of the products I feature and do not ever recommend anything I haven't personally used myself. Links in my description may be affiliated and are a wonderful way to show your support, allowing me to continue spreading beauty and boldness. About Dominique Sachse: Welcome to the official Dominique Sachse YouTube channel! On this channel, you’ll find inspiring “Yes, you can do it!” tips for transformative hair and makeup, fashion - and health and wellness related content for the mature woman who’s in her PRIME! I enjoy sharing my life with you through my vlogs, how-to live YOUR best life through Q & A videos and so much more, all with a touch of faith and affirmation. #DominiqueSachse #FORMAT #VIDEOSPECIFIC
2024-09-05T18:00:16Z
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
Top 5 Ways To Invest $3,000
$3,000 is a good amount of money but it probably feels too small to invest. I'll show you some great ways to invest. The Kronos Fund: http://kronosfund.com ============================================================ ✅ SUBSCRIBE SUBSCRIBE SUBSCRIBE ✅ https://www.youtube.com/user/REInvestorTV?sub_confirmation=1 ============================================================ Partner with Kris Krohn 🤝 Got Money or Retirement Savings? Partner with Kris on Deals: https://home.kriskrohn.com/partnering The Kronos Fund: http://kronosfund.com Invest In the Things I Invest In. Join My Investor's Club! https://home.kriskrohn.com/investing-yt-a Free Books 💰 Get Kris’ FREE REAL ESTATE BOOK on Back-Yard Investing 'Strait Path'💰 http://sp.kriskrohn.com/claim-your-free-book Get Kris’ Book "HAVE IT ALL" https://home.kriskrohn.com/freehaveitall-yt Reach Every Goal–Get Kris’ FREE Limitless Book https://home.kriskrohn.com/limitlessfreebook Digital Courses https://uplife-group.mykajabi.com/store Franchise Franchise With Melty https://go.kofranchising.com/optin-form-page Other 🤝Get a FREE custom Real Estate Game Plan from Kris’ Team https://home.kriskrohn.com/invest-now Learn Kris’ Lease Option System--FREE Game Plan Consultation http://www.limitlessmentor.com/TV Pick a Life Insurance that Helps you Invest https://home.kriskrohn.com/mpi PS: Save Kris’ phone and text him anytime you have questions: +1 (385) 217-3477 ================= 📞 QUESTIONS ABOUT PRODUCTS, CONTACT SUPPORT [email protected] 📲 CONNECT WITH KRIS: ================= Podcast https://www.kriskrohnshow.com Instagram https://www.instagram.com/kriskrohn/ Facebook https://www.facebook.com/MentorwithKris Twitter https://twitter.com/kriskrohnmentor LinkedIn https://www.linkedin.com/in/mentorwithkris Youtube Channel https://www.youtube.com/user/REInvestorTV TikTok https://vm.tiktok.com/HQYU1v/ Blog http://blog.kriskrohn.com Audible http://rdrurl.com/kriskrohnaudible Kris Krohn is not in the business of providing personal, financial or investment advice and specifically disclaims any liability, loss or risk, which is incurred either directly or indirectly, using any of the information contained in this document. Also, Kris Krohn, this video, and any online tools, if any, do NOT provide ANY legal, accounting, securities, investment, tax or other professional services advice and are not intended to be a substitute for meeting with professional advisors. Homes and information about homes in this video (if any) are historical examples, where past performance does not predict future results. If legal advice or other expert assistance is required, the services of competent, licensed and certified professionals should be sought. In addition, Kris Krohn does not endorse ANY specific investments, investment strategies, advisors, or financial service firms. NO INVESTMENT, FINANCIAL, LEGAL OR TAX ADVICE The contents of this video are for informational and educational purposes only. They should not be considered investment, financial, legal or tax advice. Kris Krohn is not licensed in the insurance or securities industries and is not in the business of selling, soliciting or negotiating the sale of any insurance contract, security or other investment vehicle. DISCLOSURE OF FINANCIAL RELATIONSHIP Mr. Krohn has a financial interest in MPI Insurance Services, LLC (MPI), a licensed insurance brokerage agency incorporated.. #KrisKrohn #RealEstateInvesting #MoneyMindset
2024-10-14T19:00:11Z