diff options
Diffstat (limited to 'Build/source/utils/asymptote/GUI/Widg_addLabel.py')
-rw-r--r-- | Build/source/utils/asymptote/GUI/Widg_addLabel.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/GUI/Widg_addLabel.py b/Build/source/utils/asymptote/GUI/Widg_addLabel.py index 776d3e02df9..a5a6503503b 100644 --- a/Build/source/utils/asymptote/GUI/Widg_addLabel.py +++ b/Build/source/utils/asymptote/GUI/Widg_addLabel.py @@ -1,14 +1,14 @@ #!/usr/bin/env python3 from pyUIClass.widg_addLabel import Ui_Form -import PyQt5.QtWidgets as Qw -import PyQt5.QtGui as Qg +import PyQt5.QtWidgets as QtWidgets +import PyQt5.QtGui as QtGui import labelEditor import xasyUtils as xu -class Widg_addLabel(Qw.QWidget): +class Widg_addLabel(QtWidgets.QWidget): def __init__(self, info): super().__init__() self.ui = Ui_Form() @@ -34,11 +34,11 @@ class Widg_addLabel(Qw.QWidget): if self.info['shift_y'] is not None: self.ui.txtShiftY.setText(str(self.info['shift_y'])) - + self.ui.cmbFontSize.setCurrentText(str(self.info['fontSize']) if self.info['fontSize'] is not None else '-') self.ui.cmbAlign.setCurrentIndex(self.info['alignIndex']) - validator = Qg.QDoubleValidator() + validator = QtGui.QDoubleValidator() self.ui.txtShiftX.setValidator(validator) self.ui.txtShiftY.setValidator(validator) @@ -53,7 +53,7 @@ class Widg_addLabel(Qw.QWidget): self.updateCheck(self.ui.cmbAlign.currentText()) - def cmbFontSizeTextChanged(self, text: str): + def cmbFontSizeTextChanged(self, text: str): tryParseVal = xu.tryParse(text, float) self.info['fontSize'] = tryParseVal @@ -61,7 +61,7 @@ class Widg_addLabel(Qw.QWidget): advancedEditDialog = labelEditor.labelEditor(self.ui.txtLabelText.text()) advancedEditDialog.show() result = advancedEditDialog.exec_() - if result == Qw.QDialog.Accepted: + if result == QtWidgets.QDialog.Accepted: self.ui.txtLabelText.setText(advancedEditDialog.getText()) @property |