mousewheel scroll step now settable

size of mousewheel scroll step now settable

add _base_vals.mwscroll_step to data.

added [mwscroll_step] to  app.toml
This commit is contained in:
onyx-and-iris
2022-04-17 11:50:44 +01:00
parent 99275d1dd2
commit 000b18b6ec
6 changed files with 54 additions and 11 deletions

View File

@@ -73,10 +73,14 @@ class Channel(ttk.LabelFrame):
_base_vals.in_scale_button_1 = False
def _on_mousewheel(self, event):
if event.delta > 0:
self.gain.set(self.gain.get() + 3)
else:
self.gain.set(self.gain.get() - 3)
self.gain.set(
self.gain.get()
+ (
_base_vals.mwscroll_step
if event.delta > 0
else -_base_vals.mwscroll_step
)
)
if self.gain.get() > 12:
self.gain.set(12)
elif self.gain.get() < -60: