The arrow keys were not being correctly detected in the Qt4 backend of
the matplotlib gui code, so I went in and hooked up keycodes for them.
I haven't submitted patches before, but I thought this was worth passing
on, so I have attached it. Is this something worth submitting? How
would I go about doing that?
Tom
--- backend_qt4.py 2011-04-11 11:37:21.200228001 -0400
+++ /home/tdimiduk/download/matplotlib/lib/matplotlib/backends/backend_qt4.py
2011-04-11 11:44:46.444477000 -0400
@@ -126,11 +126,7 @@
keyvald = { QtCore.Qt.Key_Control : 'control',
QtCore.Qt.Key_Shift : 'shift',
QtCore.Qt.Key_Alt : 'alt',
- QtCore.Qt.Key_Return : 'enter',
- QtCore.Qt.Key_Left : 'left',
- QtCore.Qt.Key_Right : 'right',
- QtCore.Qt.Key_Up : 'up',
- QtCore.Qt.Key_Down : 'down'
+ QtCore.Qt.Key_Return : 'enter'
}
# left 1, middle 2, right 3
buttond = {1:1, 2:3, 4:2}
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users