user1576720
user1576720

Reputation: 115

How do I manually trigger an event with PyGTK event handler?

after connecting an event to a function, I would like a way to trigger the event manually (without the event actually happening). I'm looking for something like jQuery's .trigger() function.

Thanks

Upvotes: 3

Views: 1801

Answers (1)

user4815162342
user4815162342

Reputation: 154876

Use the emit method on the widget, e.g. button.emit("clicked").

Upvotes: 6

Related Questions