Skip to content

Chart updating using keyboard input (Trading strategy "debug" mode) #197

Answered by highfestiva
KuSi833 asked this question in Q&A
Discussion options

You must be logged in to vote

Perhaps overriding fplt._key_pressed is a nice way to start? Perhaps implemented something like this:

    if ev.key() == QtCore.Qt.Key_Left:
        vb.pan_x(steps=-1)
    elif ev.key() == QtCore.Qt.Key_Right:
        vb.pan_x(steps=+1)

Lemmeknow if there are some bugs, don't think I ever tested the steps implementation (only used the percent parameter).

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by KuSi833
Comment options

You must be logged in to vote
2 replies
@highfestiva
Comment options

@KuSi833
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants