Skip to content

Commit

Permalink
Set "confirm button" as default button, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDHabermehl authored Mar 6, 2018
1 parent 0e23a3d commit a00055e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion board/fischertechnik/TXT/rootfs/opt/ftc/TouchStyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# additional functionality to communicate with the app launcher and
# the like

TouchStyle_version = 1.6
TouchStyle_version = 1.7

import struct, os, platform, socket
from PyQt4.QtCore import *
Expand Down Expand Up @@ -142,6 +142,7 @@ def addConfirm(self):
self.confbut = QPushButton(self)
self.confbut.setObjectName("confirmbut")
self.confbut.move(8,self.height()/2-20)
self.confbut.setDefault(True)
self.confbut.clicked.connect(self.parent.close)
return self.confbut

Expand Down

0 comments on commit a00055e

Please sign in to comment.