Better signal for player name determination
This commit is contained in:
parent
113a0b6c4a
commit
a2172a444a
|
@ -334,7 +334,7 @@ class PlayerStartWindow(QtGui.QDialog):
|
||||||
|
|
||||||
edit = QtGui.QLineEdit(player.name, self)
|
edit = QtGui.QLineEdit(player.name, self)
|
||||||
edit.setStyleSheet("QLineEdit { font-size: 40px; }")
|
edit.setStyleSheet("QLineEdit { font-size: 40px; }")
|
||||||
edit.returnPressed.connect(lambda widget=edit, player=player: player.change_name(edit.text()))
|
edit.editingFinished.connect(lambda widget=edit, player=player: player.change_name(edit.text()))
|
||||||
self.playerGrid.addWidget(edit, row, 1)
|
self.playerGrid.addWidget(edit, row, 1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue