Python Forum
pygtk2, how to disconnect all callback of widget or window event ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pygtk2, how to disconnect all callback of widget or window event ?
I doubt it. Each widget is a separate instance of it's class, which means each has it's own bindings
for events. It would be very unlikely that all instances would have a universal unset.
That being said, it would be possible (though difficult, and I think you'd have to write your own) to do so by walking the children of the main widget,
for example root in tkinter.

Removing all binding on a particular widget should be easy, just search for and remove all bind and command statements.

But first, please provide enough information to properly answer the question.
Since there at least 4 relatively common graphics packages in use, it is necessary to know what you are using.

Messages In This Thread
RE: pygtk2, how to disconnect all callback of widget or window event ? - by Larz60+ - Feb-19-2017, 11:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] What can the event.widget reference be used for? Knickers 4 266 Aug-26-2021, 02:17 PM
Last Post: Knickers
  [Tkinter] moniter which widget triggerd event catlessness 5 846 Mar-07-2020, 01:38 AM
Last Post: Larz60+
  [Tkinter] Mouse click event not working on multiple tkinter window evrydaywannabe 2 1,801 Dec-16-2019, 04:47 AM
Last Post: woooee
  tkinter window and turtle window error 1885 3 3,072 Nov-02-2019, 12:18 PM
Last Post: 1885
  GUI freezes while executing a callback funtion when a button is pressed abi17124 5 3,684 Jul-10-2019, 12:48 AM
Last Post: FullOfHelp
  [matpltlib]Basic question about callback function schniefen 3 1,601 May-20-2019, 09:47 PM
Last Post: Yoriz
  Unable to return value from callback function of a button in Python Tkinter nilaybnrj 4 16,166 Aug-05-2018, 11:01 PM
Last Post: woooee
  Launch pdf and close on delete window event ashtona 6 2,877 Mar-22-2018, 03:04 PM
Last Post: ashtona
  PyGtk3, How to Create “title-changed” signal for Gtk.Window Widget? harun2525 2 4,150 May-01-2017, 07:59 AM
Last Post: harun2525
  update a variable in parent window after closing its toplevel window gray 5 5,532 Mar-20-2017, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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