Create GUI App with PyQt5 - PART 1

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • In this video we'll use PyQt5 to create the graphic interface of "Who Wants to be a Programmer???";
    a computer science trivia game, which determines who is truly worthy of the title!
    We'll design the first two frames of this game and learn how to switch from one to the other effortlessly.
    We'll also discuss in detail all the important widgets (text, image, button) , we'll go over styling and layout commands, as well as adding interactivity to clickable elements (this is probably my favourite part of PyQt5 - it allows you to create hover events and utilize your pro CSS skills to their full extent!).
    This is PART 1 of the complete project, where we focus on creating the GUI.
    In the upcoming PART 2, we will load a database of trivia questions and connect all its functionality to our interface.
    😍 WATCH PYQT5 TRIVIA APP - PART 2 😍
    • Open Trivia Database f...
    ********************************************
    DOWNLOAD STARTER FILES:
    github.com/MariyaSha/TriviaGa...
    PyQt5 Documentation:
    www.riverbankcomputing.com/st...
    COMPLETE PROJECT:
    github.com/MariyaSha/TriviaGame
    MY NEW BLOG:
    www.mariyasha.com/
    (also pythonsimplified.ca)
    CONNECT ON LINKEDIN:
    / mariyasha888
    FOLLOW ON INSTAGRAM:
    / mariyasha888
    ************************************
    ⭐⭐⭐ TIMESTAMPS ⭐⭐⭐
    ************************************
    00:00 - Intro
    00:59 - Starter files walkthrough
    ************************************
    1. CREATE WINDOW OBJECT
    ************************************
    01:15 - initialize GUI app
    01:31 - create QWidget window
    01:46 - set window title
    02:09 - set window width
    02:22 - set window background color
    02:58 - open window
    03:05 - terminate app
    ************************************
    2. RUN APP WITH TERMINAL
    ************************************
    03:25 - open Anaconda or other terminal
    03:29 - activate working environment
    03:35 - change directory
    03:57 - run app
    04:12 - initialize grid layout
    04:23 - apply grid layout
    ************************************
    3. CREATE LOGO WIDGET
    ************************************
    04:36 - load png image
    05:00 - create label widget
    05:10 - place image inside label
    05:23 - place logo on grid
    05:48 - set window position (fix)
    06:36 - align label to center
    06:56 - set label margin
    ************************************
    4. CREATE BUTTON WIDGET
    ************************************
    07:33 - create button widget
    07:53 - set button cursor
    08:32 - set button CSS style
    10:05 - place button on grid
    11:09 - set button padding and margin
    12:02 - mouse hover event
    ************************************
    5. CREATE FRAME FUNCTION
    ************************************
    13:10 - create frame function
    13:39 - call frame function
    13:52 - create global dictionary of empty lists
    14:40 - append local widgets to global dictionary
    15:12 - place global variables on the grid
    ************************************
    6. DESIGN FRAME 2
    ************************************
    15:55 - define frame 2 function
    16:09 - create text widget
    16:53 - create wrapping text widget
    17:36 - set word wrap
    18:45 - place label on grid
    19:26 - set column span
    19:58 - fix typos and parameters
    ************************************
    7. CREATE IDENTICAL BUTTONS
    ************************************
    20:28 - create a button widget
    21:05 - store button widget in a function
    21:51 - return button from function
    22:09 - add buttons to global dictionary
    22:18 - call button function many times
    23:17 - customize parameters for each button
    24:20 - update function call with new parameters
    ************************************
    8. SWITCH FRAMES
    ************************************
    26:02 - define callback function
    26:13 - hide all widgets
    26:43 - reset global dictionary
    27:49 - button callback
    28:23 - switch frames continuously
    ************************************
    29:54 - THANKS FOR WATCHING!
    ************************************
    #python #pythonprogramming #learnpython #creategui #gui #graphicuserinterface #pythontutorial #programming #createapp #createpythonapp #interface #designinterface
  • Věda a technologie

