How to use the pygubu.binding.remove_binding function in pygubu

To help you get started, we’ve selected a few pygubu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alejandroautalan / pygubu / pygubu / widgets / tkscrollbarhelper.py View on Github external
lambda event: BindManager.mousewheel_unbind(),
                                       add='+')
                    self._bindingids.append((cwidget, bid))
                for s in (self.vsb, self.hsb):
                    if s:
                        bid = s.bind('',
                                     lambda event, scrollbar=s: BindManager.mousewheel_bind(scrollbar),
                                     add='+')
                        self._bindingids.append((s, bid))
                        bid = s.bind('',
                                     lambda event: BindManager.mousewheel_unbind(),
                                     add='+')
                        self._bindingids.append((s, bid))
            else:
                for widget, bid in self._bindingids:
                    remove_binding(widget, bid)
github alejandroautalan / pygubu / pygubu / widgets / tkscrolledframe.py View on Github external
lambda event: BindManager.mousewheel_unbind(),
                                    add='+')
                    self._bindingids.append((self, bid))
                for s in (self.vsb, self.hsb):
                    if s:
                        bid = s.bind('',
                                     lambda event, scrollbar=s: BindManager.mousewheel_bind(scrollbar),
                                     add='+')
                        self._bindingids.append((s, bid))
                        bid = s.bind('',
                                     lambda event: BindManager.mousewheel_unbind(),
                                     add='+')
                        self._bindingids.append((s, bid))
            else:
                for widget, bid in self._bindingids:
                    remove_binding(widget, bid)