You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cursor doesn't change on keypress (GTKAgg backend) #3447
When changing the tool mode via keyboard shortcut (for example 'o' to Zoom), the cursor doesn't change immediately. Instead, the mouse has to be moved for the cursor to change. This behavior occurs on the GTKAgg backend, not sure about any others.
This is probably related to the draw vs draw_idle issues. For the most part we try to let the gui-framework decide when to re-draw anything on the screen.
I suspect that we are not invalidating the right things when we change the cursor.
The problem is that in the toolbar the set_cursor method is called wihtin the mouse_move method.
This happens in all the backends that I tested (QT, GTK3, TK) but from the code I guess it happens everywhere.
Activity
kaufman commentedon Sep 1, 2014
The backends MacOSX and Qt4Agg also have this problem.
tacaswell commentedon Sep 1, 2014
This is probably related to the
drawvsdraw_idleissues. For the most part we try to let the gui-framework decide when to re-draw anything on the screen.I suspect that we are not invalidating the right things when we change the cursor.
fariza commentedon Sep 5, 2014
The problem is that in the toolbar the
set_cursormethod is called wihtin themouse_movemethod.This happens in all the backends that I tested (QT, GTK3, TK) but from the code I guess it happens everywhere.
I'll see what I can do to fix this.
fariza commentedon Sep 5, 2014
@tacaswell How do I know where the cursor is, if the event is a keystroke?
Edit.
Sorry, stupid question it's included in the event
fariza commentedon Sep 5, 2014
Done PR #3474
fariza commentedon Sep 9, 2014
@tacaswell please close