- added a strong focus to the object_name entry in the Selected tab

- the keypad keyPressed are now detected correctly
This commit is contained in:
Marius Stanciu
2019-02-10 22:55:51 +02:00
committed by Marius S
parent 258f877865
commit e8b9555a94
4 changed files with 8 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ from GUIElements import FCEntry, FloatEntry, EvalEntry, FCCheckBox, FCTable, \
LengthEntry, FCTextArea, IntEntry, RadioSet, OptionalInputSection, FCComboBox, FloatEntry2, EvalEntry2
from camlib import Excellon
class ObjectUI(QtWidgets.QWidget):
"""
Base class for the UI of FlatCAM objects. Deriving classes should
@@ -38,6 +39,7 @@ class ObjectUI(QtWidgets.QWidget):
self.name_box.addWidget(name_label)
self.name_entry = FCEntry()
self.name_box.addWidget(self.name_entry)
self.name_entry.setFocusPolicy(QtCore.Qt.StrongFocus)
## Box box for custom widgets
# This gets populated in offspring implementations.