Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter and lambda
#5
(Jan-18-2022, 04:18 PM)Yoriz Wrote: The lambda has been passed the return value of calling entry's get method so it will only ever contain that value which at that point will be empty as it has only just been created.
If you want to use lambda to get the value at the point of clicking the button you would need to call the get method.

Thank you Yoriz, that solved my problem.

(Jan-18-2022, 05:07 PM)menator01 Wrote: I didn't notice that you were using a function to call the register form so, here is a modified version example.

Thank you for your example! I will study your code.
Reply


Messages In This Thread
Tkinter and lambda - by Cristopher - Jan-18-2022, 03:54 PM
RE: Tkinter and lambda - by Yoriz - Jan-18-2022, 04:18 PM
RE: Tkinter and lambda - by menator01 - Jan-18-2022, 04:27 PM
RE: Tkinter and lambda - by menator01 - Jan-18-2022, 05:07 PM
RE: Tkinter and lambda - by Cristopher - Jan-18-2022, 05:47 PM

Forum Jump:

User Panel Messages

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