Python Forum
Class Struggle: Connecting a Method to an Outside Variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class Struggle: Connecting a Method to an Outside Variable
#2
(Jan-21-2018, 06:40 PM)vulpesVelox Wrote: I would like to somehow connect 'myVar' to 'button_1', 'button_2' and 'button_3' in the method shown below.
You want the bind() method:
myVar.bind('Button-1', myMethod)
Reply


Messages In This Thread
RE: Class Struggle: Connecting a Method to an Outside Variable - by Gribouillis - Jan-21-2018, 09:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium big struggle Troop 2 1,699 Apr-25-2020, 10:47 AM
Last Post: Troop

Forum Jump:

User Panel Messages

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