I've added 2 small QoLs for using the scroll wheel to change definitions:
if len(self.sources) > 1: to disable changing definition on scroll wheel where there is only 1 definition (currently it will wrap)
return statements after self.forward/back so that the wheel event wouldn't trigger an additional time - this would cause the next/previous definition to scroll a bit immediately after switching
I've added 2 small QoLs for using the scroll wheel to change definitions:
if len(self.sources) > 1:
to disable changing definition on scroll wheel where there is only 1 definition (currently it will wrap)return
statements after self.forward/back so that the wheel event wouldn't trigger an additional time - this would cause the next/previous definition to scroll a bit immediately after switching