Komentáře • 433

  • @arkie87
    @arkie87 Před 3 lety +45

    I've watched many tutorials on PyQt5 and python in general, and you are the only one to actually explain what the code you write means and does! Keep up the good work and you earned a subscriber!

    • @lmnts556
      @lmnts556 Před 2 lety +7

      Why does almost no one do this? It is so important to tell viewers what the code actually does so we can understand it. So annoying lol.

    • @Viewer-tq9lt
      @Viewer-tq9lt Před rokem +2

      @@lmnts556 IFKR, I hate most other tutorial videos because they skip over so many crucial details. Later on I learn them on my own, go back and watch the videos thinking, WHY DIDN'T THEY JUST SAY THIS

  • @gecsus
    @gecsus Před 2 lety +2

    I want to praise you for taking note of corrections. This is a superior trait and I admire you more for your ability to learn and progress.
    The example you set, will influence your students and followers to do the same by following your good example. Kudos.

  • @dhavalshinde4332
    @dhavalshinde4332 Před 3 lety

    HEY , mam , these are genuenly the most helpful tutorial videos i have encountered !! i have been following ur content since last month now , and am especially amazed on this GUI APP. it is really quite classy and useful and , i observed that this code is really very clean and PYTHONIC as one can expect , nowhere, on the INTERNET or other sources did i found this program explained so well !!

  • @henchhank
    @henchhank Před 3 lety +1

    I found your vídeo randomly before take a sleep, I'm Lucky for dont fall asleep now hahaha. You made a Superb TimeStamp on description and looks like PyQt5 Will be more useful than TKinter for a Project! Thanks!

  • @mt03adventures
    @mt03adventures Před 2 lety

    Thank you very much, your idea to save the history in a global dictionary of lists of widgets is amazing :). I also like this way of using PyQt5 more than using in an object orientated way

  • @oreh350
    @oreh350 Před 2 lety

    Took me an hour to do it, thank you for your efforts. Шикарный английский!
    Using this way makes it look much better than Tkinter module.

  • @deanharris-martin1849
    @deanharris-martin1849 Před 3 lety +1

    Fantastic video and great run through of the functions and how to change them to achieve our own tailored display quiz windows. Thank you 💙

  • @mohsinnoor2262
    @mohsinnoor2262 Před 3 lety +2

    Hi there,
    I have listened and watched few of your lessons about Python and I would like to appreciate you about how you politely describe the lessons and sometimes I used to smile on your reactions and expressions, want to have more lectures, Appreciation from Pakistan.!!!

  • @andreconnelly9579
    @andreconnelly9579 Před 3 lety

    I done all work of Part 1 PyQt5 to create the graphic user interface. You an excellent work design greatness job. That first Part 1.

  • @BJCP
    @BJCP Před 3 lety +6

    Loving the content, thanks for making some great videos! I'm following along and I noticed that the hover styling includes when the cursor is over the margin of the button. Is there a way to have the margin but only have the hover over the button it self?

  • @kholmsk20
    @kholmsk20 Před 3 lety +15

    I'm waiting! Cheers from Japan.

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +4

      Thank you Domino Sniper, I'll see you in the live chat once the premiere begins! 😁
      Cheers from beautiful British Columbia!

  • @AICMan
    @AICMan Před 2 lety

    Excellent tutorial and I appreciated your explanations on what the code is doing. Thank you, you have a subscriber. Look forward to part 2

  • @DanielRios549
    @DanielRios549 Před 3 lety +2

    The possibility to add Style Sheet is simply awesome (it is Qt Style Sheet, not Cascading Style Sheet, but it is very similar)

  • @raphisteve
    @raphisteve Před 3 lety +10

    I hope that you'll get more attention because your tutorials have good quality.
    What i mean when talking about quality:
    - No waste of time ( You do everything very precise and fast)
    - Good audio quality
    - Very clear informations about why you are doing what you're doing
    I'm not here because i am a simp, your content just speaks for itself. Hopefully you keep your channel active for some years with financial profit and teaching ppl your way how to be better programmers!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +4

      Wow, thank you so much for the incredible feedback Raphi!!!
      I sometimes wonder if all this hard work is worth it - and then seeing comment such as yours gives me a huge motivation boost!! You've made my day, thank you!!! ❤️❤️❤️

    • @raphisteve
      @raphisteve Před 3 lety +1

      @@PythonSimplified I am happy to hear that!
      I maybe have an idea for your channel.
      I saw many ppl typing in your comments that they started to program their own stuff because of you. If you want to you could do a video format and start a playlist about you looking over your comunity's programs and tell them what they need to improove! Ofc you only need to show programs where you think the creators or viewers will learn a lot from but at the end you need to decide what you think is best haha
      I would love this kind of format if it doesnt take too much time and afford from you! 😊
      It maybe makes your Comunity even stronger followers and consumer bc yk.. nowadays a lot og programmers only do their thing and comunitys are not asked many times.
      But don't let it overwhelm you! I don't want you beeing in need for breaks from making yt because one of my ideas makes you unhappy. 😅😳😂
      Ps: I would probably be the first person sending you something because i am unsure about the logic of my programmed stuff.
      (Its kinda hard for me to read stuff from the internet and put the things into my programs that it works. Thats why i need exampls like your video 😩😂)
      Hope your day went as good as the motivation you got! 😌

    • @dataengineer4424
      @dataengineer4424 Před 2 lety +3

      “I’m not here because i am a simp…” LOL 😂

    • @raphisteve
      @raphisteve Před 2 lety

      @@dataengineer4424 simp memes have been such a nice thing back in the times i wrote the comment. ^^

    • @cinquecento1985
      @cinquecento1985 Před 2 lety

      Also..not indian.

  • @albertovidalfernandez112

    Expectacular, te seguire viendo! Buen trabajo

  • @ray_ho
    @ray_ho Před 3 lety

    Interesting, this is my first time looking at PyQt. Having done some simple CSS and javascript on websites before, this all makes sense.

  • @aabhaskrjha
    @aabhaskrjha Před 3 lety

    been trying to find this since a long time thank you so much

  • @abhishekpurohit8867
    @abhishekpurohit8867 Před 3 lety

    Thank you for this amazing and informative video, it helped me a lot in making my first GUI application.

  • @DFPercush
    @DFPercush Před 3 lety +1

    I've been meaning to check out Qt for a while, great topic!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Definitely check it out! I have a feeling you're gonna love it! 😃
      I can't even think about Tkinter since I've discovered it! I find PyQt5 to be so much nicer in terms of styling, element placement and interactivity - it's an incomparable experiance!

  • @miladsm4325
    @miladsm4325 Před 3 lety +1

    Today I discovered your channel randomly iam loving it,
    greetings from Iran

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Thank you Milad, I'm glad you like my tutorials! 😁
      Greetings from Canada! (and Nowruz Mubarak!)

  • @canallegal2364
    @canallegal2364 Před 3 lety +2

    I'm loving your classes! You and beautiful! From Brazil!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      Thank you so much CanaL Legal! Greetings from Canada! 😃

  • @pashka3k
    @pashka3k Před 3 lety +2

    Прикольная))) продолжай в том же духе! Как ux designer смотрю на это все😅 Какие оказывается возможности есть для стайлинга. Я в Германии по немецки так не шпарю как ты по английски 😂👍

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +5

      Hahaha spasibo bolshoie Pablues!! Ja zivu v Kanade uze po4ti 8 let, ho4esh neho4esh - Angliskii viu4ish o4en horosho za eto vremja 🤣🤣🤣 i nemezkii na mnogo trudneie 4em Angliskii, ja pomnu pitalas sama evo u4it (4tob lutshe ponimat pesni Rammstein) no ne kak ne smogla! tak 4to - it's not really apples to apples 😁

  • @AleemAhmed
    @AleemAhmed Před 3 lety

    I have learned something new here. Thanks for making this video :)

  • @selagee7550
    @selagee7550 Před 3 lety +12

    omggg I wish I found this video sooner its amazing

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Thank you so much Sela! 😀
      I'm glad you ended up finding it, even if slightly late!😉

  • @aikota18
    @aikota18 Před 3 lety

    Thankyou! I'm waiting for part 2

  • @sakshamkumar5302
    @sakshamkumar5302 Před 3 lety

    I have been studying from these videos and OMG these are amazing !!!!!!!!!!!! Why don't universities teach python???? Its such a great language!! Hope you become a famous youtuber!! Keep it up!

  • @cgme9535
    @cgme9535 Před 2 lety

    Great video! Thanks for putting this together.

  • @AlexAlex-ei7zf
    @AlexAlex-ei7zf Před 2 lety

    привет, веселая чувиха с отличными видео - уроками) Как давно я Тебя не смотрел. Рад видеть Тебя и рад, что у Тебя все хорошо и Ты как всегда на позитиве!

  • @jimbauer9508
    @jimbauer9508 Před 3 lety +2

    (Another) Excellent Video! Very well organized and super informative. Looking forward to Part 2 already!!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Thank you so much Jim! 😃
      I've already uploaded the complete code to Github if you want to have a peek. I'll go over it in lots of detail in the upcoming tutorial, but I thought it would be nice to include it in case people are curious 😉

    • @jimbauer9508
      @jimbauer9508 Před 3 lety +1

      @@PythonSimplified Nope! That's no fun :) I am gonna wait for the video - much better to learn that way :) Thanks though!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      @@jimbauer9508 it's actually my favourite kind of answer!! thank you! 😃

    • @Music_PsyQuake
      @Music_PsyQuake Před 2 lety

      @@PythonSimplified i love you

  • @jhalmu
    @jhalmu Před 3 lety

    I'm sold. Thanks.

  • @kelvinoo123
    @kelvinoo123 Před 3 lety +1

    clean code and clear explanation. Great tutorial video!

  • @brandonhult3665
    @brandonhult3665 Před 3 lety +4

    Awesome! I had just done this in tkinter but less efficient. I'm gonna try to use the same logic for my tkinter project!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +2

      You absolutely gonna love PyQt5, Brandon!! it will allow you much more customisation and interactivity, especially if you're a fan of CSS! 😁
      I'd love to see what you come up with, let me know how your project turns out! 😃

  • @xkaitomusic5775
    @xkaitomusic5775 Před 2 lety

    Thank you for this content, u definitely deserve more subscribers

  • @getmarriedchangjae4756

    u explained this so well T_____T THANK YOU SO MUCH!

  • @mohamedpedrou2898
    @mohamedpedrou2898 Před 3 lety +2

    You are the best 😍
    I love your Tutorials

  • @DanielRios549
    @DanielRios549 Před 3 lety +5

    In the stylesheet method, you should use f-strings with multi-line string (triple quotes)

    • @tj9382
      @tj9382 Před rokem

      Should, or perhaps could.

    • @DanielRios549
      @DanielRios549 Před rokem

      @@tj9382 Yeah, could were more appropriated

  • @nucluster
    @nucluster Před 3 lety +1

    Good English speaking! 👍(hello from South Ural😉)

  • @jean-francoisveneau5553

    Excellent vidéo. Thank you very much.

  • @pauloconci4196
    @pauloconci4196 Před 3 lety +1

    This inspired me to create my own app, thank you very much.

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +2

      Yeeeeey!!! Thank you Paulo, I'm super glad I've lighted an entrepreneur spark in you 😉
      Let me know how your app turns out! 🙂

  • @erremazo
    @erremazo Před 3 lety

    Hi. I love your videos. You are a very good programmer. Thnaks a lot from Colombia.

  • @olli1492
    @olli1492 Před 3 lety +1

    Very nice tutorial.
    Love the content!

  • @YeeiPlay
    @YeeiPlay Před 2 lety

    Tnanks very great way to explain and great tutorial.

  • @luricci8471
    @luricci8471 Před 2 lety

    great presentation! Thumbs up 👍🏻😃

  • @cristianfernandoaspivilleg9961

    the best programmer of world :D i learn fast with you

  • @fezacongo1692
    @fezacongo1692 Před 3 lety

    You are helping alots people around the world. God bless you young lady

  • @ydv1984
    @ydv1984 Před 3 lety

    Beautiful teacher ( teaching coding ) very nice 😁😁😁 full attendance in class ❤️😀

  • @TheMariaku
    @TheMariaku Před 3 lety

    Thank you - you are doing awwwwesome stuff! (And without music it’s so so much better - just a tip. For mus background ppl speech with music doubles the brain work)

  • @invisiblegame899
    @invisiblegame899 Před 3 lety +2

    Эх, красиво печатает😍

  • @stephentelian2919
    @stephentelian2919 Před 3 lety

    nice work, love the enthusiasm

  • @tj9382
    @tj9382 Před rokem

    Great video, nice teaching style.

  • @bgill7475
    @bgill7475 Před 3 lety +1

    This is so cool, thank you so much :)

  • @scale1982
    @scale1982 Před 3 lety +2

    Thank you , love your videos

  • @blindeagle7469
    @blindeagle7469 Před 3 lety +2

    Great video!! Very helpful 🔥🔥

  • @delliott8749
    @delliott8749 Před 3 lety +4

    im very excied for your new vidwo. i AM big fan. #1. you are the best

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Thank you so much D Elliot! 😊 I'm glad you're enjoying my videos!

  • @arezki1778
    @arezki1778 Před 7 měsíci

    thanks for all this work...Best regards.

  • @Utube2Itube
    @Utube2Itube Před 3 lety

    You are simply amazing 🙌🏻

  • @houssamrassi
    @houssamrassi Před 6 měsíci +1

    Mariya , Just in case no one has told you today , YOU ARE A GREAT TEACHER ! ... keep on being awesome.

  • @dustyarcher
    @dustyarcher Před rokem

    Wonderful thank you, 💕 it!

  • @oniadrian
    @oniadrian Před 3 lety

    great video, thank you!

  • @jntb3000
    @jntb3000 Před 3 lety

    This sounds fun. I like to start my own channel. Could you share the tips/steps .. and specifically what tools (cam, software) are needed? Thanks

  • @Sol_Naif
    @Sol_Naif Před rokem

    Excellent explanation, very useful

  • @egorkomarov4719
    @egorkomarov4719 Před 3 lety +3

    Thanks! I love your videos =)

  • @cryinkfly
    @cryinkfly Před 3 lety

    This video is made so great. 👌

  • @samjebaraj24
    @samjebaraj24 Před 3 lety +3

    Thanks for the amazing tutorial

  • @giuliadavila9013
    @giuliadavila9013 Před 2 lety +1

    Hi! you have really good content. I´m using Qt Designer with PyQt5, so I dont have to build the GUI from 0 on. Is there any chance that you have a video using both together? I´m new in this world.
    Thank you!

  • @TheSantosManu
    @TheSantosManu Před 3 lety

    Nice work, amazing timestamps index

  • @portinho199
    @portinho199 Před 3 lety +1

    I simply turned fan! Subscripted immediately!!! lol
    My english is not really very good, but you explain with clarity, calm and one form that is very easy to understand you!
    Particularly, I would like to learn PyQt in a complete project. If it's possible you to make it, I'll be very thankful.
    Best regards from Brazil

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +1

      Muito Obrigado Luis! Thank you so much! 😀
      I'm so happy you find my English easy to understand! I'm always trying to speak as clearly as possible to make sure nobody gets confused because of my accent hahah 😊
      Did you have a chance to see the second part of this project? this will connect a Trivia questions database to the interface and complete the app:
      czcams.com/video/r2ZN0mTDnPc/video.html
      And then once you finished building it and would like to learn how to convert it to an .exe file, you can checkout another video of mine (much shorter this time 😅 hahaha):
      czcams.com/video/Y0HN9tdLuJo/video.html
      Good luck and welcome aboard! 😁

    • @portinho199
      @portinho199 Před 3 lety

      ​@@PythonSimplified ahahahah, you risked to write in Portuguese...Very Nice!
      Yes, I'll see all videos and try to learn about PyQt becouse it's in my opinion the best and beautiful GUI for Python program.
      Thanks a lot for your attention and care!

  • @raghuveershinde5728
    @raghuveershinde5728 Před 2 lety

    Please make more projects using pyqt5 designer you are a good teacher

  • @bodeokunfolami9501
    @bodeokunfolami9501 Před 3 lety

    A beautiful teacher that has beautiful contents

  • @expertjung
    @expertjung Před 3 lety +11

    Thank you, I fell in love with Python

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +3

      You're welcome Andrei! 😀
      Python is the best programming language in the world!!! (but maybe I'm a bit biased... hahaha 😂)

    • @silviudinca6501
      @silviudinca6501 Před 3 lety +1

      @@PythonSimplified for data science maybe

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +2

      @@silviudinca6501 how about automation? Artificial Intelligence? Python web apps? There's actually a vast world of functionality beyond data science where Python stands out as well! 😃

    • @obinnaokafor8125
      @obinnaokafor8125 Před 3 lety

      @@PythonSimplified 🤣🤣🤣🤣 Yes you are biased. Thank you for this wonderful video, though.

    • @AgriculturaDigital
      @AgriculturaDigital Před 3 lety

      @@PythonSimplified yes. In Qgis script, Google earth engine script, beagle bone black board, so on..

  • @deanb500
    @deanb500 Před 3 lety +2

    These videos are excellent, really easy to follow along to, well thought out and interesting for green as grass beginners like myself. If i had one negative thing to say it would be to please take the mic off of the desk - im a headphone user and every keystroke sounds like a dubstep wub wub.

    • @PythonSimplified
      @PythonSimplified  Před 3 lety +2

      Thank you for the lovely feedback Dean! The sound recording for this video in particular is unfortunatley very bad! 😭 you could hear my computer in the background so I had to correct it with a bunch of filters - the result unfortunatley included horrific keypress sounds...
      But the audio on other videos is a thousand times better!! this one is a one time oopsie! 😀

    • @deanb500
      @deanb500 Před 3 lety

      @@PythonSimplified I’m looking forward to part 2 of this one while I work through part 2 of the PDF extractor app you made. It’s actually turned out to be quite useful for work!

  • @Team_BSE
    @Team_BSE Před 3 lety +1

    Nice to see greatings from every corner in the world. Little kisses out of Germany!

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      I agree, it's absolutely amazing how international we are on this channel! 😃
      Hugs from Canada! (sorry, I'm not single enough to send online kisses to strangers 🤣🤣🤣)

    • @Team_BSE
      @Team_BSE Před 3 lety +1

      @@PythonSimplified : That was just little kidding, didn't want to get u to personal. Its nearly 2pm in Germany and i'm melting my brain with this silly rats of permissions in Linux...

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      No worries,@@Team_BSE, I was also joking! :) I'm actually writing you this comment from my old laptop that was magically fixed with Linux and foam tape! :D I'm only beginning to discover how AMAZING this OS is (even though I'm struggling myself with all the "sudo" stuff and drivers 😅).
      I really wish they had Adobe products available on it though, I can't fully give up on Windows until they do so... good luck with the permissions! :)

  • @omarzaouak2552
    @omarzaouak2552 Před 3 lety

    Thanks for the valuable lessons

  • @marketing-vendas1125
    @marketing-vendas1125 Před 3 lety

    Awesome!

  • @erikvansoest9926
    @erikvansoest9926 Před 3 lety +1

    Very well done. Nice video and excellent presentation.

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      Thank you so much Erik, I'm glad you liked my tutorial! 😀

  • @angy586
    @angy586 Před 2 lety

    Really interesting, Hello from Belgium !

  • @Voltaje_YT
    @Voltaje_YT Před 3 lety +1

    I wish a PyQt6 tutorial now, wonder what kind of new stuff it can do Xd.

  • @LeoDMello
    @LeoDMello Před 2 lety +1

    Muito obrigado Maria!

  • @wingsoftechnology5302
    @wingsoftechnology5302 Před 3 lety

    Awesome ....!!

  • @Swanicorn
    @Swanicorn Před 3 lety

    Dare I say you are the better version of TheCodingTrain for me. They are a bit too advanced for someone just hopping on to their train. I love your format. You make programming less scary by using the simplest forms of the instructions and breaking them into separate lines.
    QUESTION: you are hard coding the margins, padding and window size. Do you have any video on how to automatically scale the parameters based on the resolution of the end user's device? Or maybe if the end user tries to resize the window which then causes the various button to scale and squish together or expand depending on the window size, kind of like how CZcams video player does when you resize the browser window. Is that even possible to do easily?

  • @michaelonyando2373
    @michaelonyando2373 Před 3 lety

    Great video, great code. I just have one problem, after calling the start_game method in the button widget, when I try running the program, it only shows frame2

  • @emreeren1752
    @emreeren1752 Před 3 lety

    You are amazing!!!!!!!

  • @yeetpizza7452
    @yeetpizza7452 Před 2 lety

    Im doing something similiar to this but using a class, but i have a problem, my problem is when i have my grid layout setup my buttons dont have rounded corners like they should do, i do have some edit line widgets and they have rounded corners (they are like a text input) im using this to make a login form and id appreciate any help getting the style to work with my buttons,

  • @ellukayou
    @ellukayou Před rokem

    Nice, I am learning a lot

  • @insanetvshort7076
    @insanetvshort7076 Před 3 lety +1

    All my years in python. I have never taken the time to learn PyQt till a client said he needs a desktop app. I love python.

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      Hahahaha I hear ya! PyQt is nothing short of magical! 😊
      Trust me, you would have had a different opinion about Python GUI if you went the Tkinter way instead 😁

    • @nurhesen
      @nurhesen Před 3 lety

      Doesn't it cost 550$?

  • @MrYankyfanky
    @MrYankyfanky Před 3 lety +1

    Однозначно like!

  • @leweed3049
    @leweed3049 Před 2 lety

    oh yeah i am SOO ready

  • @larryvincentregencia8362

    With regards to the styling, you can also create a separate python file specifically for it right and just import them especially if your dealing with multiple styles for buttons or whatever widget?

  • @TheGrudge80
    @TheGrudge80 Před 3 lety

    you could use QStackedWidget to implement the "frames". Also a tripple quoted f-string could be used for the stylesheet :-)

    • @chrisray1567
      @chrisray1567 Před 3 lety

      Wait, triple quote strings can be f strings?

  • @okoeroo
    @okoeroo Před 3 lety

    Nicely explained.

  • @saidneder41
    @saidneder41 Před 3 lety

    You are amazing!

  • @ExelGamboa
    @ExelGamboa Před 3 lety

    Thank you!

  • @rohitkumarsir387
    @rohitkumarsir387 Před 3 lety

    Congratulations for +20k subscribe

  • @emilie1977
    @emilie1977 Před 3 lety +1

    Thanks. How deploy this app? Is it possible to have an executable file?

  • @beppemerlino
    @beppemerlino Před 3 lety +2

    Very Cool!

  • @aaroncatolico7550
    @aaroncatolico7550 Před rokem

    You look like Mary-Kate and Ashley Olsen ('Olsen twins') from the 90's tv show - 'Full House'. Anyhow, great tutorial, kiddo. 👍👍

  • @carlobenter5090
    @carlobenter5090 Před 3 lety +1

    hey~ I love your videos from philippines

  • @idukunda_lengo
    @idukunda_lengo Před 3 lety +1

    Well explained!!!

  • @baconsledge
    @baconsledge Před 3 lety +2

    Thanks...needed an alternative for Tkinter. How about some threading in the future?

    • @PythonSimplified
      @PythonSimplified  Před 3 lety

      Hi Bob, good to see ya! 😃
      I'm so glad you brought that up! Originally I was about to add some threading to this project (and I actually have a fully functional version of this app that involves a timer, where you only have 30 seconds to answer each question!) 😁 I didn't cover it because I didn't understand exactly what I've done to get there, left alone trying to explain it to others hahahaha 😂
      But I can tell you for sure that this article will help you (at least in terms of Qt):
      programming.vip/docs/pyqt5-multithreading.html
      His code worked great for me (more specifically, the last example of the digital timer under QThread)
      I'll definitely cover multi-threading in the future though! just need to learn it better before I do so 😉

  • @kaisj7
    @kaisj7 Před 2 lety

    THANK YOU