Python Forum
[Tkinter] getting Entry text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] getting Entry text
#5
I believe print can be used as a function, but I think you were having the same issue I was having. At the time you click the button, the print function runs, but the get() function has not taken in the entry yet cause you are calling it at the same time. So you are getting a null value. So by separating out the get function, you are getting the information from the entry and then printing it.
Reply


Messages In This Thread
getting Entry text - by Stauricus - May-09-2019, 04:24 PM
RE: getting Entry text - by Orimura_Sandy - May-09-2019, 04:31 PM
RE: getting Entry text - by Yoriz - May-09-2019, 04:32 PM
RE: getting Entry text - by Stauricus - May-10-2019, 05:32 PM
RE: getting Entry text - by swanysto - May-10-2019, 08:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get selected text inside an Entry Jerdup 0 2,518 Aug-20-2020, 12:42 PM
Last Post: Jerdup
  [Tkinter] Get the last entry in my text widget Pedroski55 3 6,514 Jul-13-2020, 10:34 PM
Last Post: Pedroski55
  [Tkinter] Get text entry in frame1, echo it in frame2 Pedroski55 8 4,074 Jul-10-2020, 11:51 PM
Last Post: Pedroski55
  [Tkinter] finding lines from a text entry Sutsro 2 1,974 May-04-2020, 09:19 AM
Last Post: Sutsro
  Transfer Toplevel window entry to root window entry with TKinter HBH 0 4,512 Jan-23-2020, 09:00 PM
Last Post: HBH
  [Tkinter] how to get the entry information using Entry.get() ? SamyPyth 2 3,541 Mar-18-2019, 05:36 PM
Last Post: woooee
  [WxPython] bind label and entry text with return key metulburr 1 3,311 Aug-14-2018, 10:02 PM
Last Post: metulburr
  [Tkinter] Hide text in entry box when i click on it. MeeranRizvi 1 11,161 Jan-25-2017, 10:38 AM
Last Post: MeeranRizvi
  [Tkinter] Entry widget : unable to get the text entered dlemper 2 18,320 Oct-11-2016, 12:32 AM
Last Post: dlemper

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020