Thanks man - you're clearly a great teacher. I'm a 42 year old bloke that's decided to get back into coding (was decent at Basic on the ol' C64 when I was young) to try and keep up with my kids and maybe even one day do something career-wise with it. Your vids are very inspiring as I learn infinitely better by actually 'doing' rather than going through independent tutorials on basic commands and trying to put them all together eventually. Thanks for explaining so well as you go!
@TokyoEdTech
3 жыл бұрын
You're quite welcome! I'm a bit older than you and got my start coding in BASIC as well. I had a VIC-20 and C64 - glory days! Keep on codin'!
@bruhifyify5713
4 жыл бұрын
the timing is perfect, i was having trouble making a calculator earlier
@TokyoEdTech
4 жыл бұрын
Glad to hear it!
@bruhifyify5713
4 жыл бұрын
@@TokyoEdTech i have a question, is it a good idea to learn java after python?
@TokyoEdTech
4 жыл бұрын
@@bruhifyify5713 It really depends on your purpose. If you want to learn Java, learn Java. That said, I think it is generally easier to learn Java after Python since you already know the basic coding concepts and Java is more complex.
@bruhifyify5713
4 жыл бұрын
@@TokyoEdTech ok, thank you so much!
@tachitos6022
3 жыл бұрын
Using this to code in a calculus calculator. Not really to make a project but to reinforce what I learned in my calculus courses
@TokyoEdTech
3 жыл бұрын
That's a great way to learn!
@alexandersequeira1281
4 жыл бұрын
As soon as you said you will be back, an add played. Perfect timing lol.
@TokyoEdTech
4 жыл бұрын
That KZitem algorithm knows its stuff!
@ibgm9317
3 жыл бұрын
Thank you very very very much. I followed you and wrote everything after you learning everything as much as I could. Please continue. I’m your fan from KSA. Do not worry about me being from Middle East. I am one of the good guys hopefully.
@TokyoEdTech
3 жыл бұрын
Thanks - glad you found the tutorial helpful. Very happy to have viewers from all over the world - as-salamu alaykum!
@creativeshooter428
4 жыл бұрын
Thanks for listening to my request for making a video on creating a calculator and keep up the good work you are an awesome youtuber😁😁😁😁😁😁😁😁😁
@TokyoEdTech
4 жыл бұрын
You're welcome - I can't do all requests, but this one was a natural follow-up to my last video.
@creativeshooter428
4 жыл бұрын
@@TokyoEdTech OK😄
@AlexSmith-rl6lb
3 жыл бұрын
U did a really great job...KEEP ON IT
@TokyoEdTech
3 жыл бұрын
Thanks!
@petertipping8044
4 жыл бұрын
Loving these tkinter tutorials! Keep up the great work!
@TokyoEdTech
4 жыл бұрын
Thanks!
@rohan1096
3 жыл бұрын
Thank u sir. I understood everything very clearly. Hats off to u sir. I liked the way u seperated into parts and it really helped a lot . Can I know whether there is a playlist for these types of tutorials for simple apps .
@TokyoEdTech
3 жыл бұрын
Hiya - thanks! I don't have a specific playlist for apps. Sorry.
@javo5270
3 жыл бұрын
I fucking love this channel, am learning so much with these videos, thanks and hats off to you mate
@TokyoEdTech
3 жыл бұрын
Thanks! Much appreciated.
@jazzymilk9996
4 жыл бұрын
IVE BEEN WAITING FOR THIS! Oh and I’m learning Japanese I’m been learning for about a month just thought I would share! ども
@TokyoEdTech
4 жыл бұрын
Dou itashimashite!
@nitishsharma8251
3 жыл бұрын
Thank you.....it was really helpful....and going slowly helped me understand better
@TokyoEdTech
3 жыл бұрын
Glad to hear it!
@amongus_pvp
3 жыл бұрын
TYSM my first working python project
@TokyoEdTech
3 жыл бұрын
You are welcome!
@artix7174
2 жыл бұрын
pov: hecker learns to heck
@teacherinthailan6441
3 жыл бұрын
Excellent! Thank you so much!
@TokyoEdTech
3 жыл бұрын
You're very welcome!
@Shenal_Nimsara
3 жыл бұрын
You are a real coder.best work
@TokyoEdTech
3 жыл бұрын
Thanks!
@Shenal_Nimsara
3 жыл бұрын
I saw this youtube channel today .if i saw it before i watch all the videos in this channel.this is best youtube channel.i started watching your videos today.them are super.I hope i can watch all the python and java videos.I subscribed this channel and i will share this to my friends.good luck 👍
@TokyoEdTech
3 жыл бұрын
Thanks - back at you!
@Shenal_Nimsara
3 жыл бұрын
can you give me the codes of calculator please?
@mateaandmilos
4 жыл бұрын
tkinter looks super easy to start learning :)
@TokyoEdTech
4 жыл бұрын
It is!
@filippians413
3 жыл бұрын
"The reason why lambda functions become so useful is the fact that it is usually more convenient to use simple and concise lambda notation rather than defining a new function in a traditional way, especially if the function is designed to do only one single operation rather than serve as a repeatable component." Still not sure why you need to turn add() into a function but I guess thats how tkinter works. Maybe its supposed to be a callback to execute it? Not sure if I know what Im talking about lol
@TokyoEdTech
3 жыл бұрын
In this case it allows us to pass parameters to the function - otherwise we can only call functions without parameters with tkinter.
@spon._.
2 жыл бұрын
imagine using the calculator app so parents thought you are coding, but you cheated on math exam (thanks btw)
@TokyoEdTech
2 жыл бұрын
You are welcome!
@israelpadonu5351
3 жыл бұрын
I added a delete button to delete a number if I made a mistake
@TokyoEdTech
3 жыл бұрын
Cool!
@panavsaxena7345
3 жыл бұрын
Can we take user input as we did in the BMI app.. so basically, what I want is we can input values 2 ways: i) from the buttons and ii) from the keyboard/user directly without buttons.
@TokyoEdTech
3 жыл бұрын
Hiya - yep, this is definitely doable. I've actually already recorded a video on how to do this. It is currently Members Only, but I'll release it to non-members later in the week, or early next week. Keep on codin'!
@panavsaxena7345
3 жыл бұрын
@@TokyoEdTech Thanks!
@Aarush_2008
4 жыл бұрын
THX FOR THIS GREAT TUTORIAL
@TokyoEdTech
4 жыл бұрын
You're welcome!
@ethansofiadada
3 жыл бұрын
Nicely done once more, Christian. I enjoyed learning about the eval statement. Boy does the GUI always look terrible in Windows, though. Nothing a bit of geometry and button-width adjusting doesn't fix, but yours always looks much nicer! So, I'll finally take a ding on Windows... this time. As a former payroll administrator, I love my ten-key, so is there any way to code in any key bindings to allow for keying in the expressions instead of clicking on them?
@TokyoEdTech
3 жыл бұрын
Thanks! Congrats for making it to your second month as a member - hope you like the cool snakehead badge! Definitely tkinter is pretty ugly but easy for learning. There is a way to customize it but I haven't done much with that myself - saving it for the future! Yes, there is a way to do that - I'll try to get a video out on that subject for you. Have a good one!
@ethansofiadada
3 жыл бұрын
@@TokyoEdTech Thanks, but don't worry about making a video for that. I know I asked about the binding, but I quickly realized I don't plan on using Tkinter and just watch the tutorials for the new code you bring to it (like eval). Thanks though! And woot on my second month! I commented on Discord about it and the badges, but I didn't use a "@", so I guess you don't get notified? I don't either (even with the "@", but I just check it for a couple seconds every day. I don't use Twitter, so I tend to find the "@" thing a bit silly, but that's just me behind on the times! ;) As for the snake, now I see it. I thought it was an alien at first, so you'll understand why I questioned the badges in my Discord comment. Cool beans now, but I still can't make out what the next image is. Brain? Mushroom?
@TokyoEdTech
3 жыл бұрын
I don't get notifications for Discord unless I'm on my tablet (but you do need the @ mark). The next image is supposed to be a pong paddle, but I need to redo the dimensions as it got sqashed!
@ethansofiadada
3 жыл бұрын
@@TokyoEdTech Ohhh! That's what it is! My next guess was one of those bloaty things from Mass Effect! ;)
@TokyoEdTech
3 жыл бұрын
@@ethansofiadada Close! lol
@damnischannel
2 жыл бұрын
I think after you press = it shouldn't continue using the original expression. 2+2*3=8 2+2=4 and then *3 should give 12 This calculator continues giving 8 as result. Adding this at line 35 "expression = str(result)" seems to work. Is it correct? I'm still learning :D
@TokyoEdTech
2 жыл бұрын
I agree. As long as your code works, the it is ok!
@yashsapre1711
2 жыл бұрын
when I run it everything was okay but answer is not comming after pressing "=" button
@TokyoEdTech
2 жыл бұрын
Gotta share your code, otherwise I can't help you.
@muhammadkabir6596
3 жыл бұрын
This is really great was having problems earlier but with this am satisfied
@TokyoEdTech
3 жыл бұрын
Good to hear!
@baneofcronus6979
4 жыл бұрын
I ran into a slight problem here. If you insert a zero before a significant whole number, python gives this error message: "SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers"
@TokyoEdTech
4 жыл бұрын
Interesting. Doesn't the try/except block catch that?
@baneofcronus6979
4 жыл бұрын
It does. The try except block throws up an error every time that happens.
@baneofcronus6979
4 жыл бұрын
The error is shown when you try on the command prompt. If you run the calculation in the shell, you get "SyntaxError: invalid token"
@TokyoEdTech
4 жыл бұрын
@@baneofcronus6979 Interesting - I guess that is a rule in Python. So, you need to avoid entering a 0 at the start of a number. So use 8 instead of 08. Not sure why you would add a 0 at the start of a number though.
@MrKirshoff
3 жыл бұрын
very clear and clean code! thank u so much.
@TokyoEdTech
3 жыл бұрын
You're welcome!
@jolualuko7802
2 жыл бұрын
Very helpful But please how do I add a square root and square command
@TokyoEdTech
2 жыл бұрын
Use the same basic coding structure and to square something you'd add: ** 2 For square root you'd add: ** 0.5 Good luck!
@pablobarbozacanal
3 жыл бұрын
thankyou brow! continue
@TokyoEdTech
3 жыл бұрын
You're welcome!
@lotfibelabbas8411
3 жыл бұрын
i have a problem with the dot button File "", line 1 19.9+ 7 .5 ^ SyntaxError: invalid syntax i solved the problem
@TokyoEdTech
3 жыл бұрын
Good to hear!
@peterchaaya7863
4 жыл бұрын
did this coding works on python in vscodes ?
@TokyoEdTech
4 жыл бұрын
It should.
@nexgenofficial665
4 жыл бұрын
Brother, can you make app making series? With tkinter, It will be great!
@TokyoEdTech
4 жыл бұрын
Hiya - do you mean mobile apps? If so, as far as I know you cannot use tkinter for that purpose.
@nexgenofficial665
4 жыл бұрын
@@TokyoEdTech ohh! Then I have heard that kivy MD is a best platform for mobile apps?
@TokyoEdTech
4 жыл бұрын
@@nexgenofficial665 I've heard about Kivy for making apps in Python, but haven't tried it myself yet.
@nexgenofficial665
4 жыл бұрын
@@TokyoEdTech no problem. Thanks!
@simran9161
2 жыл бұрын
Thanku sooo much🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺💝💝💝
@TokyoEdTech
2 жыл бұрын
You are quite welcome!
@radbiomedicalengineeringpl9810
3 жыл бұрын
i am really appreciate keep it up tnx for share is for us
@TokyoEdTech
3 жыл бұрын
No worries - glad to help! Keep on codin'!
@honeyd5550
Жыл бұрын
does this app follow order of oporation? Or just they way you enter it
@TokyoEdTech
Жыл бұрын
It should follow order of operations.
@guyincognito5614
3 жыл бұрын
loving it
@TokyoEdTech
3 жыл бұрын
Thanks!
@paradox9879
4 жыл бұрын
First ❤️❤️
@TokyoEdTech
4 жыл бұрын
Gold!
@paradox9879
4 жыл бұрын
@@TokyoEdTech thanks you
@canadianbro9327
4 жыл бұрын
Hi sir, where do you write codes and where do you run them? I mean which programs should I download? My laptop's operation system is Windows 10
@TokyoEdTech
4 жыл бұрын
You’re in luck - I’ve made a video about this exact topic. Enjoy! kzitem.info/news/bejne/lZiCk6B5iWSlmJg
@nawid1687
4 жыл бұрын
I was waiting for this!!
@TokyoEdTech
4 жыл бұрын
Wait no more! :)
@nawid1687
4 жыл бұрын
@@TokyoEdTech Thank you!
@xithcal8439
3 жыл бұрын
Your videos really help, keep up the good work :) I am trying to add extra features to the calculator and I noticed that if the number on the result label is 13 digits or more the GUI becomes all messd up (the space between the button becomes to large), do you have any solutions?
@TokyoEdTech
3 жыл бұрын
Hmmm...you'd probably have to play around with the size of the buttons by making them larger from the beginning. Check the docs on how to do that.
@xithcal8439
3 жыл бұрын
@@TokyoEdTech Thank you I'll try that
@red34x52
3 жыл бұрын
not sure how to pause this youtube:we got you 'ad starts playing'
@TokyoEdTech
3 жыл бұрын
KZitem giveth when thou needeth!
@bruhifyify5713
4 жыл бұрын
i have a question, whats the best IDE for python?
@TokyoEdTech
4 жыл бұрын
"Best' is a personal choice, but here's what I've used: kzitem.info/news/bejne/lZiCk6B5iWSlmJg
@MarkCrowtherTheTester
3 жыл бұрын
Consider PyCharm
@TokyoEdTech
3 жыл бұрын
@@MarkCrowtherTheTester Probably not gonna happen, but if it works for you all good!
@yassinezanned8187
3 жыл бұрын
Thank you so much sir
@TokyoEdTech
3 жыл бұрын
Most welcome!
@noobcraft5712
4 жыл бұрын
You should make a gaming channel to play game's like among us, mincraft and all the other game's.
@TokyoEdTech
4 жыл бұрын
Thanks, but I am not a gamer. Also I prefer open source software so check out Minetest instead of Minecraft.
@noobcraft5712
4 жыл бұрын
Ok
@noobcraft5712
4 жыл бұрын
You don't need to be a Gamer to play game's.
@TokyoEdTech
4 жыл бұрын
True - but if you are going to start a KZitem channel about gaming you should be interested in the topic and know something about it.
@tomt7028
3 жыл бұрын
You mentioned that using global variables is considered bad practice, so how would you do this without using them?
@TokyoEdTech
3 жыл бұрын
Typically, you'd create a class such as Game and then run everything inside the Game class.
@superkb172
4 жыл бұрын
Great tutorial and do you plan to mix tk and turtle to create games?
@TokyoEdTech
4 жыл бұрын
Thanks. I wasn't planning on it although it is possible. The turtle module is built on top of tkinter.
@superkb172
4 жыл бұрын
@@TokyoEdTech cool! And have an amazing day
@superkb172
4 жыл бұрын
@@TokyoEdTech hello, could this be done in turtle or could the two tk and turtle mix? pastebin.com/W5v46fxD Oh pydroid 💯
@goodtechnation3075
3 жыл бұрын
Thanks for this video, helped me learn a lot plus create my own calculator lol.. Curious though how would you create a Delete button?
@TokyoEdTech
3 жыл бұрын
You're welcome. A delete button would be pretty straightforward. Create the button. Create the function. In the function get the current formula and then do something like this: string = "12345" string = string[0:len(string)-1]
@goodtechnation3075
3 жыл бұрын
@@TokyoEdTech I’m going to give it a shot
@goodtechnation3075
3 жыл бұрын
@@TokyoEdTech Done and thanks again! def delete(): If expression != “ “: expression = expression[0:len(expression)-1] label_result.config(text=expression)
@TokyoEdTech
3 жыл бұрын
@@goodtechnation3075 Awesome - thanks for sharing!!!!
@newpheeraphat5495
3 жыл бұрын
Thank you
@TokyoEdTech
3 жыл бұрын
You're welcome.
@tentative_iv6398
3 жыл бұрын
Any suggestion on the most probable reason there are spaces between the columns?
@TokyoEdTech
3 жыл бұрын
By default there is a certain amount of padding.
@tentative_iv6398
3 жыл бұрын
@@TokyoEdTech Thanks. I can live with it. The calculator works perfectly.
@TokyoEdTech
3 жыл бұрын
@@tentative_iv6398 I'm with you on that - function > design!
@BF2042Pro
3 жыл бұрын
21:43 I keep getting an error for expression as “Undefined”
@BF2042Pro
3 жыл бұрын
Doesn’t matter, I was doing this within multiple functions as I was making a pretty large program Video really helped thanks 👍
@TokyoEdTech
3 жыл бұрын
Good to hear.
@swastiksarkar
4 жыл бұрын
I can't figure out how the buttons turn out to be squarish rather than rectangular though you did not add height to them.
@TokyoEdTech
4 жыл бұрын
It's automatically sized.
@swastiksarkar
4 жыл бұрын
@@TokyoEdTechmy buttons looks thin when I create them. Why is it diffferent? I have to add manual padding to make a square shaped button like yours.
@TokyoEdTech
4 жыл бұрын
@@swastiksarkar It'll vary by system and font.
@ashwins4776
3 жыл бұрын
Best tutorial....
@TokyoEdTech
3 жыл бұрын
Thanks - glad you liked it!
@gardener_leaftail
3 жыл бұрын
Well I'm going to try this right now. I hope this works
@TokyoEdTech
3 жыл бұрын
Good luck!
@gardener_leaftail
3 жыл бұрын
Wait nevermind that was addressed in the video. Tkinter seems like a pain to work with
@TokyoEdTech
3 жыл бұрын
Yes and no. GUI coding is pretty easy overall but there are lots of little details to keep track of.
@mrurbo
3 жыл бұрын
can you make a tutorial on how to make this full color?
@TokyoEdTech
3 жыл бұрын
I think you just use fg and bg or something like that to change the text and background color of the buttons.
@bellotolulope5430
3 жыл бұрын
i keep getting this error message: "module 'tkinter' has no attribute 'label'
@TokyoEdTech
3 жыл бұрын
Hiya - try Label with a capital L.
@Bronzenical
4 жыл бұрын
can u give ma a link for your phyton please
@TokyoEdTech
4 жыл бұрын
Check the description (Geany).
@muhammadnazhimmaulana6315
3 жыл бұрын
I want to ask, why when I execute the code the size of the buttons are not the same as yours in the video? (I have followed the steps carefully)
@TokyoEdTech
3 жыл бұрын
Not sure - I'd have to see your code.
@dhirajsarkar7246
3 жыл бұрын
Use height= , width= some no. According to what u want
@@muhammadnazhimmaulana6315 I think the size is determined by your OS - on Mac, the buttons are really small. As Dhiraj says, you can manually change the height and width.
@muhammadnazhimmaulana6315
3 жыл бұрын
@@TokyoEdTech Okay, I only need to change the size myself right?
@joshgleeson2242
3 жыл бұрын
After finishing the equals button columnspan there's huge gaps between each button, what do I do to fix it?
@TokyoEdTech
3 жыл бұрын
You have play around with the size (width/height) and make sure the columns are aligned correctly. If you share your code I can take a look.
@joshgleeson2242
3 жыл бұрын
@@TokyoEdTech I did exactly what you did, both tutorials, then to make sure I did everything correctly I checked the github code and mine was the exact same.
@TokyoEdTech
3 жыл бұрын
It's easy to miss something small. If you share your code I'll take a look.
@joshgleeson2242
3 жыл бұрын
@@TokyoEdTech To be honest I'm fine with it, since I mainly are following tutorials to learn how to program in various languages. Ty though!
@TokyoEdTech
3 жыл бұрын
You're welcome - keep on codin'!
@parthgupta4850
4 жыл бұрын
Not first
@TokyoEdTech
4 жыл бұрын
Next time!
@rrickyy
2 жыл бұрын
nice
@TokyoEdTech
2 жыл бұрын
Thanks
@shaharyarahmed5777
4 жыл бұрын
what about space arena?
@TokyoEdTech
4 жыл бұрын
I want to get back to it but I've been waiting to get my work computer which has the code on it. Back to work tomorrow so stay tuned!
@TheWasian
3 жыл бұрын
Hi I have a question, the calculator GUI keys keeps expanding and moving. I don't know how to fix it. Could you help please?
@TokyoEdTech
3 жыл бұрын
Make sure you are using the correct grid coordinates - double check.
@parthgupta4850
4 жыл бұрын
But also not the last
@TokyoEdTech
4 жыл бұрын
:)
@awesome_pi_guy
3 жыл бұрын
Could you make a algebra calculator
@TokyoEdTech
3 жыл бұрын
I'm not really sure how to go about that - what makes it different from a regular calculator?
@awesome_pi_guy
3 жыл бұрын
@@TokyoEdTech It trys to solve for x
@TokyoEdTech
3 жыл бұрын
Oh..you're on your own on that one!
@awesome_pi_guy
3 жыл бұрын
@@TokyoEdTech Ok
@kromydas5063
3 жыл бұрын
@@awesome_pi_guy If you are talking about quadratic, you could implement the quadratic formula on a given quadratic to solve. Other wise, you would have to perform some other algorithms to solve for x. For ex: if you have 3x +6 = 18, the program should go through the side with x in it. It sees the 6 that doesn't have a x. It subtracts it on both sides. So now it has 3x = 12. Then, repeat this process till x is by itself. Then, you divide 3 on both sides. The code gets x = 4. Because x is by itself and there is no number be multiplied to it, it means x is 4 and then it outputs the answer.
@ashwins4776
4 жыл бұрын
I don't have computer , now how can i learn python?
@TokyoEdTech
4 жыл бұрын
I think there are development environments that work on phones and tablets, but I'm not sure what they are called. Check Google.
@goodtechnation3075
3 жыл бұрын
Mimo
@MarkCrowtherTheTester
3 жыл бұрын
SoloLearn has a mobile app
@TokyoEdTech
3 жыл бұрын
@@MarkCrowtherTheTester Thanks for the recommendation!
Пікірлер: 201