@@ -46,7 +46,7 @@ def __init__(self, parent):
4646 self .layout .addWidget (self .minusButton , 1 ,1 ,1 ,1 )
4747 self .minusButton .setEnabled (False )
4848 self .minusButton .clicked .connect (lambda : self .setCurrentDataIndex (self .currentDataIndex - 1 ))
49- QtWidgets .QShortcut (QtCore . Qt . Key_Left , self , lambda : self .setCurrentDataIndex (self .currentDataIndex - 1 ))
49+ QtWidgets .QShortcut (QtGui . QKeySequence ( "left" ) , self , lambda : self .setCurrentDataIndex (self .currentDataIndex - 1 ))
5050
5151 self .currentIndexLine = QtWidgets .QLineEdit (str (self .currentDataIndex ))
5252 self .currentIndexLine .setValidator (QtGui .QDoubleValidator ())
@@ -64,7 +64,7 @@ def __init__(self, parent):
6464 self .layout .addWidget (self .plusButton , 1 ,4 ,1 ,1 )
6565 self .plusButton .setEnabled (False )
6666 self .plusButton .clicked .connect (lambda : self .setCurrentDataIndex (self .currentDataIndex + 1 ))
67- QtWidgets .QShortcut (QtCore . Qt . Key_Right , self , lambda : self .setCurrentDataIndex (self .currentDataIndex + 1 ))
67+ QtWidgets .QShortcut (QtGui . QKeySequence ( "right" ) , self , lambda : self .setCurrentDataIndex (self .currentDataIndex + 1 ))
6868
6969 self .deleteButton = QtWidgets .QPushButton ('Delete entry' )
7070 self .deleteButton .setEnabled (False )
0 commit comments