Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set sample rate does nothing if you hit enter, but it should #6

Open
kaamil1984 opened this issue Feb 11, 2020 · 0 comments
Open

Set sample rate does nothing if you hit enter, but it should #6

kaamil1984 opened this issue Feb 11, 2020 · 0 comments

Comments

@kaamil1984
Copy link

kaamil1984 commented Feb 11, 2020

Is this a bug in key binding? When I hit enter - I'm getting error that it can't run SetSampleRate that accepts 0 arguments with 1 argument.

There is a line that binds key with function I guess (I'm not python guy).

BaseRateEntry.bind("<Return>", SetSampleRate)

I think it should be like this:

BaseRateEntry.bind("<Return>", onSrateEnter)

# ...
# ...
# and somewhere below onSrateScroll function:

def onSrateEnter(event):
    SetSampleRate()
#
@kaamil1984 kaamil1984 changed the title Set sample rate doesn't work if you hit enter Set sample rate does nothing if you hit enter, but it should Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant