I give up, it's really hard to follow along with this because of how convoluted this is compared to every other Tkinter tutorial I've watched. That would be fine, but I'm about half way through, and I've got this problem I cannot figure out, but I have no chance of figuring this out because all the comments are just "I'm going to do this" which has given me no point of reference. This is like more of a video you'd put in your portfolio to prove you're already a genius.
Trust me, I have been coding for years, and the only way to learn is to get your hands dirty, and sweat and blood, trials and errors, these tutorials are not going to teach you anything, find some website enrol, take few courses and seek projects, and build projects, preferably with a tutor “hence” tutorial. These guys are here to show off, "look what we can do", and believe me, you need to understand the very basics first, and the concepts, all of the functions and methods are secondary, you will learn them in time and nobody knows all the functions, but you need to know what you’re about to create then look for the right tools to build it, but you need to know how to use those tools. That’s all there is to it. Start learning to code, 20 minutes every day and in three months you will learn to do many things all by yourself. My advice is start learning to use python, C++, JavaScript, etc… and using tkinter, kivy will only teach you how to code with tkinter and kivy, and then if you’re forced to use real coding, you will find yourself stranded in the middle of nowhere.
There is no genius, you learn to code like you learn to drive a car, to ride a bike, to play the piano, guitar, or to learn to speak another language the key is practice that’s all, no genius there.
Yes, it would be nice if he explained more why he is doing things, but I've followed along and it is working. Use your brain and try to think what is happening. Use pencil and paper to go through some of the steps if it helps.
I literally found this on git while browsing lol it's a cool programme. I have my own calculator code on git but it doesn't have any GUI just basic calculations on a good old terminal
Very useful video. Absolutely advanced and short but still highly effective. Expect more contents from you. I'm new to this Object Oriented Programming. So would like to have some lessons from you. Also I request you to make video on a python GUI Dictionary and a GUI Address/Contact Book. It will be so helpful if it's so. 😍😍
Thanks for the tutorial, it helps me a lot, I learnt a lot with this video. You're doing a great job ! I was writing some python code before but never with gui, now I want to learn more from tkinter !!
sir can you also make a video while i typing a number in the entry widget the number must separate in thousand for example if i'm typing 1200 it must separate 1,200
Hi, just managed to follow the complete code with NO errors but even then it would just simply not run at all since I just could not install the venc (the virtual environment in python) for some reason. It kept telling me that this computer is missing some permissions for running scripts. So as a result while working on the code I could only rely on no error reporting method (available from within pycharm code window. However, I decided to finalize the code and managed to install pyinstaller in hope that it will run after packing the file into an executable (ready for my win 10 64Bit pro) but to my surprise, the app that I created still doesn't open, and doesn't complain at all. I do not see any error window showing up. I even tried to run the executable file as admin and in compatibility mode but still doesn't work. It is really frustrating after 2 days of working on this code still no joy. Now, what ??? Am I stuck here forever??? Please help anyone outthere. Tnx alot.
You probably figured it out but I also encountered the same error. Fortunately enough I'm in the era of chatgpt so i was able to find a solution using this command "Set-ExecutionPolicy -Scope CurrentUser RemoteSigned" Paste this command on your terminal when you encounter that problem and it should be fixed. You can then proceed to activate your venv using the activation command. Hopefully this helps
On the output screen which is calculator GUI I can't see the operator symbols other than addition. I can see all the numbers, C, = but can't see other operators which are -,%,*. So can you please help me out with it. I used same syntax that you used.
Nice tutorial! help me a lot to learn more. Im starting my journey in python and this challenge is very good. But can I ask you a basic thing? Instead of having all the functions in the main .py can we divide them in different scripts and them import to the main or it has to be all in the same? Thanks
def click(value): ex = entryField.get() answer = '' try: if value == 'C': #Here c = Clear button (works like a backspace key) ex = ex[0:len(ex) - 1] entryField.delete(0, END) entryField.insert(0, ex) return This will be your command.... now just insert a button using tkinter button command and you are good to go.
Thank you so much for this amazing tutorial! I've learned a lot from it. There is only one thing i don't understand and it is why when trying to solve the problem where pressing any key would resulti in only "." being printed on the screen, "lambda x=digit: self.add_to_expression(x)" works, but "lambda: self.add_to_expression(digit)" doesen't. Keep up the amazing work!
I believe that in the first case at the moment of calling the self.add_to_expression(digit) through the lambda function the value of the argument (digit) will corrispond to the last value assigned in the loop (In our case "."). In the second case, with lambda x=digit: self.add_to_expression(x) we assign a default argument to x that corrisponds to the value of digit at the step of the loop where the button is created (The button showing "1" will have a default value of "1", "2" of "2" and so on)
i try run this code what he try run in 5.40 but when i run it " Error running 'calc': Cannot run program "C:\Users\Käyttäjä\PycharmProjects\animation\venv\Scripts\python.exe" (in directory "C:\Users\Käyttäjä\Desktop\calculator"): CreateProcess error=2, The system cannot find the file specified" help
Hello greetings from Venezuela, I am learning python and I decided to do this exercise with you. I'm having trouble using the calculator with the keyboard. I use linux mint, will there be a configuration problem with linux? Thank you for your time. There I send you an extract of the code. Thanks in advance. # using calculator from the keyboard def bind_keys(self): self.window.bind("", lambda event: self.evaluate()) for key in self.digits: self.window.bind(str(key), lambda event, digit = key: self.add_to_expression(digit)) for key in self.operations: self.window.bind(key, lambda event, operator = key: self.append_operator(operator))
I had also trouble with the keyboard. Please add to the function bind_keys: self.window.bind("", lambda event: self.clear()) # add clear key self.window.bind("", lambda event: self.square()) # add square key with pressed self.window.bind("", lambda event: self sqrt()) # add square-root key with pressed. I had no trouble with and keys on my keyboard. If you have, try any other key of yourchoice to perform add_to_expression()
very interesting tutorial.straight forward steps but i had an issue when adding Functionality to the Buttons,it doesnt display the value when clicked even i corrected this line of code "command=lambda x=digit: self.add_to_expression(x)"
try starting again from scratch. or try copying just the basic start code from his code at GitHub. I had that problem at first, and couldn't figure out why it didn't work for me.
This video leaves me with mixed feelings. It shows important solutions that everyone will come across when working with tkinter. But one thing bothers me a lot. In this video there is little explanation of why such decisions were made and what the long-term benefits are. For example, I wondered why we don't fill the dictionary with all the buttons. Later in the video this becomes clear, but the viewer must ultimately make the findings himself. Likewise, the concept of updating the label didn't really make sense to me until later and you just had to accept it during the implementation. In the end, the video probably shows interesting concepts, but doesn't really go into why things are solved this way, but simply does it.
It's impossible to debug because none of it explained well at all. I've tried comparing code exactly and I can't explain why I'm having this problem (the numbers appearing at the top but not the bottom display label). But his "I'm just going to---" comments make no sense.
I have a problem for some time, when I try to open a .exe file that has been created from a python file it opens a console and then it instantly coses it. I'm not sure what should I do to fix this. Any help is appreciated
One of most underrated guys on the youtube you deserve 10mviews for your amazing tutorials....
10 views?🙄
@@graphixig 10m what i should say my bad
Please make more tutorials with designing programs not only python c++ c# php swift things like plz
i learned python for 3months but your this video literally get to me know python
I give up, it's really hard to follow along with this because of how convoluted this is compared to every other Tkinter tutorial I've watched. That would be fine, but I'm about half way through, and I've got this problem I cannot figure out, but I have no chance of figuring this out because all the comments are just "I'm going to do this" which has given me no point of reference. This is like more of a video you'd put in your portfolio to prove you're already a genius.
Trust me, I have been coding for years, and the only way to learn is to get your hands dirty, and sweat and blood, trials and errors, these tutorials are not going to teach you anything, find some website enrol, take few courses and seek projects, and build projects, preferably with a tutor “hence” tutorial. These guys are here to show off, "look what we can do", and believe me, you need to understand the very basics first, and the concepts, all of the functions and methods are secondary, you will learn them in time and nobody knows all the functions, but you need to know what you’re about to create then look for the right tools to build it, but you need to know how to use those tools. That’s all there is to it.
Start learning to code, 20 minutes every day and in three months you will learn to do many things all by yourself.
My advice is start learning to use python, C++, JavaScript, etc… and using tkinter, kivy will only teach you how to code with tkinter and kivy, and then if you’re forced to use real coding, you will find yourself stranded in the middle of nowhere.
There is no genius, you learn to code like you learn to drive a car, to ride a bike, to play the piano, guitar, or to learn to speak another language the key is practice that’s all, no genius there.
Yes, it would be nice if he explained more why he is doing things, but I've followed along and it is working. Use your brain and try to think what is happening. Use pencil and paper to go through some of the steps if it helps.
Thanks for your Video and all your explanation, have a good week-end Man!
I literally found this on git while browsing lol it's a cool programme.
I have my own calculator code on git but it doesn't have any GUI just basic calculations on a good old terminal
Very useful video. Absolutely advanced and short but still highly effective. Expect more contents from you. I'm new to this Object Oriented Programming. So would like to have some lessons from you. Also I request you to make video on a python GUI Dictionary and a GUI Address/Contact Book. It will be so helpful if it's so. 😍😍
Whats your theme? looks amazing
Much better than copying to intense music. Tysm.
His razer laptop background matches with the programming language he uses
Good video overall. Need more explanation why you coded it a certain way or what the code does, not just give the code.
Thanks for the tutorial, it helps me a lot, I learnt a lot with this video. You're doing a great job ! I was writing some python code before but never with gui, now I want to learn more from tkinter !!
Thank you so much. can you recommend us a package to test the calculator GUI or any vid that can help us write Calculator GUI?
Thank you so much for this amazing video! I really learnt so much things from you and your my favorite youtuber
came here from your website......awesome youtube channel like your website.......keep uploading good stuff like this...thanks
but I wanna ask one thing that
i am getting error
". calculator has no attribute create_display_frame()
so can you tell me it's fix?
thank you , I had so much fun while coding!
21:20
sir can you also make a video
while i typing a number in the entry widget the number must separate in thousand for example
if i'm typing 1200 it must separate 1,200
You were great at explaining
Is there an exercise to make this calculator?
I FOUND IT!!!! THANK U SO MUH JIIII.......
What if you want to add trigonometrical functions, how do you do that???
How will I add the "navigation" button? Where it shows more options to different calculator?
Am mad at myself for not having met this channel earlier. 😂 Your content is very educative and I really appreciate your work.
the cod is run successfully but nothing is displaying on my screen for view. pleas help me out thanks.
Can anyone tell what is the font he is writing the code in
Thank you for your tutorial ! It helps me a lot
Hi, just managed to follow the complete code with NO errors but even then it would just simply not run at all since I just could not install the venc (the virtual environment in python) for some reason. It kept telling me that this computer is missing some permissions for running scripts. So as a result while working on the code I could only rely on no error reporting method (available from within pycharm code window. However, I decided to finalize the code and managed to install pyinstaller in hope that it will run after packing the file into an executable (ready for my win 10 64Bit pro) but to my surprise, the app that I created still doesn't open, and doesn't complain at all. I do not see any error window showing up. I even tried to run the executable file as admin and in compatibility mode but still doesn't work. It is really frustrating after 2 days of working on this code still no joy. Now, what ??? Am I stuck here forever??? Please help anyone outthere. Tnx alot.
me too same problem, did you solved? if yes, how?? @Programiz heeelp
You probably figured it out but I also encountered the same error. Fortunately enough I'm in the era of chatgpt so i was able to find a solution using this command "Set-ExecutionPolicy -Scope CurrentUser RemoteSigned" Paste this command on your terminal when you encounter that problem and it should be fixed. You can then proceed to activate your venv using the activation command. Hopefully this helps
Very cool Soyuz
Can I perform it on Mac 🤔??
iam getting error like( AttributeError: 'Calculator' object has no attribute 'window)
me too have you fix it ?
Amazing video! This video deserves 10m like!
There should be a backspace button on the calculator, but how will I make that?
Thank you for making this video!!😀
question . when I add too much numbers the whole window stretches. how can I prevent that ?
plz tell me that how to write multiply sign in geometry?
why is the window not resizable?
What theme are you using?
calc.run is not showing for me
I can't open the folder using pycharm, no 'open with pycharm" button
Good work, i love this channel.
How about making a sin cos tan button sir, pls help me!
This is a good learning tool. Thx.
Dhanyabad dai❤
How can I make a delete button?
When can i get notes on HTML,CSS,React,DBMS on your website.?
Eagerly Waiting...🔥
thank you ap ne mera school me watt badaha deya
i cant seem to be able to change the background colour can u please help me
On the output screen which is calculator GUI I can't see the operator symbols other than addition. I can see all the numbers, C, = but can't see other operators which are -,%,*. So can you please help me out with it. I used same syntax that you used.
That was a super informative and really nice tutorial to follow along thanks!
After using bind my calculator is not working can please solve the error
Nice tutorial! help me a lot to learn more. Im starting my journey in python and this challenge is very good. But can I ask you a basic thing? Instead of having all the functions in the main .py can we divide them in different scripts and them import to the main or it has to be all in the same? Thanks
You can. And then you can import them using the import at the top of your script. Look up how import works and you'll learn how easy it is
when I write the sqrt(10) ,then why it is not showing the floating number??? only sqtr(9) = 3.0 ,sqrt(4) = 2.0 .......are showing the accurate result
Thank you, sir! 😍😍
Throws error in if __name__ function and gui doesn't run
Why was a Lambda function used? When it came to the button(command = lambda:function() ). Why not just the function?
You can't directly assign a call to a function with an argument as an assignment, only a function name. lamba lets you get around that.
Thank you for this amazing video man! I do wanna know if you know how to make an erase button, where I can just remove one number at a time?
def click(value):
ex = entryField.get()
answer = ''
try:
if value == 'C': #Here c = Clear button (works like a backspace key)
ex = ex[0:len(ex) - 1]
entryField.delete(0, END)
entryField.insert(0, ex)
return
This will be your command.... now just insert a button using tkinter button command and you are good to go.
Helpful but can't see it well.if you can zoom it a bit for the views
Waiting for it
Thank you so much for this amazing tutorial! I've learned a lot from it. There is only one thing i don't understand and it is why when trying to solve the problem where pressing any key would resulti in only "." being printed on the screen, "lambda x=digit: self.add_to_expression(x)" works, but "lambda: self.add_to_expression(digit)" doesen't. Keep up the amazing work!
I believe that in the first case at the moment of calling the self.add_to_expression(digit) through the lambda function the value of the argument (digit) will corrispond to the last value assigned in the loop (In our case "."). In the second case, with lambda x=digit: self.add_to_expression(x) we assign a default argument to x that corrisponds to the value of digit at the step of the loop where the button is created (The button showing "1" will have a default value of "1", "2" of "2" and so on)
nice video man
how to open folder by pycharm
You can not use pick and grid together
How to enable backspace in the calculator
i try run this code what he try run in 5.40 but when i run it " Error running 'calc': Cannot run program "C:\Users\Käyttäjä\PycharmProjects\animation\venv\Scripts\python.exe" (in directory "C:\Users\Käyttäjä\Desktop\calculator"): CreateProcess error=2, The system cannot find the file specified"
help
Hello greetings from Venezuela, I am learning python and I decided to do this exercise with you. I'm having trouble using the calculator with the keyboard. I use linux mint, will there be a configuration problem with linux? Thank you for your time. There I send you an extract of the code. Thanks in advance.
# using calculator from the keyboard
def bind_keys(self):
self.window.bind("", lambda event: self.evaluate())
for key in self.digits:
self.window.bind(str(key), lambda event, digit = key:
self.add_to_expression(digit))
for key in self.operations:
self.window.bind(key, lambda event, operator = key:
self.append_operator(operator))
I had also trouble with the keyboard. Please add to the function bind_keys:
self.window.bind("", lambda event: self.clear()) # add clear key
self.window.bind("", lambda event: self.square()) # add square key with pressed
self.window.bind("", lambda event: self sqrt()) # add square-root key with pressed.
I had no trouble with and keys on my keyboard. If you have, try any other key of yourchoice to perform add_to_expression()
Can you guys make a browser like chrome
Thank you, sir!
_tkinter.TclError: cannot use geometry manager grid inside . which already has slaves managed by pack?
How to calculate percentage and create button
very interesting tutorial.straight forward steps but i had an issue when adding Functionality to the Buttons,it doesnt display the value when clicked even i corrected this line of code "command=lambda x=digit: self.add_to_expression(x)"
Lambda is capital, kinda late but hope it helps lol.
thank you!
I am also doing the but it's showing errors because of pack() and grid(), can't use in same class
Please send the coding text..
Im getting error..while doing eval function
You speak very quitely and the effect sound is too loud. Thanks for the video and online python interpreter!
How can I run on emulator
How to add icon for app
thanks thanks thanks good luck
nice video
Why is it that after I added the Square and sqrt function lines my equals and clear buttons dissapared in the gui? Great video anways.
it coulod happen that you put the sq and sqrt button at the same location of clear and equal
bro video haru nepali ma ni xa?
i'm getting attribure error as 'str' object has no attribute 'tk' @programiz
Where is the source code for this ??
Thanks!
tkinter output is not opening,I don't know why? Any one know solution
great great video
AttributeError: 'Calculator' object has no attribute 'window' can anyone help me?
try starting again from scratch. or try copying just the basic start code from his code at GitHub. I had that problem at first, and couldn't figure out why it didn't work for me.
This video leaves me with mixed feelings. It shows important solutions that everyone will come across when working with tkinter.
But one thing bothers me a lot. In this video there is little explanation of why such decisions were made and what the long-term benefits are.
For example, I wondered why we don't fill the dictionary with all the buttons. Later in the video this becomes clear, but the viewer must ultimately make the findings himself.
Likewise, the concept of updating the label didn't really make sense to me until later and you just had to accept it during the implementation.
In the end, the video probably shows interesting concepts, but doesn't really go into why things are solved this way, but simply does it.
It's impossible to debug because none of it explained well at all. I've tried comparing code exactly and I can't explain why I'm having this problem (the numbers appearing at the top but not the bottom display label). But his "I'm just going to---" comments make no sense.
@@Jdeadevil can you show your code? Maybe I can help.
hi could you please share the entire code in a file. thanks
สวัสดีคับทุกคนๆ ทำไรกันอยู่เหรอ
งื้องื้อ หยอกเล่นนะคับ อิอิ โทดคับ
NICE
nepal bata ho??
When you 04 ÷ 3 it give you error pls help
because of the zero : if you do 4 / 3 = correct result displayed!
Me to waiting
Nice. Could you make a project with pyqt5?
Also one thing convert that python file into .exe file and share it with us .
That’s not how that works
@@leomonk974 This kid thinks everything is so simple😂 i guess he doesn't even know how many characters do we write to get a single world hello🙃
@@adityaraj04 just 4 lines of code to make a simple label texted hello world
@@alaa6809 c language 🙂
@@leomonk974 lol that is how it works.
I have a problem for some time, when I try to open a .exe file that has been created from a python file it opens a console and then it instantly coses it. I'm not sure what should I do to fix this. Any help is appreciated
Hi Tomas, please make sure that .exe file is created successfully with the required command line parameters.
While making .exe file you have to mention --noconsole and make sure to add mainlooop at end of program.
Anyone can provide me source code?
- day 1 ___ 17:25 .
please upload dart programming video
or upload dart tutorial on website
im getting alot of errors