PyQt5 Tutorial - Setup and a Basic GUI Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 424

  • @pugo7925
    @pugo7925 5 ปีที่แล้ว +185

    It's really funny because recently I've registered to Skillshare to learn PyQt5 and now I find this tutorial which explain it much better and for free.
    Thank you.

    • @ori61511
      @ori61511 4 ปีที่แล้ว +7

      why did you search for a tutorial if you got one?

    • @arjix8738
      @arjix8738 4 ปีที่แล้ว +29

      @@ori61511 because he either:
      1) got it in his recommendations (he never said he searched for this video)
      2) the tutorial he already had was bad and he didnt understand it, so he searched for other tutorials

  • @kapildeshmukh7878
    @kapildeshmukh7878 5 ปีที่แล้ว +18

    Thanks for sharing. I'm developing NLP tools for my internship and I wanted to dabble into GUIs so that I can make neat little proof of concept programs.
    Please keep doing what you're doing.

    • @BiancaAguglia
      @BiancaAguglia 5 ปีที่แล้ว +1

      @Kapil I hope you'll post some videos about your work. It would be great to see projects like those. 😊

  • @TwenOalley
    @TwenOalley 3 ปีที่แล้ว +90

    they missed their chance to call the module QtPy

  • @islandcave8738
    @islandcave8738 4 ปีที่แล้ว +275

    4:27 That's not what passing `sys.argv` is doing. It's passing the command line arguments to the Qt Application. `sys.argv` are the command line arguments in python. sys.argv[0] is the name of your program, sys.argv[1] is the first command line argument, sys.argv[2] is the second, etc. You can use those in QApplication however you want, or not at all.
    In Qt C++, you pass in (int argc, char** argv), which is the same thing, argv being the command line arguments (char**, because it is a pointer to a pointer of chars), (argv for argument values), and argc being how many arguments (argc for argument count), these come from the optional C/C++ main function paramaters (int argc, char** argv). (char** argv can also be written as char* argv[] or in other words, a pointer to char arrays, either way, they are the same thing in C/C++).
    In Qt Java, you pass in args from main(String args[]) which are the command line arguments in java (an array of strings).
    I suspect it's the same concept in Qt for all languages that have Qt.

  • @chaddhinds5105
    @chaddhinds5105 5 ปีที่แล้ว +2

    When it comes to actually teaching for understanding your videos are the best ive come across its one thing to just code along but to actually understand it is a different matter.

  • @the-name-is-max
    @the-name-is-max 4 ปีที่แล้ว +28

    I'm just starting to learn PyQt5 and this course looks promising! Nice job!

  • @imacoder3160
    @imacoder3160 2 ปีที่แล้ว +3

    For those like me who could not understand how to build the program, do this: open command line in the folder where you place your .py file and run python .py build

  • @soupnoodles
    @soupnoodles 3 ปีที่แล้ว +9

    I love your more faced paced teaching style, its much easier to understand and learning is much faster this way. Most python tutorials either treat you like an absolute beginner, or treat you like you know everything, this is a good balance, and i absolutely love this channel!!!
    +1 Subscriber

    • @Foxtro
      @Foxtro 3 ปีที่แล้ว

      bro i swear I see you on every python video in the world 💀

    • @hayek2912
      @hayek2912 2 ปีที่แล้ว

      @@Foxtro lmao😂

  • @albin6382
    @albin6382 4 ปีที่แล้ว +10

    @00:04:36 sys.argv is a list of command parameters to the program. So for example if you type python program.py hello world, your sys.argv will be a list like [ "path/to/python" , "program.py" , "hello" , "world" ]

  • @Clement-xy9iv
    @Clement-xy9iv 5 ปีที่แล้ว +6

    Two words : THANK YOU !
    Looks much better than Tkinter.

    • @LetmeCook-qk7dk
      @LetmeCook-qk7dk 9 หลายเดือนก่อน

      Oh god yeah Tk is... Ugly

  • @wilbertraymundrayos4175
    @wilbertraymundrayos4175 5 ปีที่แล้ว +14

    MORE PLEASEEEEE!!! I love this tutorial

  • @stanknight9159
    @stanknight9159 2 ปีที่แล้ว +1

    God Bless you!
    Thank you for introducing me to QT Designer.
    You saved my sanity!

  • @rebelScience
    @rebelScience 4 ปีที่แล้ว +7

    Exactly what I needed for my new project in Bioinformatics! Amazing stuff dude! Will definitely donate a bit later when I have some extra money. Will also suggest your videos on my new channel.

  • @profiteroldr
    @profiteroldr 2 ปีที่แล้ว

    Hey Dud! Firstly, I learn English and design with python. I researched on TH-cam and I found you. You are very very good teaching Python. Well, I develop my English because of you as well as I learn new Python skills. Thank you bro! I want to meet you and talk about python and programing.

  • @barunbasnet
    @barunbasnet 5 ปีที่แล้ว +3

    Really appreciate your efforts for the content and the quality of the video. Huge thumps up and subscribed.
    Keep up the good work.

    • @TechWithTim
      @TechWithTim  5 ปีที่แล้ว +2

      Really appreciate that!

  • @wernerw.1328
    @wernerw.1328 3 ปีที่แล้ว +19

    As a German I looked at a German Tutorial of course first - but I didn´t work. So I came here and hallelujah. - Captain I will sail with you all the Seven Seas.

    • @miguelangelvillafuerte3328
      @miguelangelvillafuerte3328 3 ปีที่แล้ว

      Heyyy, wait for me... Do you have space for another sailor !?

    • @russeuk0053
      @russeuk0053 3 ปีที่แล้ว

      ja ich versteh leider englisch nicht soo gut...

  • @Furiac.
    @Furiac. ปีที่แล้ว

    coming from java this is so much easier thank the lord. been learning java in university, but now im making a personal project so i am trying to learn python

  • @richardcsanaki5531
    @richardcsanaki5531 4 ปีที่แล้ว +5

    Thank you for these tutorials, they are amazing! :D

  • @davidgrove1600
    @davidgrove1600 5 ปีที่แล้ว +5

    Subscribed just for this series, and you are my only subscription with the bell on! Please do a few dozen on this subject. This is exactly where I want to be (especially if I could get designer working on my chromebook).

    • @roietbd2992
      @roietbd2992 4 ปีที่แล้ว +2

      I have also subscribed because of this series. Everything is super easy when Tim is doing a video about it, I don't know why.

  • @justinstar9710
    @justinstar9710 5 ปีที่แล้ว +2

    I think the sys.argv is to make the program to take CLI arguments.
    QApplication() requires a list anyway, so just empty list like QApplication([]) works too.

  • @ambientsoda106
    @ambientsoda106 ปีที่แล้ว +1

    Hi can you help me - I used pip to install PyGT5 and when importing my code says it cant find the module, any idea why?

  • @delbandtaha5539
    @delbandtaha5539 5 ปีที่แล้ว +19

    Great job as always Tim!
    In the future, it would be great to show how the window can save the entries to a database or something. Maybe I'm getting ahead of myself though, LOL.

  • @fadop3156
    @fadop3156 5 ปีที่แล้ว +6

    @TechWithTim - 4:22 - = sys.argv are the arguments given while starting the program in commandline. For example:
    "python yourfile.py argument1 arg2 ..."
    So thats why if you print out sys.argv it is mostly a list of nothing or just the filename... Sry for my bad english

  • @elprquex
    @elprquex 5 ปีที่แล้ว +37

    First thank you for your time and effort , second can you do more video about GUI for making program interact with internet.Thank you.

    • @anmolmohanty4806
      @anmolmohanty4806 5 ปีที่แล้ว

      you can always write to excel with xlrd

  • @Wallee580
    @Wallee580 2 ปีที่แล้ว

    I've been pushing off learning PyQt5 for a LONG time but it actually seems easy xD

  • @arpitagec9
    @arpitagec9 5 ปีที่แล้ว +24

    Great! Very nice video. ☺️
    If you would cover database connectivity with the implementation of Pyqt5, it would be great. Hope to see interesting stuffs.!

    • @NazzarenoGiannelliCG
      @NazzarenoGiannelliCG 5 ปีที่แล้ว

      Yes please! this one :D

    • @Sameer_Waje
      @Sameer_Waje 4 ปีที่แล้ว

      Yes please cover the database connectivity using C tree Ace.

  • @pfahey2
    @pfahey2 3 ปีที่แล้ว

    Nice Introduction, Brisk and functional. Looking forward to more, thanks

  • @duongng8069
    @duongng8069 4 ปีที่แล้ว +1

    Thank you a lot. I am trying to enable VTK in PyQt, so it will be so great that you make a video to show that.

  • @abd_el_ouahab3824
    @abd_el_ouahab3824 4 หลายเดือนก่อน

    what a nice intro. I liked it more than Tkinter

  • @MiskoKatua
    @MiskoKatua 4 ปีที่แล้ว +1

    Good beginners tut. Thnx!

  • @forTodaysAdventure
    @forTodaysAdventure 3 ปีที่แล้ว +1

    could I use pyqt5 to create an app using python that takes advantage of the pyautogui library? (for windows)

  • @mbonuchinedu2420
    @mbonuchinedu2420 4 ปีที่แล้ว +1

    Thanks tim, your videos are really helpful.
    Thanks

  • @shafsaz7398
    @shafsaz7398 หลายเดือนก่อน +1

    Just sharing. If you're new to Sublime Text and don't see any color text while writing the code, just go to View>Syntax and select the correct file type from the list. If the correct syntax is not listed, you may need to install a plugin that supports the specific language you're working with.

  • @SkyFly19853
    @SkyFly19853 5 ปีที่แล้ว +23

    Another useful tutorial...
    I really thank you because I also plan to make videos about Python and Ruby.
    💯💯💯
    Are you going to make videos about other modules (2d, panda 3d)?

    • @boinbo8090
      @boinbo8090 4 ปีที่แล้ว +1

      @@abdelmoula2 are you self promoting 10 months after he posted this comment :/

  • @OkayNoway
    @OkayNoway 2 ปีที่แล้ว

    Thanks for this tutorial, Tim!

  • @antibayou1
    @antibayou1 4 ปีที่แล้ว +11

    why does "from PyQt5 import QtWidgets" not work for me

    • @graysongarrett6739
      @graysongarrett6739 4 ปีที่แล้ว +3

      You're not alone I need a fix for this
      "
      from PyQt5 import QtWidgets
      ImportError: DLL load failed: The specified module could not be found.
      "

    • @bullethead950
      @bullethead950 2 ปีที่แล้ว +1

      @@graysongarrett6739 it's most likely an enviroment variable issue

  • @rishilkadakia4779
    @rishilkadakia4779 4 ปีที่แล้ว +3

    4:27 That's not what passing sys.argv does. It passes the command line arguments to the QT application.
    5:55 You said if you set the x position and y position to 1920 and 1080, it will show up in the right-hand corner of your screen. This is not entirely true. Yes, if you have a 1080p monitor, it will, because FHD is 1920 x 1080, but what if you have a 720p monitor, or a 1440p monitor, or a 4k monitor?

  • @davidguimaraes3663
    @davidguimaraes3663 4 ปีที่แล้ว

    That was great intro into PyQt5, thanks!

  • @lonelighters
    @lonelighters 3 ปีที่แล้ว +2

    I'm having issues with installing the pyqt5, I can import pyqt5 by itsef, but if I try to import qtwidgets it says that DLL load failed: The specified procedure could not be found. I'm using anaconda, was wondering if anyone was having similar issues or managed to fix theirs.
    I've already tried adding the script folder to the path and copying over python3 and 36.dll to the folder.

    • @startjourney8631
      @startjourney8631 3 ปีที่แล้ว

      Dude I am facing the same problem as you, did yo find any solution yet?

  • @mutiara4345
    @mutiara4345 2 หลายเดือนก่อน

    nice tutorialh bro. Keep it UP!!

  • @ayoubmourid7720
    @ayoubmourid7720 4 ปีที่แล้ว

    Big Thanks From Morocco Bro ! for this useful tutorial. :)

    • @abdelmoula2
      @abdelmoula2 4 ปีที่แล้ว

      Hello, you can also check this free tutorial on PyQt5 and how to Build Real Software
      skl.sh/3cGLbfs

  • @MrSensei1231
    @MrSensei1231 4 ปีที่แล้ว +7

    If anyone has any problems I couldn't get this to work at all with Python 3.9, had to roll back to 3.8.6.
    It kept giving me all sorts of weird errors, saying python wasn't installed, then python wouldn't initialize QT plugins. Rolling back to 3.8.6 fixed everything. Hope that helps someone. It literally took me about 2 hours of agony to work this out!

  • @harshvalecha
    @harshvalecha 5 ปีที่แล้ว +2

    That's a great stuff to learn!!! Nice work👍

  • @timwieclawski9482
    @timwieclawski9482 4 ปีที่แล้ว +1

    When I run this code at 8:24, no window pops up. There are no error codes, but there is also no window. It's like nothing happens.

    • @timwieclawski9482
      @timwieclawski9482 4 ปีที่แล้ว +1

      If anyone else is having this problem. I had to select 'Build With -> Python" rather than just 'Build'

    • @userprecisealt4136
      @userprecisealt4136 4 ปีที่แล้ว +2

      @@timwieclawski9482 Hey when I select 'Build with' it just takes me to another page saying Repl Closed

    • @userprecisealt4136
      @userprecisealt4136 4 ปีที่แล้ว +1

      Found the solution, just click save on your file whenever you write new code. Worked for me.

    • @shafsaz7398
      @shafsaz7398 หลายเดือนก่อน

      @@timwieclawski9482 Thanks Tim. Problem solved!

  • @rathnakartr1427
    @rathnakartr1427 3 ปีที่แล้ว

    U are awesome bro... Very detailed explaination

  • @codespotlight9146
    @codespotlight9146 5 ปีที่แล้ว +2

    Inspired by your channel I am making my own django series!

  • @alecrepp
    @alecrepp 4 ปีที่แล้ว +1

    This video is so informative and well made keep it up

  • @MdMubin-bp7wp
    @MdMubin-bp7wp 4 ปีที่แล้ว

    It's a nice video. Thanks a lot Tim!

  • @kimberleymataure5356
    @kimberleymataure5356 3 ปีที่แล้ว

    This is saving my degree x thank you so much

  • @mrquestionmark6202
    @mrquestionmark6202 4 ปีที่แล้ว

    You are just Amazing Bro, Keep it up!!!

    • @abdelmoula2
      @abdelmoula2 4 ปีที่แล้ว

      Hello, you can also check this free tutorial on PyQt5 and how to Build Real Software
      skl.sh/3cGLbfs

  • @lorenzoguetta6603
    @lorenzoguetta6603 4 ปีที่แล้ว

    Thanks Tim!! I love you

  • @里明方
    @里明方 5 หลายเดือนก่อน

    nice intro video for PyQt5

  • @juanangelnavabarrientos6230
    @juanangelnavabarrientos6230 ปีที่แล้ว

    This is amazing, thanks a lot!

  • @cemrek.
    @cemrek. 4 ปีที่แล้ว

    YOU ARE A LIFE SAVER!

  • @argishtib
    @argishtib 3 ปีที่แล้ว +3

    There is one important thing that should have been discussed: How to go back after creating .py file to .ui file. This is key if you want to make continuous design changes in .ui. As far as I have searched there is no easy way to do this. Sucks because this is a really great simple GUI tool.

    • @wasa01234567899
      @wasa01234567899 ปีที่แล้ว

      just save a copy of the .ui when you need some changes

    • @phamhuutri1996
      @phamhuutri1996 ปีที่แล้ว

      @@wasa01234567899can you explain more on this? Im interested as I now have a task to modify a GUI designed by pyqt5 and I am learning how to do it

  • @SafikMaster
    @SafikMaster 5 ปีที่แล้ว +5

    ERROR: Could not find a version that satisfies the requirement pyqt5-tools (from versions: none)
    ERROR: No matching distribution found for pyqt5-tools
    How does one get around that?

    • @Heartless_MC
      @Heartless_MC 5 ปีที่แล้ว +1

      I have same issue and I have yet to find a solution.

    • @isakpallas2546
      @isakpallas2546 5 ปีที่แล้ว

      Have you guys found the problem?

    • @helloworld-vq9gq
      @helloworld-vq9gq 4 ปีที่แล้ว

      Try pip3 install pyqt5

  • @joevinso9907
    @joevinso9907 3 ปีที่แล้ว +2

    Sir Tim, just a question only and hope you answer, how to change the logo of your application on the top right corner using the Pyqt5?

  • @gilsonpontespereira
    @gilsonpontespereira 5 ปีที่แล้ว +20

    More zoom in code, please! :)

  • @edwardwilliamsams6589
    @edwardwilliamsams6589 5 ปีที่แล้ว

    One word: Awesome

  • @MouseKeyboardPlayer
    @MouseKeyboardPlayer 4 ปีที่แล้ว

    Just a heads up for Mac users (like myself). Pyqt5-tools is only available for Windows, but you can download PySide2, it includes almost everything in pyqt5-tools; pyqt5, pyuic5 and the qdesigner. Just pip3 install PySide2.

    • @zName1
      @zName1 3 ปีที่แล้ว

      Thank you.

  • @megatomek2000
    @megatomek2000 4 ปีที่แล้ว

    You saved my college assignment 😜😜😜😜

  • @PhG1961
    @PhG1961 10 หลายเดือนก่อน

    Awesome video. Btw, about the position of the window... why not retrieve the screen dimensions and center the window within the screen?

  • @hungdoan9148
    @hungdoan9148 4 ปีที่แล้ว

    Awesome Video! Thanks!

  • @ecernas1
    @ecernas1 4 ปีที่แล้ว +2

    I get this error after running the following line:
    from PyQt5 import QtWidgets
    ImportError: DLL load failed: The specified module could not be found.

    • @ibrahimheroglu
      @ibrahimheroglu 4 ปีที่แล้ว +1

      Did you fix it bro?

    • @ecernas1
      @ecernas1 4 ปีที่แล้ว

      @@ibrahimheroglu Hi, thanks for this message. I just went back and ran Tim's code from this video. It works now! I had some other issues with my Windows 10 operating system so I completely uninstalled Python and Sublime from my pc. I reinstalled python and pip and wheel and now it works. I think I had some issues with my Python configuration so I did a clean install.

    • @ibrahimheroglu
      @ibrahimheroglu 4 ปีที่แล้ว

      @@ecernas1 I did the same. I reinstalled Python and Sublime. Now it runs Python but when i run the code in this video, i just got black screen. No error message or something. It just running and when i break the run, it prints "Cancelled".

    • @atlantic_love
      @atlantic_love 4 ปีที่แล้ว

      @@ecernas1 Your other issues with Windows 10 had very likely zilch to do with the Python problems.

    • @ecernas1
      @ecernas1 4 ปีที่แล้ว

      @@atlantic_love Yes. That is correct.

  • @amilcar_fernando
    @amilcar_fernando 3 ปีที่แล้ว

    very top, nice introduction

  • @redabekka5940
    @redabekka5940 4 ปีที่แล้ว

    hi , please i want to add video in tabwidget in designer using pyqt5 but i didn't find a widget for adding videos any help

  • @HKey_Root
    @HKey_Root 3 ปีที่แล้ว

    I'm really new to this and I can't see how you are running this code so I can't get beyond typing the text in. Help please.

  • @peterhildenhagen5298
    @peterhildenhagen5298 3 ปีที่แล้ว

    Thank you very much, good explanations

  • @ayushiyadav3991
    @ayushiyadav3991 3 ปีที่แล้ว

    I have integrated the front end with a backend tool script. Now on the click of a button, say "Restart tool" I want the session to be the default one as if I have re ran the code to get the home GUI. How do I do the same?

  • @MrD215
    @MrD215 4 ปีที่แล้ว +1

    QT and PyQt5 are from two different companies. The editor for QT is called QT Creator. The Editor for PyQt5 is called QT Designer. I was also confuse about that.

  • @TheBretlinne
    @TheBretlinne 5 ปีที่แล้ว +2

    I've been trying to work with PyQt in a Linux environment and can't install the PyQt-tools.
    According to SO, stackoverflow.com/questions/51808229/pyuic5-modulenotfounderror-no-module-named-pyqt5-sip,
    "pyqt5-tools no longer exists as of June 2019."
    Perhaps they mean it doesn't exist for Linux? I successfully got it working in a Windows environment, but the Linux setup is eluding me. Does anyone have suggestions?
    When I try to run "pip install pyqt5-tools", I get this:
    "Could not find a version that satisfies the requirement pyqt5-tools (from versions: )
    No matching distribution found for pyqt5-tools"

    • @abdelmoula2
      @abdelmoula2 4 ปีที่แล้ว

      Hello, you can also check this free tutorial on PyQt5 and how to Build Real Software
      skl.sh/3cGLbfs

  • @JohnSamuelSam
    @JohnSamuelSam 3 ปีที่แล้ว +2

    Hi Tim, thank you very much for taking time to teach us pyqt. I have installed pyqt5 and its tools, but when I searched for the Qt designer, I'm not able to find the application. I've got only 3 .py files and 4 folders. I then installed pyqt6 and its tools, but the result are same. Please help

    • @zName1
      @zName1 3 ปีที่แล้ว +1

      Did you solve this?

  • @churchofclaus
    @churchofclaus 3 ปีที่แล้ว

    I'm using PyCharm, and my "from pyQt5 import QtWidgets" statement is greyed out as if it's not installed. What gives?
    Update: I had to install python-qt5

  • @samarmohan9891
    @samarmohan9891 4 ปีที่แล้ว +2

    I was using Python 3.9 and pyqt5-tools isn't available...

    • @kamill5138
      @kamill5138 4 ปีที่แล้ว

      Check your version again, make sure you aren't using a venv with a different version -> pip install pyqt5-tools
      try updating pip as well

  • @NewsSphereNetwork
    @NewsSphereNetwork 4 ปีที่แล้ว

    Thanks man that helps me a lot

  • @JAWSH8
    @JAWSH8 2 ปีที่แล้ว +2

    Hi there Tim!
    I've used your channel a LOT so far and I've followed your PyQt tutorials to a point where I want to actually deploy my GUI app across platforms. How do I do this?! *anguish*
    I was curious if you're ever going to make a pyqtdeploy tutorial to ios. This is something that is not available on TH-cam. I've searched and no one has really done a definitive guide to pyqtdeploy. You've mentioned in your PyQt tutorials that it is package able to other operating systems. I know how to do this with pyinstaller, but I'm very confused about how to use the pyqt tool, pyqtdeploy, to deploy the app to native binary, and have a working ios app.
    Thank you for your time and dedication to education.

  • @mariustoft305
    @mariustoft305 4 ปีที่แล้ว +2

    Help :)
    I try to run the exact same code as you in sublime, but no window or anything shows up - do you have any idea why? Otherwise awesome tutorials!!

    • @Red_madmax
      @Red_madmax 4 ปีที่แล้ว

      did you find out why

    • @mariustoft305
      @mariustoft305 4 ปีที่แล้ว

      @@Red_madmax no unfortunately not...

    • @shafsaz7398
      @shafsaz7398 หลายเดือนก่อน

      same here

    • @shafsaz7398
      @shafsaz7398 หลายเดือนก่อน

      Found the solution.
      If anyone else is having this problem. I had to select 'Build With -> Python" rather than just 'Build'

  • @johnmurray6405
    @johnmurray6405 3 ปีที่แล้ว

    got tbis error when I ran window:
    AttributeError: 'App' object has no attribute 'initUI'
    Here's the code:
    import sys
    from PyQt5 import QtWidgets
    from PyQt5.QtWidgets import QApplication, QMainWindow
    def window():
    win = QApplication(sys.argv)
    win = QMainWindow()
    win.setGeometry(500,500,500,600)
    win.setWindowTitle("Main Window")
    win.show()
    sys.exit(app.exec_())
    window()
    did I miss something?

  • @313kakashi
    @313kakashi 5 ปีที่แล้ว +1

    i did install everything successfully. what do i do? I'm getting this:
    ImportError: cannot import name 'Qtwidgets' from 'PyQt5' (C:\Anaconda3\lib\site-packages\PyQt5\__init__.py)

    • @carlogrisafi5512
      @carlogrisafi5512 5 ปีที่แล้ว +3

      Not sure how it works on Windows but on Linux I had to install using pip3 instead of pip and also make sure you install as root.

    • @adrianivanov6626
      @adrianivanov6626 5 ปีที่แล้ว

      @@carlogrisafi5512 Thank you for that. I don't know why it worked though, since I had a different error than the one originally posted. Your solution worked like a charm :)

  • @КириллТимофеев-щ4ж
    @КириллТимофеев-щ4ж 4 ปีที่แล้ว

    Hey! What should I do with it&
    qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

  • @kcvinu
    @kcvinu 4 ปีที่แล้ว +3

    Explained very well. Could you please make a video about how to convert this PyQt application into an exe file ?

    • @dergerat2199
      @dergerat2199 4 ปีที่แล้ว +2

      There is a programm called pyinstaller which converts python programms with all libraries needed into an .exe file

    • @kcvinu
      @kcvinu 4 ปีที่แล้ว +1

      @@dergerat2199 Thank you. Let me check it. :)

    • @kcvinu
      @kcvinu 4 ปีที่แล้ว +1

      @Der Gerät, I've installed it and create my first Qt application. But it seem's there is a problem in one of the dlls. It says that VCRUNTIME140.dll is either not designed to run on Windows or it contains an error.
      But actually it was upx problem. When i run with --noupx, everything is fine.

  • @sectorx20
    @sectorx20 5 ปีที่แล้ว +3

    Thank you a lot! So far I trying decide which language should I improve my skills with Qt and almost lost time with C++ because I pretty connect with that ui stuff.

    • @tetra.
      @tetra. 3 ปีที่แล้ว

      how's it going now?

  • @bluesdog88
    @bluesdog88 4 ปีที่แล้ว

    If anyone gets an error, try this:
    Go to => Python38>lib>site-packages>PyQt5>Qt>plugins
    In plugins copy platform folder
    After that go to Python38>lib>site-packages>PyQt5_tools>Qt>bin
    paste folder here . Do copy and replace.

  • @ramshankeryadav_0_0
    @ramshankeryadav_0_0 3 ปีที่แล้ว

    How we can print the whole QFrame and component in it , to A4 paper ?
    Is it possible ?

  • @hoangminhle167
    @hoangminhle167 5 ปีที่แล้ว

    Thank you, what a useful video.

  • @KenekeBiggs
    @KenekeBiggs 2 ปีที่แล้ว

    Thank you. Can PyQt5 be installed on Chromebook (with Linux enabled)? I tried to download PyQt5 and it says “could not find a version that satisfies the requirement PyQt5-Qt5>=5.15.2(from pyqt5)(from versions:) no matching distribution found for PyQt5-Qt5>=5.15.2 (from pyqt5)”
    I did was able to install Qt 5 Designer:
    Sudo apt-get install qttools5-dev-tools
    Sudo apt-get install qttools5-dev

  • @mohammedwais1467
    @mohammedwais1467 3 ปีที่แล้ว +1

    Hi! for multiple version of Pythons, it is better to use "python -m pip install PyQt5" instead of "pip install pyqt5"

  • @mkk1362
    @mkk1362 4 ปีที่แล้ว

    I tried to execute this code but it says. error. No module named 'PyQt5'. How to fixed?

  • @eatonasher3398
    @eatonasher3398 3 ปีที่แล้ว

    I need a link to that video about how to fix pip please! I can't find your video

  • @vigneshs2886
    @vigneshs2886 5 ปีที่แล้ว +1

    pyqt5-tools is no longer working in python3.7. The Github project for pyqt5-tools is full of that issue. I tried everything to get pyqt5-tools installed on python3.7 nothing worked. Trying with python3.6 using pipenv EDIT: that too didnt work

  • @ak47-hz4fq4np3z
    @ak47-hz4fq4np3z 6 หลายเดือนก่อน

    What sys.argv does is only pass the file arguments into QApplication, it doesn't contain OS info.

  • @graysongarrett6739
    @graysongarrett6739 4 ปีที่แล้ว +1

    Has anyone else fixed this error? I don't think I can move forward with Designing any PyQt applications until this gets resolved.
    Thank you in advance.
    "
    from PyQt5 import QtWidgets
    ImportError: DLL load failed: The specified module could not be found.
    "

    • @graysongarrett6739
      @graysongarrett6739 4 ปีที่แล้ว

      Not sure if this helps but here is the code and the pip modules I have installed
      Code:
      "
      from PyQt5 import QtWidgets
      from PyQt5.QtWidgets import QApplication, QMainWindow
      import sys
      def window():
      app = QApplication(sys.argv)
      win = QMainWindow()
      win.setGeometry(200, 200, 300, 300) #zpo, ypos, width, height
      win.setWindowTitle("Grayson's PyQt5 Application")
      win.show()
      sys.exit(app.exec())
      window()
      "
      Modules:
      "
      Package Version
      ---------------- ------------
      beautifulsoup4 4.9.3
      bs4 0.0.1
      certifi 2020.12.5
      chardet 3.0.4
      click 7.1.2
      idna 2.10
      lxml 4.6.2
      Pillow 8.0.1
      pip 20.3.1
      pynput 1.7.1
      PyQt5 5.15.1
      pyqt5-plugins 5.15.1.2.0.1
      PyQt5-sip 12.8.1
      pyqt5-tools 5.15.1.3
      python-dotenv 0.15.0
      qt5-applications 5.15.1.2.1
      qt5-tools 5.15.1.1.0.1
      requests 2.25.0
      sip 4.19.8
      six 1.15.0
      soupsieve 2.0.1
      threaded 4.1.0
      ttkthemes 3.2.0
      urllib3 1.26.2
      "

  • @andgat3512
    @andgat3512 5 ปีที่แล้ว

    Wonderful video! Thank you very very much!

  • @HarshvardhanPardeshi-iy6qz
    @HarshvardhanPardeshi-iy6qz 7 หลายเดือนก่อน +1

    Unable to install pyqt and pyqt-tools in python 3.12.3

  • @mastershooter64
    @mastershooter64 4 ปีที่แล้ว +2

    wow this is much easier and better than tkinter, I wonder what tkinter has that pyQt5 doesn't.

    • @AthyskTFM
      @AthyskTFM 4 ปีที่แล้ว

      Tkinter is not good for complex programs

  • @brpawankumariyengar4227
    @brpawankumariyengar4227 3 ปีที่แล้ว

    Great video …thanks

  • @brennancurrier806
    @brennancurrier806 3 ปีที่แล้ว

    I cant get Pythonista tools to install or I think Pyqt5 itself, comes up with a bunch of red text, any tips I’m using the latest python binaries 3.10

  • @firstnamelastname4685
    @firstnamelastname4685 4 ปีที่แล้ว

    in the code, label object is not bind to the window, is it true that the code automatically bind this stuff?

  • @parisanaderi8913
    @parisanaderi8913 4 ปีที่แล้ว

    great and so useful. tnx a lot

  • @faizkk7365
    @faizkk7365 5 ปีที่แล้ว

    Sir, can you please help me, i followed all your instructions. But it doesn't opening the window. sublime says building but after that nothing, even no error message too