Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to fake a gtk.RadioToolButton group where you can set all buttons inactive
# PyGTK doesn't let you set_active(False) on all radio buttons.
# You can work around that by adding a button to the group which will never
# be made visible to the user. (Don't add it to any window)
self.zoom_100 = self.wTree.get_widget("zoom_100")
self.zoom_fit = self.wTree.get_widget("zoom_fit")
self.zoom_manual = gtk.RadioToolButton(self.zoom_100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment