Python Forum
[Tkinter] Display IP address in listbox
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Display IP address in listbox
#3
(Oct-21-2020, 12:43 PM)deanhystad Wrote: It is printed to the console because you are calling print. And print does not return the socket name, it returns None. ADDR = (print(s.getsockname()[0])) sets ADDR = None, so you are adding None to your listbox, not the socket name.

Thank you! Managed to resolve the issue (Day 2 of Python so a lot to learn!). Appreciate your help
Reply


Messages In This Thread
Display IP address in listbox - by dominicrsa - Oct-21-2020, 12:37 PM
RE: Display IP address in listbox - by deanhystad - Oct-21-2020, 12:43 PM
RE: Display IP address in listbox - by dominicrsa - Oct-21-2020, 01:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Display and update the label text which display the serial value jenkins43 5 8,989 Feb-04-2019, 04:36 AM
Last Post: Larz60+
  Display more than one button in GUI to display MPU6000 Sensor readings barry76 4 3,834 Jan-05-2019, 01:48 PM
Last Post: wuf
  [Tkinter] THow to search a string in a file and display it in listbox by Tkinter mosavit 2 5,605 Jun-21-2017, 08:02 AM
Last Post: buran

Forum Jump:

User Panel Messages

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