analogdevicesinc / alice

Active Learning Interface for Circuits and Electronics
Other
16 stars 4 forks source link

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

Open kaamil1984 opened 4 years ago

kaamil1984 commented 4 years ago

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()
#