Hi I am very very new at it. I have a code in python for a round robin tournament. I need to connect it to thinker. can you help me? I will first need to write the names of plsyers which will then give me (lenplayers) . then I can run the python code.
Thanks for this video, it solved a problem for me (see fun text), Just for fun: if you change "my_entry = Entry(root)" to "my_entry = Entry(root, text='Test')" then typing in one box will fill all the other boxes at the same time :)
Dude im from México and i always see your videos when i have a question with tkinter, and always you save my life with my homeworks, thanks and good luck.
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My RUclips 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
Finally! I'm trying to display 16 channels of soil humidity, changing the color of the box to indicate the ones that need attention, and code was turning into an unreadable novel. A couple well documented loops later and my code is clean, readable, and functional. Thanks!
thank you sooo much man. I've been given an assignment to complete in one week where i have to make a working chessboard using tkinter and an OOP approach and i have no previous experience with either of the two . I was about to be stuck on this for like 5 hours if i didn't find this video.
Hello, do i need the same way to get the values of checkboxes? Just append the values into a values list? Or do i need to append the checkboxes to a list?
hello sir I am your big fun I learned coding from you your channel helped me a lot please make a playlist on OOP with tkinter I need this a lot I can't find good vidoes
Thank you very much for this video. If I my_entry.grid_remove() at the end and I want to recall the my_entry again, how can I do that? (my_entry.grid() is not working) Thank you so far for this video i liked it very much!
Sort of what I wanted but not quite. I want 4 entry boxes on a row with a checkbutton on the row that enables/disables the entry boxes, which I've successfully done for a single row, but failed to create a loop method to replicate the dozen or so rows of the same that I want. My main stumbling block is the variable that enables only its associated row. A final 'ADD' button will get all the data from all ENABLED entry boxes, ignoring disabled ones, into a global list, along with a unique header ID (Other frames will have other 'ADD' buttons to add to the global list, which will later be processed to make a final output file.
What a helpful video! Thank you! I have one question about the loops though. I understand the x and y loops create the rows and columns of boxes. But I'm confused about append... why does the "append" work all the time? In my mind it would ONLY append when creating the boxes. This is bothering me a bit. Does the append function basically tell the computer to "append all the time no matter what"? Thanks!
Hi Brian! So here's the best way that I can explain it. Originally, you have an empty list called my_entries. This list will eventually contain a list of Entry widgets after the for loops run. During the for loop, an Entry widget is created, and then added to the my_entries list via the .append() method. Once the for loop has completed and each widget has been displayed on the screen via the .grid() method, you can enter values into the widgets. When you click my_button, the something() function runs. Using the .get() method, you are able to display each value that was in the Entry widgets in my_label (a really big label). You are correct in thinking that the .append() method only appends the list when creating the widgets. The list is just a list of Entry widgets and an easy way to reference each using their index. Hopefully this helps!
I always had a doubt about how to create multiple buttons or entry boxes etc. Now it is cleared, Thak you sir. Is there a way to disable the string entry into the entrybox such as typing alphabets or words from the keyboard and to allow only number entry? If we can do that please tell me sir. Thank you.
@@Codemycom thanks for your fast reply. :) I watched your video #121 of this playlist but there for selecting and updating the treeview data you just called the entry fields one by one. How could this be done by loop? :) Would be so nice to receive an answer. Great job!
@@fighting6320 I mean, just use a loop however you want...if you know how to update treeview for one thing, you know how to update it using a loop...just use the loop in the normal way you use any loop...
hi, i know maybe it's a bit late for this comment, anyway, i was doing a job with python and i recreated more or less the same situation as you, with only the labels that through buttons change their text, but all the buttons affect only one label and I wanted to ask you how can I fix?
@@Codemycom I thought that but I cant get the text entry converted to a string. I'm doing the obvious things (int()) but cant get it to convert so that I can add them.
Hi, Nice video as always. My case is a bit different. I would like to create a lap tracker calculator. One label: Enter lap #{lap_number}. Four buttons: Next lap, Calculate, Reset, Quit. Every time I click Next Lap button, the Label updates with a new lap number, the entry field cleans and the lap list appends the value inputted (the order here may be different. Calculate, would give me in a text box the best, worst and average lap time. Reset button would clean the textbox and the lap time list. In this case I am having a bit of trouble with how deal with the first part (the Next button). Any help would be appretiated. Cheers
Couple questions: 1. Whenever I submit my text, all my entry boxes get all scattered. How do I prevent this? And no Im not copying yours, its my own work. 2. How would I make it so the text that appears is going into a different word box that you can edit, copy and paste it?
@@Codemycom I dont suppose there's a way you could see my code... But is there an answer to my second question cause that ones had me stumped for days now? Is it impossible?
Great video! I`m wandering if you have a solution for the problem: If I`m copying the data from a excel file (as example 2x rows and 2x columns, or more) and paste them in a tkinter table interface, everything will be pasted in a single entry. The excel cells will not be spread in tkinter entries (ex: excel A1, A2, B1, B2 are going in the same entry and the point is to make them go in different entries: A1 cell data to be paste in mouse selected row * col; A2 cell data to be paste in mouse selected row + 1 * col + 1; B1 on row + 2 * col + 1 and B2 on row + 2 * col + 2 etc.).
the loop only ever places one widget in parent element for me, then stops and exits like everything is fine. I'm using customtkinter and trying to add multiple buttons in scrollableFrame
Hello sir, I wrote a piece of code where it just, for now, displays a label and an entry box beside it, like in database thing but now when I do the for loop thing, it is just getting overlapped..pls see the code for x in range(1,3): for y in range(5): if y==0 and x==2: entry_box=Entry(root,font=("Helvetica",15)) entry_box.grid(row=y,column=x,padx=5,pady=3) break else: entry_box=Entry(root,font=("Helvetica",15)) entry_box.grid(row=y,padx=5,pady=3) label_name=Label(root,text="Name:",font=("Helvetica",15)) label_name.grid(row=0,column=0) P.S I didn't put all labels coz, don't wanna make it big...just for u to see and get the idea I kept that part, sir.
@Aneesh Malapaka, Not sure what you want to do but you forgot to add column in the entry_box.grid of the else statement. It should be 'entry_box.grid(row=y, column=x, padx=5, pady=3).
When I ask the user to input the number of entry boxes he wants in my little program. The number of entry boxes only increases but doesn't reduce. For example, when the user inputs 5, 5 entry boxes are created but when the user then inputs 3, 5 entry boxes still appear on the window instead of 3. But when the user inputs 7, then 7 entry boxes would now be created. I really need help on this.
Can u make a video about how to add scrollbar to frames..plz its very usefull in many projects...for many one..and no one did video about it ...U plz do it soon plzz..
I am trying to create multiple entries but in a form of an array. So I created a list containing 81 entries in the form of 9*9 array. But I am not able to use the .get() function when referencing to an entry. Where could I be going wrong?
Hi..I am creating an app to process the importing CSV into device configurations. I want to host a template format CSV to bind with a button to download in python GUI Tkinter. How can we made it.. looking for some sample code. Kindly help
Dear sir, how do we write our variable to specific entry box in multi entry box created by you, for example how to write or insert value to row=1 and col=1 please help me I am searching for that
Sir, Can u tell me if i make a entry box by some name lets say ' e ' then if i write print(e) then its returning me .!entry And when i create a button to print print(e.get()) its returnin me nothing even i write something on entry box. In this video you used my_entries as a list. But why? What its returning in the list? Actually i am confused what entrybox is returning. Can you help me?
e.get() should return something if there's something there. You must have had a typo or error in your code. With print(), it only prints with tkinter after you close your program.
@@Codemycom thanks for your answer. I create several entrys as you explain in this video. I want to show in these 20 entries the values of a list, or treeview, to be able to edit them, and then save them in my list or treeview. I am trying to combine gui # 117 with gui # 65. Is it posible? or do I need to do the entries one by one?
So here I understand that lists individual elements are actually stored in individual object but that objects are referenced by list name and index....am I right? I used a lot of brain power to understand or create this logic!
Can somebody tell me how to add a list of data to the treeview table once I press a button, Let's say I have a function that generates random phone numbers and once the phone numbers are generated I want them to be shown in a treeview table please guide me, its urgent
@@Codemycom THANK YOU! BUT I HAVE 1 PROBLEM THAT WHEN I USE "RADIO BUTTON" IT IS ALREADY FILL NOT LIKE YOU THAT WHEN WE CLICK IT GET FILL. GET TELL ME WHAT I DO?
Got what I have been looking for ages, Thanks Codemy.com Commenting for better reach. tkinter entry box get text,tkinter entry box example,tkinter entry box default value,python tkinter entry box,tkinter entry widget example,python tkinter excel,tkinter entry widget loop,tkinter entry loops,tkinter for loop,gui python,python tkinter,python gui,tkinter python,python grid system,grid system tkinter,build graphical user interfaces with python,how to build graphical user interfaces with python,tkinter entry widget,python tkinter gui
I think I am an idiot :/ I tried changing dinamically the labels with: exec("{} = {}".format("Label" + str(i), Label()), instead put them on a global list :D Thanks again ! :)
This video is literally what I've been looking for on the internet for ages! Thank you so much this is really gonna help with my project!
Glad it was helpful!
Spent numerous hours searching for this video. Gald I found one! Thank you codemy.
Glad I could help!
Hi I am very very new at it. I have a code in python for a round robin tournament. I need to connect it to thinker. can you help me? I will first need to write the names of plsyers which will then give me (lenplayers) . then I can run the python code.
Thanks for this video, it solved a problem for me (see fun text),
Just for fun:
if you change "my_entry = Entry(root)" to "my_entry = Entry(root, text='Test')"
then typing in one box will fill all the other boxes at the same time :)
Dude im from México and i always see your videos when i have a question with tkinter, and always you save my life with my homeworks, thanks and good luck.
Glad to hear it!
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My RUclips 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
Finally! I'm trying to display 16 channels of soil humidity, changing the color of the box to indicate the ones that need attention, and code was turning into an unreadable novel. A couple well documented loops later and my code is clean, readable, and functional. Thanks!
Glad to hear it!
Dear John, How do you pass in the textvariables in these multiple entry widgets
this is exactly what I demand. honor the vloger.
Thanks
Sir, Only because of you I could able to finish all my projects. Thanks alot
Awesome! Thanks for saying that, I'm glad I could help!
thank you sooo much man. I've been given an assignment to complete in one week where i have to make a working chessboard using tkinter and an OOP approach and i have no previous experience with either of the two . I was about to be stuck on this for like 5 hours if i didn't find this video.
Glad I could help!
Hello, do i need the same way to get the values of checkboxes? Just append the values into a values list? Or do i need to append the checkboxes to a list?
Thanks so much for saving me so much time. I had been searching for this information for so long.
Glad to hear it!
This video is very very good. ii eally like the step by step line explanation.
Glad you liked it!
It was soooooooooooo much helpful for me
And I have been looking it from weeks
Glad it was helpful!
Great work John
Thanks!
Thank you. I am trying to update the my_entry itself as opposed to retrieving the text in the entry. How can I do this in your example?
I have lots of videos teaching entry stuff on the channel
hello sir I am your big fun I learned coding from you your channel helped me a lot
please make a playlist on OOP with tkinter I need this a lot I can't find good vidoes
Thank you very much for this video. If I my_entry.grid_remove() at the end and I want to recall the my_entry again, how can I do that? (my_entry.grid() is not working) Thank you so far for this video i liked it very much!
Very good explanation and demonstration
Thanks!
Exactly what i was looking for, thank you John!
Awesome
What are you clicking to jump from one entry box to the other?
I'm guessing the Tab button!
Sort of what I wanted but not quite. I want 4 entry boxes on a row with a checkbutton on the row that enables/disables the entry boxes, which I've successfully done for a single row, but failed to create a loop method to replicate the dozen or so rows of the same that I want. My main stumbling block is the variable that enables only its associated row. A final 'ADD' button will get all the data from all ENABLED entry boxes, ignoring disabled ones, into a global list, along with a unique header ID (Other frames will have other 'ADD' buttons to add to the global list, which will later be processed to make a final output file.
What a helpful video! Thank you! I have one question about the loops though. I understand the x and y loops create the rows and columns of boxes. But I'm confused about append... why does the "append" work all the time? In my mind it would ONLY append when creating the boxes. This is bothering me a bit. Does the append function basically tell the computer to "append all the time no matter what"? Thanks!
Hi Brian!
So here's the best way that I can explain it. Originally, you have an empty list called my_entries. This list will eventually contain a list of Entry widgets after the for loops run. During the for loop, an Entry widget is created, and then added to the my_entries list via the .append() method. Once the for loop has completed and each widget has been displayed on the screen via the .grid() method, you can enter values into the widgets.
When you click my_button, the something() function runs. Using the .get() method, you are able to display each value that was in the Entry widgets in my_label (a really big label).
You are correct in thinking that the .append() method only appends the list when creating the widgets. The list is just a list of Entry widgets and an easy way to reference each using their index.
Hopefully this helps!
is there any method to destroy those entry boxes created from a For loop? I currently use .destroy() but that only destroys the last one.
I always had a doubt about how to create multiple buttons or entry boxes etc. Now it is cleared, Thak you sir. Is there a way to disable the string entry into the entrybox such as typing alphabets or words from the keyboard and to allow only number entry? If we can do that please tell me sir. Thank you.
Amazing video! Is there any way to select and update the treeview dynamically with a for loop?
Sure, I'm sure I have videos on that somewhere on the playlist
@@Codemycom thanks for your fast reply. :) I watched your video #121 of this playlist but there for selecting and updating the treeview data you just called the entry fields one by one. How could this be done by loop? :) Would be so nice to receive an answer. Great job!
@@fighting6320 I mean, just use a loop however you want...if you know how to update treeview for one thing, you know how to update it using a loop...just use the loop in the normal way you use any loop...
@@Codemycom yeah you are right. Maybe I have to understand how loops are really working in the first place... Thanks
@@fighting6320 sounds like it.. :-)
hi, i know maybe it's a bit late for this comment, anyway, i was doing a job with python and i recreated more or less the same situation as you, with only the labels that through buttons change their text, but all the buttons affect only one label and I wanted to ask you how can I fix?
Excellent tutorial - any ideas of how this could be extended to include row and column totals?
Sure...you have all you need to do that already. Just add them up.
@@Codemycom I thought that but I cant get the text entry converted to a string. I'm doing the obvious things (int()) but cant get it to convert so that I can add them.
John, thanks for bouncing it back to me to sort myself - I got it sorted and enjoyed the process. Your tutorials have been great!
Hello, what if we want to trace the value modified outside for loop any time while running the program without button widget??
Thanks man ... but, how can I move de curso up, down, left, right on this entries?
Hi,
Nice video as always. My case is a bit different. I would like to create a lap tracker calculator. One label: Enter lap #{lap_number}. Four buttons: Next lap, Calculate, Reset, Quit.
Every time I click Next Lap button, the Label updates with a new lap number, the entry field cleans and the lap list appends the value inputted (the order here may be different. Calculate, would give me in a text box the best, worst and average lap time. Reset button would clean the textbox and the lap time list. In this case I am having a bit of trouble with how deal with the first part (the Next button). Any help would be appretiated.
Cheers
Хорошее и понятное видео. Спасибо.
Thanks!
feed the algorithm! great vid
Can you please make a video with multiple functions defined and then calling the local variables of function at the end or in other function please?
Thanks a million for this video. It's so helpful. Can you please do a video on text widget?
Sure thing! Soon...
how to remove a single row from those entries? Please!
How can we make it into a dialog box and where are its outputs stored?
Please How can I move from an entry box to another by pressing enter ?
Couple questions:
1. Whenever I submit my text, all my entry boxes get all scattered. How do I prevent this? And no Im not copying yours, its my own work.
2. How would I make it so the text that appears is going into a different word box that you can edit, copy and paste it?
Without seeing your code, I couldn't guess why it's doing that.
@@Codemycom I dont suppose there's a way you could see my code...
But is there an answer to my second question cause that ones had me stumped for days now? Is it impossible?
Great video! I`m wandering if you have a solution for the problem: If I`m copying the data from a excel file (as example 2x rows and 2x columns, or more) and paste them in a tkinter table interface, everything will be pasted in a single entry. The excel cells will not be spread in tkinter entries (ex: excel A1, A2, B1, B2 are going in the same entry and the point is to make them go in different entries: A1 cell data to be paste in mouse selected row * col; A2 cell data to be paste in mouse selected row + 1 * col + 1; B1 on row + 2 * col + 1 and B2 on row + 2 * col + 2 etc.).
I came across the following 3rd party tk widget a few months ago, it may be what you're looking for:
github.com/ragardner/tksheet
And how do u do it with pack
Greatest video.....
the loop only ever places one widget in parent element for me, then stops and exits like everything is fine. I'm using customtkinter and trying to add multiple buttons in scrollableFrame
Check your code, I suspect there's an error or typo
Thanks a billion for this video. It's so helpful.!!!!!!!!!!!!!!!!!!!!!!!!
Glad it helped!
Which is the best reference book to learn TKinter??
I don't know of any books...I plan to write one myself
which is best tk inter or pyqt for gui
It's a personal preference
case request : multiple row dependent combobox --> please~~
Thanks for creating this!
Thanks for watching it!
Hello, I'm new to programming, how can you advise me🙏🏿. From Tanzania 🇹🇿
Watch my videos lol
Hello sir, I wrote a piece of code where it just, for now, displays a label and an entry box beside it, like in database thing but now when I do the for loop thing, it is just getting overlapped..pls see the code
for x in range(1,3):
for y in range(5):
if y==0 and x==2:
entry_box=Entry(root,font=("Helvetica",15))
entry_box.grid(row=y,column=x,padx=5,pady=3)
break
else:
entry_box=Entry(root,font=("Helvetica",15))
entry_box.grid(row=y,padx=5,pady=3)
label_name=Label(root,text="Name:",font=("Helvetica",15))
label_name.grid(row=0,column=0)
P.S I didn't put all labels coz, don't wanna make it big...just for u to see and get the idea I kept that part, sir.
@Aneesh Malapaka, Not sure what you want to do but you forgot to add column in the entry_box.grid of the else statement. It should be 'entry_box.grid(row=y, column=x, padx=5, pady=3).
@@copham326 yeah i got it, i missed the column box..i figured it after posting comment..and forgot to delete it😂..thanks anyway
When I ask the user to input the number of entry boxes he wants in my little program. The number of entry boxes only increases but doesn't reduce. For example, when the user inputs 5, 5 entry boxes are created but when the user then inputs 3, 5 entry boxes still appear on the window instead of 3. But when the user inputs 7, then 7 entry boxes would now be created. I really need help on this.
destroy the previous boxes before creating the new ones
I have a project in which I create multiple entries and delete them. So how can we delete all those entries at once..?
write a function to delete them all
Can u make a video about how to add scrollbar to frames..plz its very usefull in many projects...for many one..and no one did video about it
...U plz do it soon plzz..
Might do that in the future
@@Codemycom plz make it soon...plz..
I am trying to create multiple entries but in a form of an array. So I created a list containing 81 entries in the form of 9*9 array. But I am not able to use the .get() function when referencing to an entry. Where could I be going wrong?
Hi Rushikesh, what is the error you are getting?
Hi..I am creating an app to process the importing CSV into device configurations. I want to host a template format CSV to bind with a button to download in python GUI Tkinter. How can we made it.. looking for some sample code. Kindly help
Sorry don't know what you mean.
Dear sir, how do we write our variable to specific entry box in multi entry box created by you, for example how to write or insert value to row=1 and col=1 please help me I am searching for that
I don't know that you can do that. Entry boxes don''t seem to be multi-line
Sir, Can u tell me if i make a entry box by some name lets say ' e ' then if i write print(e) then its returning me .!entry
And when i create a button to print print(e.get()) its returnin me nothing even i write something on entry box.
In this video you used my_entries as a list. But why? What its returning in the list?
Actually i am confused what entrybox is returning. Can you help me?
e.get() should return something if there's something there. You must have had a typo or error in your code. With print(), it only prints with tkinter after you close your program.
@@Codemycom actually i was using 5x5 entry box by using 2 for loop and then by typing print(e.get()) its jst returning me 25 new line in output.
Can you make a video in which we can input No. of Entry Boxes and then that no. of Entry Boxes created?
sure
i could use this at work or on an arduino app
Nice
How could all the entrys be filled with a for?
is
possible?
So, not sure what you're asking
@@Codemycom thanks for your answer.
I create several entrys as you explain in this video. I want to show in these 20 entries the values of a list, or treeview, to be able to edit them, and then save them in my list or treeview. I am trying to combine gui # 117 with gui # 65. Is it posible? or do I need to do the entries one by one?
When i write entry word it shows error please help me
What did you do differently from the video?
Sir, How to change buttons shape ?
Not really easily done
So here I understand that lists individual elements are actually stored in individual object but that objects are referenced by list name and index....am I right? I used a lot of brain power to understand or create this logic!
It's what list are....I learn linked list in c and all elements are stored individually and are connected to each other.....
Ohh I am actually using my brain too much😩
Sorry, no clue what you're talking about...a list is a list...the individual items of the list can be referenced by using their item number...
Ya I understand but this my theory 😁
Thanks a lot you help me really 🙏
Happy to hear it!
Can somebody tell me how to add a list of data to the treeview table once I press a button, Let's say I have a function that generates random phone numbers and once the phone numbers are generated I want them to be shown in a treeview table please guide me, its urgent
I have videos on that in the playlist...more than a few
@@Codemycom please please can you guide me to it with a link please.
@@abdullhaseeb4157 Check the tkinter playlist on my channel and look for the videos about treeview, it's the last 10-15 on the list.
You are great!
Thanks!
CORDMY.COM IS NOT OPENING
that's not my website, you want codemy.com
@@Codemycom OH SORRY! I TYPED WRONG
@@Codemycom YES! IT'S WORKING
@@mediislive :-)
@@Codemycom THANK YOU! BUT I HAVE 1 PROBLEM THAT WHEN I USE "RADIO BUTTON" IT IS ALREADY FILL NOT LIKE YOU THAT WHEN WE CLICK IT GET FILL. GET TELL ME WHAT I DO?
THANK YOU!!
Welcome!!
you are a god
Thanks :-p
Got what I have been looking for ages, Thanks Codemy.com
Commenting for better reach.
tkinter entry box get text,tkinter entry box example,tkinter entry box default value,python tkinter entry box,tkinter entry widget example,python tkinter excel,tkinter entry widget loop,tkinter entry loops,tkinter for loop,gui python,python tkinter,python gui,tkinter python,python grid system,grid system tkinter,build graphical user interfaces with python,how to build graphical user interfaces with python,tkinter entry widget,python tkinter gui
Thanks!!!
No problem!
it's great
Thanks!
I think I am an idiot :/
I tried changing dinamically the labels with: exec("{} = {}".format("Label" + str(i), Label()), instead put them on a global list :D
Thanks again ! :)
:-)
👌👌👌👌👌
Thanks!
Genial
thanks I think
Entry.insert(0, "Thanks Man")
Welcome!