PyQT5 Designer Drag and Drop GUI - PyQt5 GUI Thursdays #6

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 205

  • @Codemycom
    @Codemycom  3 года назад +3

    ▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/3sHT8dc bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶️ Get The Code:
    bit.ly/394NQ3R

  • @OnlyUseMeEquip
    @OnlyUseMeEquip Год назад +2

    coming from VS why does designing a gui need to be so complicated in python

    • @Codemycom
      @Codemycom  Год назад

      I came from VS and don't see this as particularly more complicated...

  • @chrisray1567
    @chrisray1567 3 года назад +4

    At 10:53, you can probably omit the lambda function if you pass a reference to the “press it” function rather than call it. In other words, clicked=self.press_it instead of clicked=lambda: self.press_it()

    • @Codemycom
      @Codemycom  3 года назад

      yeah

    • @nishant_soni97
      @nishant_soni97 2 года назад +1

      if you want to pass some parameters then?

    • @omegaelite3
      @omegaelite3 Год назад +2

      This actually helped me from getting an error to it actually working

  • @masker1128
    @masker1128 3 года назад +2

    BTW, you're my Programming STARRRR
    Good vid btw!

  • @hawkeyezar5779
    @hawkeyezar5779 3 года назад +4

    By the way, you dont need to convert the UI file to python code. You can import it, converting it might be a little easier for beginners though.

  • @ratmadness4858
    @ratmadness4858 3 года назад +2

    this is an outstanding series! Thanks!

  • @rfresh1011
    @rfresh1011 3 года назад +2

    You didn't mention it, but I'm assuming once you generate the .py file from the .ui file AND that you have modified the .py file, you cannot generate that .ui file again? Othewise, it would over write your manual changes you've made to the .py file?

    • @Codemycom
      @Codemycom  3 года назад

      You can always save it as a different file name.

    • @josys363
      @josys363 2 года назад +1

      That is correct. And that is why you should not modify that generated file. I see it a lot in tutorials and in production it's a nightmare. In fact, I never even look at the generated file I just import that into another Python file and use it. Alan D. Moore did an excellent video on why you should not modify the generated python file.

  • @saipatil2462
    @saipatil2462 3 года назад +1

    Thanks a lots. It's really hard to program in pyqt5. This is very easy!!!

  • @umarzafar7759
    @umarzafar7759 3 года назад

    You have amazing teaching skills.

  • @ElectroRestore
    @ElectroRestore 3 года назад +4

    So basically, Python and this GUI maker are two separate utilities that in themselves, are far worst than using Visual Basic 4 from 20+ years ago!
    Python code is about the same as VBScript. But the language does not have an IDE GUI designer. VB gave you an IDE and a GUI. And when you clicked a button (or any other element), it opened the code block directly for you to type in your code for the click event. Amazing! We have gone from good to terrible in 20+ years with VB to python, respectively!

    • @Codemycom
      @Codemycom  3 года назад +3

      Lol...no, you're incorrect. Keep watching the playlist. lol

  • @maikaylabrunner3050
    @maikaylabrunner3050 Год назад +1

    How do I save the changes made in the .py file?

    • @Codemycom
      @Codemycom  Год назад

      what do you mean? Just save the file...

    • @maikaylabrunner3050
      @maikaylabrunner3050 Год назад

      @Codemy.com yes but it doesn't change the .ui file. I figured it out though.

  • @chandlerr8988
    @chandlerr8988 3 года назад +1

    I need some help with this. Im not sure why but anytime I try to run designer.exe it gives me a error window titled "Fatal Error in Launch" and inside the window says "stderr duplication failed" I cant find anything through google or duck duck go

    • @chandlerr8988
      @chandlerr8988 3 года назад +1

      I found a solution, I can search "designer" in my windows search bar and run it that way and it works

    • @damianzawadzki691
      @damianzawadzki691 2 года назад

      @@chandlerr8988 Thank you for your comment! It helped!!!

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Thanks for your videos sir from Uzbekistan

    • @Codemycom
      @Codemycom  3 года назад +1

      Thanks for watching!

    • @rahmatilloismoilov3323
      @rahmatilloismoilov3323 3 года назад

      @@Codemycom I'm learning English now because I always speaking Uzbek language

    • @rahmatilloismoilov3323
      @rahmatilloismoilov3323 3 года назад +1

      But I didn't stop learning English.If I spoke wrong I'm sorry

  • @itamarribeiro8865
    @itamarribeiro8865 3 года назад +2

    On linux I did it:
    $ pip install pyqt5-tools
    then
    $ qt5-tools designer

    • @markieb4704
      @markieb4704 2 года назад

      Good job, Itamar. It worked for me.

  • @mahmoodah03
    @mahmoodah03 2 года назад

    my designer.exe isn't opening do you have an idea of what the problem could be

    • @Codemycom
      @Codemycom  2 года назад

      You're probably using different tools than I am

  • @luke752010
    @luke752010 2 года назад +1

    Outstanding video. is it possible to do the opposite? i mean from .py to. ui?

    • @Codemycom
      @Codemycom  2 года назад +1

      If you do everything in the py file, you don't need a UI

  • @lukspuck53
    @lukspuck53 3 года назад

    mine is not working, i reinstalled checked the path and i get an error when testing designer.exe, that the command couldn`t be found or is wrong, any help?

  • @JustIn-case
    @JustIn-case 3 года назад

    Ayyy! This worked! Thanks!

  • @yaron9877
    @yaron9877 2 года назад

    Hey, Great Video.
    I just have a question, the ---> QPushButton(self.central, clicked = lambda: …) Doesn't work
    is there another way to make the button react on click?

    • @Codemycom
      @Codemycom  2 года назад

      Why wouldn't it work?

  • @RustyTube
    @RustyTube 2 года назад

    It looks nice in the Designer, but when I converted it to .py, it looked horrible. It does not seem to figure out that I have a 4k monitor (thought it is the same monitor I ran Designer with). I tried to resize the window, which it does, but it does not resize the widgets to match.
    Come to think of it, that was why I gave up on Qt some years ago.
    Any suggestions?

    • @Codemycom
      @Codemycom  2 года назад

      No, I'm sure it looks fine. Your monitor settings are just super advanced.

  • @franktewierikholscher
    @franktewierikholscher 2 месяца назад

    pip install PyDt5Designer doesn't work (anymore?) what could be the reason for this. the error message
    ERROR: Could not find a version that satisfies the requirement PyQt5Designer (from versions: none)
    ERROR: No matching distribution found for PyQt5Designer
    who can help me?

    • @abhaychaubey3740
      @abhaychaubey3740 8 дней назад

      Try installing an earlier version of python like 3.7.7 something then try

  • @davel9130
    @davel9130 3 года назад +3

    Thanks for this. I had installed Qt _Creator_ (on Mac) weeks ago and gave up on it. But after watching your video, I was able to load *Designer* with "open -a Designer" within the virtual environment. Cheers.

  • @kaindradjoemena7789
    @kaindradjoemena7789 3 года назад

    does anyone have it opened and have all the panels be huge? I opened my PyQt5 designer and everything was big. The size of the fonts were huge, the panels were cluttering the screen and I am not enjoying it. Does anyone know how to make the fonts and the panels of the designer smaller?
    Thanks

  • @aravindtlp
    @aravindtlp 3 года назад

    Can you please say how this compares to Tkinter? Which is better for creating a windows DB GUI application.

    • @Codemycom
      @Codemycom  3 года назад +1

      You'll have to just watch my videos and see how they compare

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Which operating system is better programming for you

  • @cibelless510
    @cibelless510 2 года назад

    Thanks for the class, please every time that I convert the ui into python I lost everything. Please how to change Ui and convert the file without lost my old changes. Thanks

    • @Codemycom
      @Codemycom  2 года назад

      rename the old one first, or name the new one something else so it doesn't overwrite it when you convert it

  • @davidjoyoktavianusbancin7641
    @davidjoyoktavianusbancin7641 2 года назад

    Hi..how do i put value from pymodbusTCP to text or label in pyQT5?

    • @JohnElder
      @JohnElder 2 года назад

      In the same way you put anything in a text label

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    I need a code If I make a change to the entry box on tkinter, it should save it and show it when I open the app again

    • @Codemycom
      @Codemycom  3 года назад

      This is not a video on tkinter...but just the tkinter playlist. I have lots of videos that do that sort of thin.

  • @anjuchoudhary2860
    @anjuchoudhary2860 2 года назад

    Please tell how to convert .UI file into .py file in pycharm

    • @anjuchoudhary2860
      @anjuchoudhary2860 2 года назад

      I have installed and created a ui file already just please tell How to convert it .

    • @Codemycom
      @Codemycom  2 года назад

      @@anjuchoudhary2860 No Sorry, I don't think people should use pyCharm.

  • @tas3159
    @tas3159 3 года назад

    How do this works if you want to make modifications in your GUI ? let say I want to add a button. Now I need to redo the "compiling " process. Once I do that I guess I'm loosing all the code I wrote initially?

    • @Codemycom
      @Codemycom  3 года назад

      yep, I'd compile it under a different name so as not to override your original code. Then copy/paste.

    • @tas3159
      @tas3159 3 года назад

      @@Codemycom Thanks for you quick response. I see... it don't seems like a very robust workflow. the chances that you will miss a copy paste or place it in a wrong spot is not small. Is there a different GUI drag and drop platform that know to adapt the code when adding new features without the need to redo all the code again?

    • @Codemycom
      @Codemycom  3 года назад

      @@tas3159 No.

    • @tas3159
      @tas3159 3 года назад

      @@Codemycom Got you. Thanks for the content.

  • @splaq
    @splaq 3 года назад

    Unfortunately there is no wheel for linux, you have to download and install the files yourself.

    • @Codemycom
      @Codemycom  3 года назад +1

      Yeah, welcome to linux :-p

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Can you help me for learning programming! I need help@I am interested in creating more GUI applications using python

  • @satydevnegi5454
    @satydevnegi5454 3 года назад

    Awesome

  • @Paul-ly1pw
    @Paul-ly1pw 2 года назад

    Wow I’ve only just discovered this. Seems a bit easier than Tkinter as it more drag and drop. Are there any drawbacks of this over Tkinter?
    I want to create a scheduler and be able to print/export the schedules. I had originally designed the schedules in Excel (pre learning python) and I could easily transfer the data to the designated areas on the schedule. Is there a way to design a template in python and be able to copy the data to it, on the click of a button in either Tkinter or Pyqt5?

    • @Codemycom
      @Codemycom  2 года назад +1

      Drawbacks? You can't really compare apples to oranges. Sure you can connect any python script in any framework to excel. I have a course on openpyxl.

    • @Paul-ly1pw
      @Paul-ly1pw 2 года назад

      @@Codemycom that’s brilliant thank you. For someone starting out in Python like me, it’s difficult to fully understand what each of these do, where they can overlap with each other or where some are more specific for a certain task. It’s a bit tricky trying to understand each one.
      Is there a central resource that details each module/program available and what it does?

    • @Codemycom
      @Codemycom  2 года назад +1

      @@Paul-ly1pw No.. you just have to learn them. Maybe you can read their wikipedia pages and get a general sense.

  • @akashdeepsengupta6684
    @akashdeepsengupta6684 Год назад

    what editor are you using? how do i do it?

    • @Codemycom
      @Codemycom  Год назад

      Sublime text and git bash terminal...you do it exactly like I do in the video.

  • @highwaysiq5135
    @highwaysiq5135 3 года назад

    Thank You

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Would you travel to Uzbekistan if you could?

  • @utkarshshukla1735
    @utkarshshukla1735 3 года назад

    THANKS

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    What is your level of programming? and what programming language expert are you? Can we have a meeting with you on Zoom? Every programmer needs experience anyway and do you want to share your experience with me?

    • @Codemycom
      @Codemycom  3 года назад

      I've been programming since I was seven years old. Sorry, I don't do zoom meetings.

  • @minhsonle4553
    @minhsonle4553 2 года назад

    yo Mr.White

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    I wanted to go to America to study and work in programming if I could

  • @ibreak_legs
    @ibreak_legs 3 года назад

    Can u do tkinter designer ? Too

    • @Codemycom
      @Codemycom  3 года назад +1

      No, there isn't such a thing

  • @alkingalking8577
    @alkingalking8577 3 года назад

    Oh Yahhh

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    How old are you?

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Can I have a personal chat with John Elder

    • @Codemycom
      @Codemycom  3 года назад

      You're chatting with me right now here

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Sorry if I took your time

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    John brother!! Make a video for winreg library in python please it was necessary for me to create GUI apps

    • @Codemycom
      @Codemycom  3 года назад

      Sorry, don't know that

  • @lauraskorczewski5813
    @lauraskorczewski5813 3 года назад

    First

  • @a4e69636b
    @a4e69636b Год назад

    PyQt5 Designer seems better than wxGlade. wxGlade requires using layouts. PyQt5 Designer does not.

    • @Codemycom
      @Codemycom  Год назад

      Never heard of wxGlade

    • @a4e69636b
      @a4e69636b Год назад

      @@Codemycom wxGlade is GUI designer program for the wxWidgets framework. It is not very good. Every time I go to use it I always discover a bug with it. What is worse is the developer for the program will not allow absolute positioning meaning you always have to use a layout manager - making things harder for the user.

    • @Codemycom
      @Codemycom  Год назад

      @@a4e69636b lol seems like garbage, why would you use it? lol

    • @a4e69636b
      @a4e69636b Год назад

      @@Codemycom LOL, great comment. It was my only choice when I used the wxWidgets framework.

    • @Codemycom
      @Codemycom  Год назад

      @@a4e69636b lol ah

  • @equsnarnd
    @equsnarnd Год назад +1

    That is a great improvement over what I've seen elsewhere but do you have to do it like that? Could you not simply write a function and put the call to the function in the button through the properties window? I'm coming from a Visual Basic/Visual Foxpro background and I find doing it that way much cleaner rather than routing around in the code. Perhaps your black background made it seem more like routing.

  • @lanelauhoff
    @lanelauhoff 3 года назад +4

    Looking forward to more Designer videos!

  • @arjunp9493
    @arjunp9493 3 года назад +1

    Is this Walter White ???😀😀

  • @segsfault
    @segsfault 3 года назад +2

    Awesome Video Brother, love from india :)

  • @samirphuyal4956
    @samirphuyal4956 2 года назад +1

    When you said smash the like button below at the end, I went to like the video but I forgot I already smashed the like button at the beginning.

  • @maulanayusuf5486
    @maulanayusuf5486 2 года назад

    I have an assignment from the company where I work to create a GUI software using pyqt5 for the purpose of simplifying data input. if i just use python pyqt5 library without changing the pyqt5 library. is it still free?

    • @Codemycom
      @Codemycom  2 года назад

      I'm not a lawyer...but probably.

  • @insidepossie
    @insidepossie 3 года назад

    What would cause an app designed in QT when it runs the app would just loose its' input form , button stylings etc when the app is minimized or idling? when the py script is examined, all the css stylings in there looks perfect, but the app just looses its soul so to speak after few seconds of running.

  • @felipebm13
    @felipebm13 3 года назад +1

    Good morning!
    Great video, but why don't you use the loadUi function instead of converting the UI file into a Python file?
    Thank you and keep up the good work.

    • @Codemycom
      @Codemycom  3 года назад

      I do later in the playlist.

  • @RyanDanielG
    @RyanDanielG 3 года назад +7

    Great job, great python tutorials, great lessons
    FEED that algorithm if you want more like this guys. Theres not any other ppl on youtube doing this so well

  • @AmberLois
    @AmberLois 2 года назад

    I have this error when I try to run the python file: "Import 'PyQt5' could not be resolved" what should I do?

    • @Codemycom
      @Codemycom  2 года назад

      You didn't install Pyqt5 correctly. Try it again

    • @sk.tawsif
      @sk.tawsif 2 года назад

      Try initiating a virtual environment on your project directory first and then install pyqt5 or any other library/module/framework you need

    • @Codemycom
      @Codemycom  2 года назад +1

      @@sk.tawsif That's the only way to do it correctly.

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    John brother Do you know how to add loading screen pyqt5 form?is there useful link for me about it!!!

    • @Codemycom
      @Codemycom  3 года назад

      I have no link to share on that

  • @aydnaydin9109
    @aydnaydin9109 9 месяцев назад

    May I use it with PyCharm?

    • @Codemycom
      @Codemycom  9 месяцев назад +1

      If you have to ask...then I'd suggest no.

    • @ChengbinHuang-4nb
      @ChengbinHuang-4nb 3 месяца назад

      It's ok.I am learning this course using pycharm under anaconda3 environment.But of course,it took quiet long time to get everything right.

  • @bexleymike
    @bexleymike 2 года назад

    After watching this, I'm wondering how to alter the code to show the textbox value on a label. There's no click event involved, but only updating a textbox. Is this possible?

    • @Codemycom
      @Codemycom  2 года назад +1

      Yeah, you could use the keyboard key press event. Off hand I don't remember what that is but you can do it

  • @tamaranubianunes9572
    @tamaranubianunes9572 2 года назад

    Hello! I'm trying to convert ui to py, but I'm getting the following error: pyuic5 command not found.
    I'm using windows.

    • @Codemycom
      @Codemycom  2 года назад +1

      You may not have added python to path when you installed it...you might have to reinstall python

  • @varunchauhan5971
    @varunchauhan5971 3 года назад

    My dude looks like Walter white.

    • @Codemycom
      @Codemycom  3 года назад

      Haha

    • @varunchauhan5971
      @varunchauhan5971 3 года назад

      @@Codemycom LMFAO from breaking bad. Idk if you know

    • @Codemycom
      @Codemycom  3 года назад

      @@varunchauhan5971 yeah you're probably the 9,000th person to mention it to me :-p

  • @latochannel
    @latochannel 3 года назад

    everytime i change on Qt design and then i have to change it to python file. but i want to change screen on qt design and change the code on bycharm at the same time how can i do that. i saw bython and bycharm are hard to use. every program i do, i need to send it to my friend but all thing with bython is only the code and it can't make a program like normal.

    • @Codemycom
      @Codemycom  3 года назад +1

      You can't do that.

    • @latochannel
      @latochannel 3 года назад

      @@Codemycom so that's the problem of bython and bycharm like i did :D

    • @Codemycom
      @Codemycom  3 года назад +1

      @@latochannel Its python and pycharm, not bython and bycharm, and I'm not sure what you're asking...

    • @latochannel
      @latochannel 3 года назад

      @@Codemycom forget that, i have a idea "you can translate main.ui to main.py in the tab 1 and tab 2 on pycharm, you can make code of python and connect to tab1 so that's easy to look the code of python. how do you think :D"

    • @Codemycom
      @Codemycom  3 года назад

      @@latochannel Sorry, I have no idea what you're talking about...but give it a try and see.

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Do you know country Uzbekistan? this question for John Elder

  • @nourahmed4654
    @nourahmed4654 3 года назад

    thank you for this video, but i would like to ask a question i need to add a video in Qt designer but i don`t know how! can you explain it please!

    • @Codemycom
      @Codemycom  3 года назад +1

      Might do a video on that

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Please John brother make many videos on Pyqt5

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    Please output videos on PyQt5 quickly and more

    • @Codemycom
      @Codemycom  3 года назад

      I do them once a week on Thursdays

  • @sachinsinghal13
    @sachinsinghal13 3 года назад

    Hey John,
    I am not able to install PyQt5Designer on my mac. This is the error:
    ERROR: Could not find a version that satisfies the requirement PyQt5Designer
    ERROR: No matching distribution found for PyQt5Designer
    pip freeze:
    Command==0.1.0
    PyQt5==5.15.3
    PyQt5-Qt==5.15.2
    PyQt5-sip==12.8.1
    PLease help me sir, I would really love to go through this video.

    • @Codemycom
      @Codemycom  3 года назад +1

      You may need QT first: www.qt.io/download-open-source (click the 'download the binaries' link towards the bottom of the screen). Then launch QT Creator..then open a new file and select qt designer form....it's complicated I may do a video on it.

    • @sachinsinghal13
      @sachinsinghal13 3 года назад

      @@Codemycom Thanks Joh, I'm working on it.

    • @AmberLois
      @AmberLois 2 года назад

      I have this error when I try to run it"'Import "PyQt5" could not be resolved." What should I do?

  • @CurrentElectrical
    @CurrentElectrical 3 года назад

    Is there anything different between 5 and 6 that is now out?

    • @Codemycom
      @Codemycom  3 года назад

      I haven't really looked at 6 yet....

  • @masker1128
    @masker1128 3 года назад

    SECOND

  • @samuel30002
    @samuel30002 2 года назад

    THANKS MAN YOU ARE REALLY THE BEST !!!

  • @stevehageman6785
    @stevehageman6785 2 года назад

    Nice tutorials, thanks for doing the work and sharing....

    • @Codemycom
      @Codemycom  2 года назад

      Glad you enjoyed it!

  • @alialavizadeh2775
    @alialavizadeh2775 3 года назад

    waiting for this to work designer of pyqt5 tnx

  • @hiwab41
    @hiwab41 3 года назад

    Nice

  • @Hydra_Kumo
    @Hydra_Kumo 3 года назад

    Thanks Your Really Help Full :D

    • @Codemycom
      @Codemycom  3 года назад +1

      Glad I could help!

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    I am 14 years old

  • @prasadsapkal1191
    @prasadsapkal1191 3 года назад

    Sir I'm working on mini project , but I want solution , to save data in treeview to database ...I'm working tkinter

    • @Codemycom
      @Codemycom  3 года назад +1

      Yes, that's possible.

    • @prasadsapkal1191
      @prasadsapkal1191 3 года назад

      Sir could u please provide the code for it

    • @Codemycom
      @Codemycom  3 года назад

      @@prasadsapkal1191 The link to the code is, as always, in the pinned comment.

  • @rahmatilloismoilov3323
    @rahmatilloismoilov3323 3 года назад

    I'm Uzbek

    • @Codemycom
      @Codemycom  3 года назад

      I know, you told me already several times

  • @jeromyshoup1728
    @jeromyshoup1728 2 года назад

    Thanks for all the help! Awesome stuff!

    • @Codemycom
      @Codemycom  2 года назад

      Thanks for watching!

  • @kasunnimsara2675
    @kasunnimsara2675 3 года назад

    I learned a lot of facts from your videos. Great job.😃❤🔥

  • @shehab976
    @shehab976 3 года назад

    Boom!🔥❤️❤️

  • @elitecoder9246
    @elitecoder9246 3 года назад

    Hu 😤😤😤

    • @Codemycom
      @Codemycom  3 года назад +2

      hi

    • @elitecoder9246
      @elitecoder9246 3 года назад

      @@Codemycom my slow network 😤😤😤😤😤😤😤

  • @HitAndMissLab
    @HitAndMissLab Год назад

    Excellent and very well organised video for a somebody who's just starting with Qt.