▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj 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
@magiconfire4 жыл бұрын
yooooooooooooooo plz say hi plz
@letsarray57124 жыл бұрын
17:00 if you error syntax you have to replace Lambda to lambda. The syntax is worked than Lambda
@Codemycom4 жыл бұрын
Never use capital L in lambda...I don't use capital L in the video.
@letsarray57124 жыл бұрын
@@Codemycom yeah but i look it's large L :d
@Codemycom4 жыл бұрын
@@letsarray5712 so? the size of it doesn't matter at all, do it in the same way I showed in the video
@letsarray57124 жыл бұрын
@@Codemycom Oke fine that's not the big problem to me 😂
@tiffles6992 жыл бұрын
Thank you, due to the font it looks like its "L" instead of "l", I made that mistake (if using idle, lambda turns orange, Lambda does not)
@timmyroust2 жыл бұрын
Great teaching ! This playlist is paced so well. I've been going in circles trying to get started with Tkinter till now. This gave me a confidence boost ! Thank you!
@Codemycom2 жыл бұрын
Happy to hear it!
@IceTheCoder2 жыл бұрын
Please continue to make videos, you are truly a great creator and help so many people like me learn to code
@Codemycom2 жыл бұрын
I have hundreds of videos on my channel and I create more every week.
@mrawesome77393 жыл бұрын
I think what helps me learn this is making it my own: changing labels, adding more functions or buttons
@Codemycom3 жыл бұрын
that's usually the case
@ponalvsiki22543 жыл бұрын
Make a modern casio fx 580 💪
@dragonhunter2264 Жыл бұрын
I know this is late but what other type of functions did you add im adding some stuff too but just the division and multiplication wondering if you did anything else?
@CShand5 жыл бұрын
Want to see more about making something like this that scales with resizing.
@LhamoID Жыл бұрын
Hello. Its from Bhutan. This video really helped me. Kadrinchey!
@Codemycom Жыл бұрын
Glad to hear it!
@Another_Look3 жыл бұрын
17:01 What you want is e.insert("end", number)
@macdonaldjuma61642 жыл бұрын
I enjoy how fun you make your lessons, 😃Thank you
@Codemycom2 жыл бұрын
Glad you're enjoying them!
@musabaltayy63624 жыл бұрын
you deserve million LIKE for this chain of videos
@Codemycom4 жыл бұрын
I agree, tell your friends! :-p
@punishertvv4 жыл бұрын
Thanks sir ... This is so simple ..i understood All the things thankyou ... Love from INDIA
@Codemycom4 жыл бұрын
Thanks for watching!
@wrapdoesstuff76144 жыл бұрын
thanks this video was really helpful and entertaing to both code and watch!
@Codemycom4 жыл бұрын
Glad it helped!
@nitinjagga28414 жыл бұрын
You Are Very Good Teacher John Elder Please Make A Video On Doing Webscraping Using Python
@Codemycom4 жыл бұрын
Thanks :-)
@umpalumpa28834 жыл бұрын
Nice video series and good explanation. Comment to the commentators: I no sometimes there are weird error messages but I think instead of asking here you could try to figure it out by yourself . It might take some time and can be annoying but at the end of the day you like to learn how to code by yourself and then you'll need to find solutions to upcoming issues. Cheers
@Codemycom4 жыл бұрын
most of coding is googling errors
@texxmexxchick4 жыл бұрын
I do this to some extent. I will try any ideas I have of the top of my head, for me this is about 10 -15 mins of re-writing and testing. Once I feel like I'm out of ideas, then I'll google or ask around.
@SomeOne-ec9zx11 ай бұрын
It's a wow what you are doing........keep going
@adarsht62664 жыл бұрын
Yes it's is very nice Please share more videos
@Codemycom4 жыл бұрын
I release new videos every day
@adarsht62664 жыл бұрын
@@Codemycom thanks friend interesting for coding
@Codemycom4 жыл бұрын
@@adarsht6266 no problem
@adarsht62664 жыл бұрын
Can you connect with us to clarify doubts?
@Codemycom4 жыл бұрын
@@adarsht6266 People who purchase membership to my site can ask questions about the videos and I answer them. I don't do consulting outside of my courses tho.
@mashalmokarar4817 Жыл бұрын
god bless you men thanks alot ❤❤❤
@Codemycom Жыл бұрын
thanks
@abdolrezamohseni9787 Жыл бұрын
Awesome. Great teaching. Is there any chance to have access to the written codes for each of the video?
Hey, why you have placed columnspan parameter and applied it on the Entry widget? The other (button) widgets inherit it?
@Codemycom Жыл бұрын
no they don't inherit it. We want the entry widget to span the three columns below that hold the other buttons...that's why.
@mohammadsakil40504 жыл бұрын
Nice video
@Codemycom4 жыл бұрын
Thanks!
@lukipuki40952 жыл бұрын
Thanks for the great intro to python. Can't believe my first project worked:) Can you explain how to limit input to the GUI or easily exclude letters and non 'math' symbols from the keyboard please?
@Codemycom2 жыл бұрын
I don't have any videos on that
@abigailhillen-schiller36415 жыл бұрын
Hi John, Loving your TKinter tutorials so far. I have a question, though. I wrote this loop to create the buttons for 1-9: for x in range(1,4): y = 10-3*x for z in range(y, y+3): btn = Button(root, text=z, padx=40, pady=20, command=lambda: button_click(z)).grid(row=x, column=z-y) The buttons are rendered fine, but when I click them, they all insert the number 3 into the entry box, regardless of the number on the button. Changing the lambda as below solved the problem, but I don't understand why: lambda q=z: button_click(q) Can you explain it?
@user-ft4mz3ez1c5 жыл бұрын
Because you are in a loop and the lambda function you wrote has no variable i it takes the value of the last iteration. In order to fix it write your lambda like this: lambda q=z: button_click(q) which will work because q is a variable of the lambda so it changes every time you call it. Also its more pythonic to create your buttons with a list instaid of having for loops.
@abigailhillen-schiller36415 жыл бұрын
@@user-ft4mz3ez1c Thanks for the explanation! When you say create buttons with a list, do you mean create each button on a separate line, like in the video, or using a [list]?
@user-ft4mz3ez1c5 жыл бұрын
@@abigailhillen-schiller3641 yeah i mean something like this: num_buttons = [Button(root, text=str(i), width=7, borderwidth=4, pady=15, padx=1, font="Calibri 15 bold", command=lambda i=i: symbol_button_pressed(i)).grid(row=str(3 - (i - 1) // 3), column=str((i - 1) % 3)) for i in range(1, 10)]
@abigailhillen-schiller36415 жыл бұрын
Great tip, thanks!
@hector3383 жыл бұрын
@@user-ft4mz3ez1c That's some really clever indexing for the rows and columns, thanks for the tip.
@shukkkursabzaliev17305 жыл бұрын
Amazing
@Codemycom5 жыл бұрын
Thanks!
@themadmagic50192 жыл бұрын
"its a program, we can build it and that should be cool" ~John
@Codemycom2 жыл бұрын
lol
@johannesberger86414 жыл бұрын
Imo a cleaner and (more) pythonic way of defining all the buttons is number_buttons = [ Button( root, text=str(i%10), padx=40, pady=20, command=(lambda j=i : button_click(j%10)) ) for i in range(1, 11)] Then, to put them on the grid for i in range(10): number_buttons[i].grid(row=i//3+1, column=i%3)
@Codemycom4 жыл бұрын
whatever floats your boat
@realityfirst55857 ай бұрын
@@Codemycom Ive been enjoying your videos until I started reading your responses. I have to say they arent very professional, Iike this one above. I hope you have grown to be more understanding in the last 3 yrs!
@karlobucic44124 жыл бұрын
Hello from Croatia - 🇭🇷 First, I just want to say that I love your videos. I think that your explaining skills are a great. Second - I have a question : I built my calculator and everything works perfect but I want to know how the Entry widget recognizes "123" as one number and not as three numbers - "1" , "2" , "3". Is that just how it works or what ? Because we don't need to code anything for it to do that.
@trininite4 жыл бұрын
no, python will see it as a string
@sulekedelai85644 жыл бұрын
Hello From Indonesia
@ykbroadcast59674 жыл бұрын
super!!! Thanks a Lot..
@Codemycom4 жыл бұрын
Sure thing!
@kranthikiran625011 күн бұрын
how to select right padding width, so that space between all buttons are same both in horizontal and vertical direction
@toinduino5034 жыл бұрын
estou gostando muito das aulas parabens profesor
@Codemycom4 жыл бұрын
Glad you're enjoying them!
@MajidHashemi-rt8le Жыл бұрын
Thanks u🎉
@Codemycom Жыл бұрын
Welcome!
@rockleejj1235 жыл бұрын
Hi, have a problem, at 11:04 line 25 and 26 button_0 = Button(root, text='0', padx=40, pady = 20, command = button_add()) button_add = Button(root, text='+', padx=40, pady = 20, command = button_add()) seems the button_add redefine the botton_add, it caused error 'Button' object is not callable did I type something wrong otherwise.
@Codemycom5 жыл бұрын
shouldn't be any spaces after your padys and commands
@parthpatel81925 жыл бұрын
no its cause u used () in commands
@nassudekanal42302 жыл бұрын
you cant use parentheses
@sadibouthioye6016 Жыл бұрын
i love this
@johnpro28475 жыл бұрын
Thanks great help ..
@Codemycom5 жыл бұрын
Happy to help!
@aneeshmadhavan2903 Жыл бұрын
How to make the tkinter window flexible when maximizing or adjusting the size of the window?
@Codemycom Жыл бұрын
Sorry, I don't know what you mean by flexible
@RinksRides5 жыл бұрын
I smashed said "LIKE" button below, now my screen is broken... THANKS!
@Codemycom5 жыл бұрын
Life is risk! lol
@Mkz325 жыл бұрын
U smashed the screen then got a syntax error anyways Good vid keep it up
@Codemycom5 жыл бұрын
@@Mkz32 too funny!
@Acuce7ibd468j4 жыл бұрын
hey john !!!! is there any way to make our python app stands alone in mobile without installing a python compiler ??? thank you
@Codemycom4 жыл бұрын
Sure, but it's complicated...
@ansh47863 жыл бұрын
I like your tutorials but i want to know that how can we make that First when we start a start button will be visible and when we click it the screen changes to this calculator in that screen only not in another screen So please tell me And also Thank You
@Codemycom3 жыл бұрын
Use frames or tabs
@數學只考6級分5 жыл бұрын
I very like your video.
@Codemycom5 жыл бұрын
Glad you like it :-)
@wadhaer83324 жыл бұрын
Thank you
@Codemycom4 жыл бұрын
You're welcome
@iemgote72492 жыл бұрын
I´ve been trying to bind the buttons to keys on the keyboard, every time it seems to just type out all the numvers and they keys don't seem to do anything. Any advice?
@Codemycom2 жыл бұрын
I've got several videos on binding on the playlist
@davida61464 жыл бұрын
Wow.... this is more advanced than I need... lol
@Codemycom4 жыл бұрын
ha
@Hawatt113 жыл бұрын
I get a syntax error associated with the Lambda; based on some Stack Overflow comments this looks like it's not possible to use in Python 3? I should go try my older version of Python and see if it works there. Not sure how to get around this. OK never mind thanks, I saw your answer about lowercase L in "lambda". But YOUR screen keeps capitalizing them! At least it looks like uppercase.
@Codemycom3 жыл бұрын
My screen does not capitalize them lol that's what a lowercase l looks like in sublime...
@hedonistjohn62003 жыл бұрын
I keep rewatching because my calculator window is way bigger that yours. My padx and pady are the same
@Codemycom3 жыл бұрын
did you set the size of the app differently?
@hedonistjohn62003 жыл бұрын
@@Codemycom I don't see a step for sizing the window in the video. I think the main reason is I'm working on a Mac. I tried changing fg and bg colors and it would not work. I had to import tkmacosx. Which works but the layout changes when I comment it out vs use it. Thanks for the reply, hitting a walk with the next section in getting my icon to show up. I tried absolute path and relative paths.
@Codemycom3 жыл бұрын
@@hedonistjohn6200 Right at the top of the app: root.geometry("500x550") or whatever numbers you want to put in there
@jeff503pdx3 жыл бұрын
Looks nice but how to stylize the calculator?(colors/shapes/etc..)
@Codemycom3 жыл бұрын
In the normal tkinter way...check my playlist.
@nucleartesla4 жыл бұрын
When I came to 8:47 on the video where you made the buttons my buttons where all over the place could you help
@Codemycom4 жыл бұрын
What did you do differently in your code? If you did what I did, you'd get the same result.
@program_brain4 жыл бұрын
It's possible to excute the program in android phone sir.? What is name of the app sir?
@Codemycom4 жыл бұрын
no tkinter doesn’t work on android
@program_brain4 жыл бұрын
@@Codemycom thanks for reply sir. But my idea is to create android app using python. is there any idea to do that sir. What i have learn for that.?
@matthewkeen62812 жыл бұрын
nice..
@Codemycom2 жыл бұрын
thanks
@elchinefa95244 жыл бұрын
Is not there a way to use for loop? By the way I gonna create a timer for PC with GUI and want to understant how i will use os. system's shutdown commands with tkinter. Of course input must be int.
@chanero-u8z7 ай бұрын
I just try it myself. In the end , the result is a little bad, but I have finish it.
@chanero-u8z7 ай бұрын
The tutorials are very useful ❤❤❤
@Codemycom7 ай бұрын
Glad you enjoy them!
@digital-artefakt4 жыл бұрын
Hello, can you explain me why do you have to enter two arguments,like e.insert(0, number)? or (0,END)
@Codemycom4 жыл бұрын
because you can delete certain characters in the entry box..so it's a range of all the characters in the entry box
@digital-artefakt4 жыл бұрын
@@Codemycom oh, it is simple logic when you put it that way. Thank you on your fast answer!
@brianmoreira75784 жыл бұрын
16:30 when I use lambda the GUI launches but when I click a number I get an error TypeError: 'Button' object is not callable I don't understand cus I'm using lamda the same way he is. Please help!😥
@brianmoreira75784 жыл бұрын
I think it's because I've named my Button button1. I've noticed I have no error when I name it btn1 or button_1(like he did). Really wish he would've said something lol. But I'm going to see what happens when I change the rest of the Code.
@brianmoreira75784 жыл бұрын
Yea that was it. The Button cannot be named 'button1' or 'button' or 'Button'
@Codemycom4 жыл бұрын
yep
@guyincognito56143 жыл бұрын
omg, thank god. Edit: having the same problem
@Algeriawindows69 Жыл бұрын
16:21 hey dude i got an error that always says " e.delete( 0, END) ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'delete' " and even when i remove it another error pops " e.insert( 0, number) ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'insert'"
@Codemycom Жыл бұрын
You can't define a widget and .pack() it on the same line.
@Algeriawindows69 Жыл бұрын
@@Codemycom still the same error but i think becoz i use .place()
@Algeriawindows69 Жыл бұрын
@@Codemycomstill the same error "Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\tkinter\__init__.py", line 1948, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "C:\Users\lenovo\Desktop\programs\python\balc.pyw", line 16, in , bg="#14151a",fg="white",command=lambda: numad(1)).grid(row=1,column=1) ^^^^^^^^ File "C:\Users\lenovo\Desktop\programs\python\balc.pyw", line 12, in numad e.delete( 0, END) ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'delete'"
@Codemycom Жыл бұрын
@@Algeriawindows69 yeah you can't .pack() or .grid() or .place() whatever you used to place the widget, on the same line that you defined the widget.
@rexsoosan3035 жыл бұрын
Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\Rex\AppData\Local\Programs\Python\Python38\lib\tkinter\__init__.py", line 1883, in __call__ return self.func(*args) File "G:/python/calc_gui.py", line 33, in button14= Button(root,text="0",padx=30,pady=30,command=lambda: Button_click(0)).grid(row=6,column=3) File "G:/python/calc_gui.py", line 12, in Button_click e.delete(0,tk.END) AttributeError: 'NoneType' object has no attribute 'delete'
@kermitsan38925 жыл бұрын
have same problem
@sambosa565 жыл бұрын
@@kermitsan3892 and me i thing because our version is python 3.8 but the video used older version python 3.7
@mariogamer5875 жыл бұрын
How you run your code, I can't run my code in sublime text?? Good video!
@Codemycom5 жыл бұрын
I'm not running the code in Sublime text. I'm using the git bash terminal that I downloaded. git-scm.com/downloads
@mariogamer5875 жыл бұрын
@@Codemycom Ty I'll try that :]
@mariogamer5875 жыл бұрын
@@Codemycom I just get an error: $ python calculator.py bash: python: command not found any solution?
@Codemycom5 жыл бұрын
@@mariogamer587 you didn't add python to path when you installed it. Reinstall it, check the box that says add python to path.
@mariogamer5875 жыл бұрын
@@Codemycom ok ty I added it through settings😊
@sunilkjha36384 жыл бұрын
Hello John. What does END do in e.delete(0, END)??
@Codemycom4 жыл бұрын
Think of it as a python list...we're saying delete everything from position 0, to the END of the list.
@sunilkjha36384 жыл бұрын
@@Codemycom Thank you John. And is it the same in e.insert(0, number)? Does it mean that print everything from 0 to the number entered. Or am I wrong?
@Codemycom4 жыл бұрын
@@sunilkjha3638 Basically, yes
@jamesh62244 жыл бұрын
Hello, after adding the column span I still have big gaps in-between my columns ?
@Codemycom4 жыл бұрын
Weird...double check your code...
@jamesh62244 жыл бұрын
@@Codemycom The gaps remain even if i make all the buttons the same size
@Codemycom4 жыл бұрын
@@jamesh6224 There has to be something wrong with your code, or something you aren't seeing...
@Hyvexx4 жыл бұрын
This is late but I had the problem with it too. I was on Mac and it turns out that there is a way to tell the tkinter module to move the buttons closer. Just add sticky= "nsew" to the end of all of your .grid() method (example : button_1.grid(row=3, column=0, sticky="nsew") stackoverflow.com/questions/45828923/remove-space-between-buttons-in-tkinter#45844991
@SmellyNutz4 жыл бұрын
@@Hyvexx You are a LIFESAVER!
@nelsondarwinpaktech39544 жыл бұрын
great
@Codemycom4 жыл бұрын
Thanks
@kerdes_11813 жыл бұрын
Hello Codemy how can i get an auto selection on a row in a treeview when i get a search when i search i want to get the result i try tree.selection_set(), but it can't selected row
@atoparis4 жыл бұрын
I am stuck with this... went through the whole list of comments but still have the issue: butt_1 = Button(root, text="1", padx=40, pady=20, command=lambda: butt_click(1)) However when I click the button it says object not callable
@atoparis4 жыл бұрын
oh I see my error... I had a button named butt_click later in the code... fixed... leaving the comment in case it helps anyone
@Codemycom4 жыл бұрын
@@atoparis Also, you can't padx and pady in the same place you defined the button.
@khizaridrees17584 жыл бұрын
Does the Capital L of lambda executed by your interpreter
@Codemycom4 жыл бұрын
No, it's a lowercase l not capital L
@crossfarm41464 жыл бұрын
can you quickly explain a little more what e.insert(0,number) requires the 0? is it a boolean value of some sort?
@Codemycom4 жыл бұрын
think of a python list...they are indexed...the first index number is 0. So we want to delete from zero to some number in the box.
@2noiembrie83 Жыл бұрын
For python 3.10, with pycharm, in Ubuntu, it's lambda instead of Lambda.
@Codemycom Жыл бұрын
it's lowercase in the video too. I know it looks uppercase, but that's lower.
@NotNormalDude-c1r2 ай бұрын
6:55 the grid thing on my code does not work
@ammall47229 күн бұрын
Same, did you figure it out?
@leannebourque4 жыл бұрын
when i execute it it says: ModuleNotFoundError: No module named 'tkinker'
@leannebourque4 жыл бұрын
Nevermind, i spelled it wrong, lol
@Codemycom4 жыл бұрын
@@leannebourque was just gonna say that lol
@anti.com_john4 жыл бұрын
from tkinter import * ^^^ Use this
@sourabhdeshpande21124 жыл бұрын
in before lecture after button defining we put it button.pack() why it is not put in this lecture
@Codemycom4 жыл бұрын
In this video we're using the .grid() system instead of .pack() grid is used when you need more precision placing your widgets.
@ravinduabeygunasekara8335 жыл бұрын
what are the units of width and height that we define inside the 'root' function? Is it pixels?
@Codemycom5 жыл бұрын
basically, yes
@program_brain4 жыл бұрын
What is meaning for lambda? Why we have to use it here sir? I am beginner for python...
@Codemycom4 жыл бұрын
tkinter won’t allow you to pass parameters to functions with commands unless you use a lambda
@njbtechs3 жыл бұрын
Please show us how to the entry widget bigger because it's too small
@Codemycom3 жыл бұрын
I do in the playlist already
@gustavbrolin6234 жыл бұрын
How did you open your program?
@Codemycom4 жыл бұрын
What do you mean? Open what?
@bb-ur2dk4 жыл бұрын
we are using padx= 50 or 60 some number what is the number i mean units 50mm of 50 spaces
@Codemycom4 жыл бұрын
Pixels
@developershub43394 жыл бұрын
how do you save the calculator built as an app.
@Codemycom4 жыл бұрын
I have a video on making exe files in the playlist
@akramelomrani87284 жыл бұрын
for those who have END is not defined replace it with 'end'
@Codemycom4 жыл бұрын
ok
@dumidupramith38815 жыл бұрын
good
@Codemycom5 жыл бұрын
Thanks
@yeuduongtamhuong Жыл бұрын
width and padx button, how different?
@Codemycom Жыл бұрын
one changes the width, and the other adds padding
@nientranai16692 жыл бұрын
how do you know to set the padx of "=" is 91 ???
@Codemycom2 жыл бұрын
Trial and error
@nathaliequispedextre52222 жыл бұрын
How’s it going?
@Codemycom2 жыл бұрын
It's going
@gpecs Жыл бұрын
why is tkinter gui not loading automatically why do i need to re-run it everytime i make changes.
@Codemycom Жыл бұрын
that's how all coding works
@yuvithegreat38784 жыл бұрын
I am using .place() to place the entry and buttons but it is END is not defined. Can u help Me?
@Codemycom4 жыл бұрын
I never use place
@yuvithegreat38784 жыл бұрын
@@Codemycom Ok. Il try to use .grid() method.
@Codemycom4 жыл бұрын
@@yuvithegreat3878 cool
@Harish-ou4dy5 жыл бұрын
in my computer Lambda gave syntax error, lambda with small l works though
@Codemycom5 жыл бұрын
Yeah, it's never supposed to be capital L in lambda. I do lowercase in the video.
@ichabodsescape18854 жыл бұрын
@@Codemycom It got me too the video looks like upper case L
@Codemycom4 жыл бұрын
@@ichabodsescape1885 Yeah, I hate that sublime does that
@KodiLearn4 жыл бұрын
Use PyCharm. 😀
@shauryagoyal9115 жыл бұрын
i am getting this error Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\GEETIKA\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1705, in __call__ return self.func(*args) File "D:\tkinter\Project 1 - Calculator.py", line 38, in button_8 = Button(root, text = "8", padx=40, pady=20, command = lambda: button_click(8)) TypeError: button_click() takes 0 positional arguments but 1 was given pls tell
@Codemycom5 жыл бұрын
You're passing 8 into your button_click function. Does your button_click function code accept arguments?
@mindset8734 жыл бұрын
How can I subscribe only 27 $ to be accessible to all online courses. Please show me how. I visited the site but did not see it in front of computer screen.
@Codemycom4 жыл бұрын
codemy.com/membership-account/membership-checkout/?level=1 Add the coupon code and click the apply button
@Samuel-yh5lh3 жыл бұрын
after adding the columnspan of the clear and equals button the 0 button didnt show
@shaunakn58814 жыл бұрын
what does lambda do?
@Codemycom4 жыл бұрын
lets you pass arguments thru a function
@shaunakn58814 жыл бұрын
@@Codemycom ok sir thanks tkinter fascinates me!
@themeow61904 жыл бұрын
hey, for some reason when i try to do the e.get, it says there is no attribute called get, can you plez help me
@zeyadabbood84014 жыл бұрын
do the grid in a new line and it will solve the problem. for example: e = Entry(root) e.grid(row=0, column=0) instead of e = Entry (root).grid(row=0, column=0)
@fisherman23gp3 жыл бұрын
@@zeyadabbood8401 Bless you
@RATANAGARWALITINFORMER4 жыл бұрын
v helpping
@МаликаШангитова8 ай бұрын
Hi, I have SyntaxError: positional argument follows keyword argument. why
@Codemycom8 ай бұрын
Because you typed the code wrong... compare it to the video to discover what you did differently.
@21no.8john9 Жыл бұрын
i wonder about lambda function , i never see to use function outside and use inside lambda , can anyone tell me how it work
@Codemycom Жыл бұрын
Sorry, I don't know what you're asking
@21no.8john9 Жыл бұрын
@@Codemycom sorry it's not clear I just beginner I always use lambda like this x = lambda a: a + 10 print(x(5)) And I see you take the function and use inside lambda
I've done the code the same as you have but whenever i click on a number button it says "TypeError: button_click() takes 0 positional argument but 1 was given" I have no idea what this means please help o_o
@Codemycom4 жыл бұрын
then you haven't done the code the same as me. Check for typos...
@mrawesome77393 жыл бұрын
When you originally defined button click, you probably didn't put anything between the parenthesis. The correct code should be def button_click(number):
@adebolaokanlawonsaseyi66554 жыл бұрын
Hello, how do i increase the height of the calculator screen. It seems i can only adjust the width?. I tried increasing the height and got the following error: tkinter.TclError: unknown option "-height"
@Codemycom4 жыл бұрын
Do you mean the entry box? You increase the font size: font=("Helvetica", 20)
@adebolaokanlawonsaseyi66554 жыл бұрын
@@Codemycom yes entry box, would ("Arial" 20) also work?
@Codemycom4 жыл бұрын
@@adebolaokanlawonsaseyi6655 Try it and see. You could have just tried it faster than it took to ask me.
@adebolaokanlawonsaseyi66554 жыл бұрын
@@Codemycom Thank you, it worked.
@Codemycom4 жыл бұрын
@@adebolaokanlawonsaseyi6655 sweet
@deepanshumohan77774 жыл бұрын
I am facing issue while entering a new number with result already present in the input box (concatenation issue). How to resolve it?
@Codemycom4 жыл бұрын
Without knowing what you are doing or what your code is, I can't guess.
@deepanshumohan77774 жыл бұрын
@@Codemycom I am working on Simple calculator. Whenever I type a new number, it gets concatenated with the previous result instead of clearing it.
@Codemycom4 жыл бұрын
@@deepanshumohan7777 My answer to you doesn't change...
@fonzyurriquia86404 жыл бұрын
i use the "lambda" and when i run it, the terminal says "Syntax Error: Invalid Syntax". What do i need to do?