Build a Calculator With PyQT5 Designer - PyQt5 GUI Thursdays #8

  Рет қаралды 57,764

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 76
@Codemycom
@Codemycom 3 жыл бұрын
▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My KZbin 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
@ehtesham.ali2006
@ehtesham.ali2006 3 жыл бұрын
I was just looking at the documentation for PYQT5 when I came across your video tutorials! And I can confidently say you are one of the BEST instructors I've seen on YT for python and GUI's. Keep up the good work, and greetings from Canada!
@Codemycom
@Codemycom 3 жыл бұрын
Wow thanks, I appreciate that!
@Lucasbc
@Lucasbc 3 жыл бұрын
Thank god you are making videos about PyQT5 I was using just right now! Your videos are awesome thx!
@Codemycom
@Codemycom 3 жыл бұрын
Glad you like them!
@isuruhettiarachchi4197
@isuruhettiarachchi4197 3 жыл бұрын
Your code is clear and very easy to understand
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@freewilly1056
@freewilly1056 2 жыл бұрын
I think it would be fair to put a remark, that it's not the best way to code anything more complex than such a dummy calculator, to let people know about patterns like MVC or MVVM which let decouple the GUI part (view) from the logic (model), so that if you want to remove a button or even implement simplified UI for the mobile device version, you don't need to reconstruct the logic down there (and vice versa). And also would be good to mention layouts rather than manually aligning pixels (imagine you decide to resize the main window by 10% just after you've precisely set positions to all the buttons). It's nice intro to how QT designer works, but otherwise this is the way GUI apps were written 20+ years ago ;)
@kevinkurani93
@kevinkurani93 5 ай бұрын
How can I learn about MVC and MVVM?
@andrefbillette2774
@andrefbillette2774 3 жыл бұрын
Great series! Keep up the good work and greetings from Montreal!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@sariii100
@sariii100 8 ай бұрын
thank you so much! you've helped me with my college homework:D
@Codemycom
@Codemycom 8 ай бұрын
Happy to hear it!
@XChat1
@XChat1 4 ай бұрын
very nice and simple explanation THANKS TEACHER :D
@Codemycom
@Codemycom 4 ай бұрын
Welcome!
@HugoCervantes-HARO
@HugoCervantes-HARO 3 жыл бұрын
Great tutorial! Thanks John.
@Codemycom
@Codemycom 3 жыл бұрын
Very Welcome
@asiffazal8571
@asiffazal8571 2 жыл бұрын
Just one comment is that you could double click the text to edit it on the pushButton. Thanks for the amazing tutorial videos.
@deaddrunkgamer7399
@deaddrunkgamer7399 7 ай бұрын
on the if "0" shouldnt that be in the if statement to prevent unneccesary nesting? as if "0" the output label == pressed? So im curious if you're doing it because of visibility or not as its more or less same amount of code.
@krish3357
@krish3357 3 жыл бұрын
Thank you for this tutorial. I am now using the designer to build better GUIs. Tkinter was a bit frustrating for me.
@Codemycom
@Codemycom 3 жыл бұрын
Glad it helped!
@omegothic
@omegothic 2 жыл бұрын
thank you very much!
@Codemycom
@Codemycom 2 жыл бұрын
Glad to hear it!
@umeshpurohit5252
@umeshpurohit5252 3 жыл бұрын
Great Sir. Thank you
@Codemycom
@Codemycom 3 жыл бұрын
Welcome!
@luxmanmadapatha7976
@luxmanmadapatha7976 3 жыл бұрын
Hi, many thanks for the excellent hands-on tutorial! Btw is there a code snippet of keeping the QPT5 Window always infocus or bring it back infocus automatically in the Windows OS? [I'm making an app with PyQT5 and need this feature]
@learnwithnawf246
@learnwithnawf246 3 жыл бұрын
Videos are so early nowadays...👏👏
@Codemycom
@Codemycom 3 жыл бұрын
yep
@Radian327
@Radian327 2 жыл бұрын
Why did you modify ANY code in the Calc.py file? Any subsequent changes in the .UI file in designer will blow away all your code changes? I "thought" the process was to create your form in designer. Use the .UI file to create the .py file of class data. Then import that into say your "main.py" file where you then create a class and then all your "custom" code goes into your main? Or... Is there a way using the Designer, to use its "Signal/Slot Editor" or "Action Editor" to establish your button click code so if you come back into he designer later to update the form say to add a forgotten button, you can then regen the .py file from the .ui file without losing all anything?
@Codemycom
@Codemycom 2 жыл бұрын
Because this is an ongoing series that teaches new things.... lol chill out and keep watching...
@hiwab4140
@hiwab4140 3 жыл бұрын
Thx for the video!
@radiar8484
@radiar8484 2 жыл бұрын
Hi I have a problem with QCalendarWidget I am creating a To-Do List with Persian Calendar(Jalali) but I can't change Change The Calendar to Jalali I Change the language and country but I can't figure out how to change the calendar itself!!
@Eddyyc
@Eddyyc 3 жыл бұрын
Great videos, question, how do you manage changes? if you later added a new feature to your calculator but also altered the .py file a lot already, is there a way to properly managed this changes?
@Codemycom
@Codemycom 3 жыл бұрын
Yeah I'll need to do a video on this one of these days
@hangphamthi7382
@hangphamthi7382 Жыл бұрын
Thank you so muchhhhh
@Codemycom
@Codemycom Жыл бұрын
Welcome
@patrickscheich7532
@patrickscheich7532 3 жыл бұрын
Can you make a video how to print documents/pdfs with PyQt's QPrinter? Would be very cool and very useful. Thanks a lot before!
@Codemycom
@Codemycom 3 жыл бұрын
Might look into that :-)
@behdadmoradi
@behdadmoradi 2 жыл бұрын
Hello John, thanks for the tutorial videos, I have a problem here when I run my code the vs code gives me this error: " Ui_MainWindow.press_it() missing 1 required positional argument: 'pressed' "
@Codemycom
@Codemycom 2 жыл бұрын
You forgot to pass an argument to the function in the button code. 13:09
@behdadmoradi
@behdadmoradi 2 жыл бұрын
@@Codemycom Yeah :), I should have passed each button names to the function so I solved it quickly. Sample Code for fiveButton: clicked = lambda : self.press_it(pressed ="5")
@MEHEDIHASAN-kx6ok
@MEHEDIHASAN-kx6ok 3 жыл бұрын
I have a question about kivymd please ans Question : In kivymd textfield how can i check if left-icon clicked
@Codemycom
@Codemycom 3 жыл бұрын
This isn't a Kivy video
@MEHEDIHASAN-kx6ok
@MEHEDIHASAN-kx6ok 3 жыл бұрын
@@Codemycom But can't i ask the question 😰😰
@Codemycom
@Codemycom 3 жыл бұрын
@@MEHEDIHASAN-kx6ok Not under a PyQT video
@MEHEDIHASAN-kx6ok
@MEHEDIHASAN-kx6ok 3 жыл бұрын
@@Codemycom huh i have asked in kivy video
@arkaankhan1631
@arkaankhan1631 2 жыл бұрын
hello sir, what is the command for mac to convert a .ui file to .py file the windows command doesn't work here
@behdadmoradi
@behdadmoradi 2 жыл бұрын
It works nicely!
@Sreeeeeeeekrishna
@Sreeeeeeeekrishna 2 жыл бұрын
Traceback (most recent call last): File "C:\Users\sreem\OneDrive\Documents\PYQT\calc.py", line 12, in self.fourbutton = QtWidgets.QPushButton(self.centralwidget, clicked= lambda: self.press_it("4")) File "C:\Users\sreem\OneDrive\Documents\PYQT\calc.py", line 219, in press_it self.label.setText(f'{self.label.setText.text()}{pressed}') AttributeError: 'builtin_function_or_method' object has no attribute 'text' this came after 18:53
@azarsirdash
@azarsirdash 3 жыл бұрын
energetic as always very good and thank you I tried so hard to make a percentage But I finally figured it out : -- )
@Codemycom
@Codemycom 3 жыл бұрын
:-)
@vanshkhera206
@vanshkhera206 3 жыл бұрын
Thanks Sir :)
@Codemycom
@Codemycom 3 жыл бұрын
Most welcome
@briangreenberg153
@briangreenberg153 3 жыл бұрын
I really love the content of your video presentations. However, when I look at the designer tool on this video, it appears a bit out of focus. I'm viewing on a Mac with excellent retina display resolution.
@Codemycom
@Codemycom 3 жыл бұрын
Click the gear in the bottom corner of the video, change the Quality resolution to the highest available (HD). Your resolution likely got knocked out of wack somehow.
@briangreenberg153
@briangreenberg153 3 жыл бұрын
@@Codemycom Thank you! Worked like a charm! Cold day here in Vegas! Good day for coding!
@Codemycom
@Codemycom 3 жыл бұрын
@@briangreenberg153 I hear that! What happened to those 70 degree days we had just a few days ago?!
@briangreenberg153
@briangreenberg153 3 жыл бұрын
@@Codemycom Today even worse! Got some light precipitation this morning here on the west side. Any chance you could increase the frequency of the PyQt5 GUI videos to more often than just Thursdays?
@Codemycom
@Codemycom 3 жыл бұрын
@@briangreenberg153 Yeah it rained here off and on all day near Lone Mountain. No sorry, my current production schedule is pretty set..
@yassine_zai5032
@yassine_zai5032 3 жыл бұрын
why when I change the ui file to py and I open it in vscode it open with html code no python
@Codemycom
@Codemycom 3 жыл бұрын
no clue, I wouldn't use vscode.
@kevinjc6501
@kevinjc6501 3 жыл бұрын
Need help when i run my python file it just opens and closes immediately any fix
@Codemycom
@Codemycom 3 жыл бұрын
What did you do differently from the video?
@Python12321
@Python12321 3 жыл бұрын
can we do it with normal pyqt5(with no pyqt designer)
@Codemycom
@Codemycom 3 жыл бұрын
Sure, if you want. But I wouldn't.
@codeKeshav
@codeKeshav 3 жыл бұрын
Can't we have Designer for tkinter
@Codemycom
@Codemycom 3 жыл бұрын
:-p
@codeKeshav
@codeKeshav 3 жыл бұрын
@@Codemycom I don't understand what you replied
@Codemycom
@Codemycom 3 жыл бұрын
@@codeKeshav the answer is no
@codeKeshav
@codeKeshav 3 жыл бұрын
@@Codemycom ok sir
@mynameisgod1135
@mynameisgod1135 3 жыл бұрын
Just for a joke : I was doing a coding project When I got an error. My guardian angel came and told me you have done something wrong please check line number 5 . Please check and correct it. I thanked my angel. And my angel warned me don't repeat it.
@soumyodeepghosh3852
@soumyodeepghosh3852 3 жыл бұрын
one comment for yt algorithm
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@karaboprince8438
@karaboprince8438 3 жыл бұрын
KZbin1
@Codemycom
@Codemycom 3 жыл бұрын
ha yep
Build Calculator Functionality - PyQt5 GUI Thursdays #9
14:59
Codemy.com
Рет қаралды 21 М.
Unboxing - 14 inch MacBook Pro (2024, M4 Max)
6:49
Ryan Gehret
Рет қаралды 3 М.
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
PyQT5 Designer Drag and Drop GUI - PyQt5 GUI Thursdays #6
13:25
Codemy.com
Рет қаралды 164 М.
ASMR Programming - Calculator App Coding - No Talking
34:06
AsmrProg
Рет қаралды 5 МЛН
How To Open A Second Window - PyQt5 GUI Thursdays #24
13:41
Codemy.com
Рет қаралды 68 М.
How To Load PYQT5 Designer UI File - PyQt5 GUI Thursdays #27
15:29
QtDesigner and PyQt5:  The right and wrong way to use them together
37:16
Alan D Moore Codes
Рет қаралды 109 М.
Convert py to exe - from code to software
5:55
Python Simplified
Рет қаралды 481 М.
PyQt5 Tutorial - MenuBar (Shortcuts, Status Bar and Triggers)
11:23
Tech With Tim
Рет қаралды 257 М.