Rrriiiggghhhttt?? This is probably the 4th video series i have watched on how to use tkinter, each of them doing it in a slightly different way... 2 of them using the OOP method and i kinda dont like OOP, seems very convoluted. I absolutely love the "Better of the two programs" It makes sense to me, the others i just kinda coppied when they were doing and i didnt understand it fully... this, i still copied... but i strongly understand what the code is actually doing... which means i can apply what i have learned here, to my own projects. After watching just this ONE video, i now have a much better grasp on this and its definitely making more more confident in building my first actual (real world) program. JPJ, Cheers mate.
I'm working my way through your play-list and wishing I'd found it earlier. Excellent videos, well planned and structured and very professionally presented. Many thanks.
I'm beginner and I saw many ways to write with tkinter. That form is the simplest and useful. Without unnecessary classes and arguments to run the code and see the magic happens. Thank you for show how tkinter is easy.
thank you man! i needed that for my assignmetns. difference is that i needed to change label1 ito whatever is written in entry by clicking button. so i just din't inlcude label2 but still following your code and it worked thanks a lot for showing the ropes!!!!
Excuse me sir! You told that Entry widget is used for text input. so Is there any thing to get the float number as input from the user using widget in tkinter...
You can enter as text (numerals only and the decimal point). Then convert this string using the float() method. You will have to ensure that the user enters only numerals and one decimal point). Best wishes Phil
Here we assign the string and Hello to a variable then dump that into the label2. string_to_display="Hello " + name_of_user label_2["text"]=string_to_display Could we do this? label_2["text"]="Hello " + name_of_user
You should assign the result of processing to a variable then transfer the content of the variable to the GUI. This way the 'processing code' is 'not tied' to the GUI. So if you wish to change the GUI you do not have to alter the main processing code. So regard the GUI as a mechanism for data input from the user, store the data in variables, process the data that now resides in the variables and store the result of the processing in a variable. Then transfer the data from the variable holding the result to the GUI. Regards Phil
your videos are wonderful...i just live them just one suggestion: pls number the videos you have uploaded in the playlist(ex: #1,#2), it would be very helpful. thank you!!!!
Thank you for the positive feedback. I've organised all the videos in playlists on TH-cam. You may however find it better to look on the supporting website where I have inserted the videos. The videos appear in playlists and the videos are all numbered. The supporting website is www.PythonByteSize.com Best wishes Phil (John Philip Jones)
I am trying to get text from an entry then delete the entry button for esthetic reasons and continue using the data, but i am not able to do it. somelike Type Hello in the entry box and save it as a textvariable ...then save that to x like x=var1.get() .............. then after the entry widget is deleted by entry.destroy, .x is not equal to Hello but to an empty string..I have been at this for a whole day and i cannnot find out how to extract data from a widget entry, any thanks would be appreciated
Might suggest throwing up a link to this in github so others can potentially copy / paste or double check to see if they made any errors. Otherwise great work!
Hello Jeffrey, I am currently in the process of updating my website (www.PythonByteSize.com). I will upload the program files I use in the videos to this website. Unfortunately, this is likely to be a slow process as I tend to edit the programs and I will have to check that they still match the code in the videos before I upload the files. When I upload them I will put a link in the TH-cam description of each video. Glad you like the videos. Best wishes Phil
Thanks for the tutorial. I am facing below error while using .get() method. AttributeError: NoneType has no attribute ‘get’. Can you help me to solve this issue?
Can you send me the code? Contact me via my website contact page - see link below: www.pythonbytesize.com/contact.html Make sure you enter your email address accurately. Best wishes Phil
I copied and Sent the code . When I try to submit your web page it is not responding , not sure you received my code. If not can you please provide your email Id. I forward my code
Make sure that you enter something in all the entry boxes. In the comments section enter "help with code". I will then pick up your email address and email you.
There are a number of typos in your code e.g. tKinter should be tkinter (i.e. all lowercase). I have amended the code as below: from tkinter import * def showData(): data = entry1.get() print(data) root = Tk() label1 = Label(root, text = "enter") entry1 = Entry(root) label1.grid(row=0,column=0) entry1.grid(row=0,column=1) but1 = Button(root, text = "getdata", command =showData).grid(row = 1, column =1) root.mainloop() Regards Phil
You know, taking away the like dislike bar is sketchy. If you trust the content your posting I see no reason why you wouldn't have it. It's a bad look.
I think it does. When I click on a video and it doesn't have a like dislike bar my first instinct tells me the uploader removed it to hide the amount of dislikes. I'd probably be more likely to watch a video that I know has a good like to dislike ratio.
Finally found someone who knows his stuff and explains it clearly. Thanks!
Rrriiiggghhhttt?? This is probably the 4th video series i have watched on how to use tkinter, each of them doing it in a slightly different way... 2 of them using the OOP method and i kinda dont like OOP, seems very convoluted. I absolutely love the "Better of the two programs" It makes sense to me, the others i just kinda coppied when they were doing and i didnt understand it fully... this, i still copied... but i strongly understand what the code is actually doing... which means i can apply what i have learned here, to my own projects. After watching just this ONE video, i now have a much better grasp on this and its definitely making more more confident in building my first actual (real world) program. JPJ, Cheers mate.
The annotations are awesome! Love it!
I'm working my way through your play-list and wishing I'd found it earlier.
Excellent videos, well planned and structured and very professionally presented. Many thanks.
Thank you for your positive feedback. Best wishes Phil
I'm beginner and I saw many ways to write with tkinter. That form is the simplest and useful. Without unnecessary classes and arguments to run the code and see the magic happens. Thank you for show how tkinter is easy.
Very very well explained, finally understood!! You are awesome!!
Fred Smith has always been popular in test and demo programs. Like the idea of you showing different ways of assigning data to widgets.
You're the best python teacher on youtube.
Thank you for your generous comment.
Best wishes
Phil
Thanks a lot. I was looking for this from a long time.
THIS GUY IS SO GREAT!!
thank you man! i needed that for my assignmetns. difference is that i needed to change label1 ito whatever is written in entry by clicking button. so i just din't inlcude label2 but still following your code and it worked thanks a lot for showing the ropes!!!!
You're welcome. Best wishes Phil
👏 Excelente. Very good 👏
THANKS A LOT SIR. I UNDERSTOOD IT
Thanks Man! I appreciate it.
Excuse me sir! You told that Entry widget is used for text input. so Is there any thing to get the float number as input from the user using widget in tkinter...
You can enter as text (numerals only and the decimal point). Then convert this string using the float() method. You will have to ensure that the user enters only numerals and one decimal point). Best wishes Phil
I enjoyed the example at 5:25. Thanks
Here we assign the string and Hello to a variable then dump that into the label2.
string_to_display="Hello " + name_of_user
label_2["text"]=string_to_display
Could we do this?
label_2["text"]="Hello " + name_of_user
You should assign the result of processing to a variable then transfer the content of the variable to the GUI. This way the 'processing code' is 'not tied' to the GUI. So if you wish to change the GUI you do not have to alter the main processing code. So regard the GUI as a mechanism for data input from the user, store the data in variables, process the data that now resides in the variables and store the result of the processing in a variable. Then transfer the data from the variable holding the result to the GUI.
Regards
Phil
your videos are wonderful...i just live them
just one suggestion: pls number the videos you have uploaded in the playlist(ex: #1,#2), it would be very helpful.
thank you!!!!
Thank you for the positive feedback. I've organised all the videos in playlists on TH-cam. You may however find it better to look on the supporting website where I have inserted the videos. The videos appear in playlists and the videos are all numbered. The supporting website is
www.PythonByteSize.com
Best wishes
Phil
(John Philip Jones)
Crystal CLEAR :))
How to change border color of entry widget? And. how to put placeholder in entry widget ? And . how to padding left to the placeholder.
I will do video on this topic sometime soon. Best wishes Phil
Hello Thanks for the video it was really helpful but I have a problem how can I reach to you
Via my website contact page. See link below: www.pythonbytesize.com/contact.html
Best wishes Phil
I am trying to get text from an entry then delete the entry button for esthetic reasons and continue using the data, but i am not able to do it.
somelike Type Hello in the entry box and save it as a textvariable ...then save that to x like x=var1.get() .............. then after the entry widget is deleted by entry.destroy, .x is not equal to Hello but to an empty string..I have been at this for a whole day and i cannnot find out how to extract data from a widget entry, any thanks would be appreciated
Place the buttons using the grid method. Then use grid_remove() to temporarily remove the button. To permanently remove use grid_forget ().
you are a life saver..god bless u
Great Video series, thank you.
Nicely done. :)
Nice video.If you could provide the code this would be very helpful...trying to copy manually is very tedious ,Thanks John for the excellent vids
OK I will start to upload to website.
Best
Phil
Thanks John..appreciate.
Might suggest throwing up a link to this in github so others can potentially copy / paste or double check to see if they made any errors. Otherwise great work!
Hello Jeffrey,
I am currently in the process of updating my website (www.PythonByteSize.com). I will upload the program files I use in the videos to this website. Unfortunately, this is likely to be a slow process as I tend to edit the programs and I will have to check that they still match the code in the videos before I upload the files. When I upload them I will put a link in the TH-cam description of each video. Glad you like the videos.
Best wishes
Phil
Thanks for the tutorial. I am facing below error while using .get() method. AttributeError: NoneType has no attribute ‘get’. Can you help me to solve this issue?
Can you send me the code? Contact me via my website contact page - see link below:
www.pythonbytesize.com/contact.html
Make sure you enter your email address accurately.
Best wishes
Phil
I copied and Sent the code . When I try to submit your web page it is not responding , not sure you received my code. If not can you please provide your email Id. I forward my code
Make sure that you enter something in all the entry boxes. In the comments section enter "help with code". I will then pick up your email address and email you.
from tKinter import *
def showData():
Data = entry1.get()
Print(Data)
root = Tk()
Label1 = Label(root, text = ‘enter’).grid(row =0)
entry1 = Entry(root).grid(row =0, column = 1)
But1 = Button(root, text = ‘getdata’, command =showData).grid(row = 1, column =1)
root.mainloop()
Facing issue in this. Please mail me at mahe.jeyaraj@yahoo.com
There are a number of typos in your code e.g. tKinter should be tkinter (i.e. all lowercase). I have amended the code as below:
from tkinter import *
def showData():
data = entry1.get()
print(data)
root = Tk()
label1 = Label(root, text = "enter")
entry1 = Entry(root)
label1.grid(row=0,column=0)
entry1.grid(row=0,column=1)
but1 = Button(root, text = "getdata", command =showData).grid(row = 1, column =1)
root.mainloop()
Regards
Phil
great great great great great great great great great great
R u british
Yes. British and Welsh. Best wishes Phil
You know, taking away the like dislike bar is sketchy. If you trust the content your posting I see no reason why you wouldn't have it. It's a bad look.
It is to encourage more comments for research I am undertaking. Do you think it stops people viewing the videos?
Best wishes
Phil
I think it does. When I click on a video and it doesn't have a like dislike bar my first instinct tells me the uploader removed it to hide the amount of dislikes. I'd probably be more likely to watch a video that I know has a good like to dislike ratio.
Thank you for the feedback. When I log onto my PC I will start switching on the likes/dislike display option for each video.
Best wishes
Phil