Skip to content

Commit

Permalink
add unit descriptor in the predictor
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyh1900 committed Feb 23, 2020
1 parent 0f8816c commit 6c20fb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def set_dialog(self):
edit = QtWidgets.QLineEdit()
self.editList.append(edit)
label = QtWidgets.QLabel()
label.setText(utils.M_STR[i])
if i == 0:
label.setText('{} (x2 kg)'.format(utils.M_STR[i]))
else:
label.setText('{} (cm)'.format(utils.M_STR[i]))
# label.setFont(QFont("Arial", 11, QFont.Bold))
label.setFont(QFont("Arial", 12))
label.setFixedHeight(20)
Expand Down

0 comments on commit 6c20fb9

Please sign in to comment.