Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)