Python Forum
[Tkinter] Entry returns NONE
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Entry returns NONE
#3
If you change your print line to
print(straat2.get())
you will get the Straat2, which is already known.

I am guessing you are trying to have a distance calculator to determine the distance between the 2 location addresses selected?
If this is true then you need a database with the distance information so you can query and populate your widget with that data otherwise you are only calling the data that you already have assigned to the widget, straat2.

No actual KM data is available to calculate the distance of travel between a users 2 city locations.
Reply


Messages In This Thread
Entry returns NONE - by mollerpunker - Dec-03-2020, 07:36 PM
RE: Entry returns NONE - by Gribouillis - Dec-04-2020, 07:37 AM
RE: Entry returns NONE - by DT2000 - Dec-06-2020, 06:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Test program returns int (I want int) and real one returns tuple (not wanted) chesschaser 16 5,176 Mar-26-2020, 11:26 AM
Last Post: chesschaser
  Transfer Toplevel window entry to root window entry with TKinter HBH 0 4,483 Jan-23-2020, 09:00 PM
Last Post: HBH
  [Tkinter] how to get the entry information using Entry.get() ? SamyPyth 2 3,513 Mar-18-2019, 05:36 PM
Last Post: woooee

Forum Jump:

User Panel Messages

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