summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-27 23:41:11 +0000
committerKarl Berry <karl@freefriends.org>2022-02-27 23:41:11 +0000
commit8027f287eb46d487a0e379911bdbc4d6c2bf44e4 (patch)
treeb6e3aeebab3f5c2560ae1ab892b76cca269eb05e /Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py
parenta4855ce49e2101557c17547c2d22594e1b2a215c (diff)
asymptote 2.78 support files
git-svn-id: svn://tug.org/texlive/trunk@62265 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py')
-rwxr-xr-xMaster/texmf-dist/asymptote/GUI/SetCustomAnchor.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py b/Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py
index ad5925cddb4..e4414fecc4e 100755
--- a/Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py
+++ b/Master/texmf-dist/asymptote/GUI/SetCustomAnchor.py
@@ -1,20 +1,20 @@
#!/usr/bin/env python3
-import PyQt5.QtWidgets as Qw
-import PyQt5.QtGui as Qg
-import PyQt5.QtCore as Qc
+import PyQt5.QtWidgets as QtWidgets
+import PyQt5.QtGui as QtGui
+import PyQt5.QtCore as QtCore
from pyUIClass.setCustomAnchor import Ui_Dialog
-class CustomAnchorDialog(Qw.QDialog):
+class CustomAnchorDialog(QtWidgets.QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
- self.ui.buttonBox.button(Qw.QDialogButtonBox.Reset).clicked.connect(self.resetDialog)
+ self.ui.buttonBox.button(QtWidgets.QDialogButtonBox.Reset).clicked.connect(self.resetDialog)
- validator = Qg.QDoubleValidator()
+ validator = QtGui.QDoubleValidator()
self.ui.lineEditX.setValidator(validator)
self.ui.lineEditY.setValidator(validator)
@@ -24,18 +24,18 @@ class CustomAnchorDialog(Qw.QDialog):
def checkTextChanged(self, text):
if str(text) not in {'.', '-', '.-', '-.'} and str(text):
- self.ui.buttonBox.button(Qw.QDialogButtonBox.Ok).setEnabled(True)
+ self.ui.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(True)
else:
- self.ui.buttonBox.button(Qw.QDialogButtonBox.Ok).setEnabled(False)
+ self.ui.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(False)
def getPoint(self):
xPoint = float(self.ui.lineEditX.text())
yPoint = float(self.ui.lineEditY.text())
- return Qc.QPointF(xPoint, yPoint)
+ return QtCore.QPointF(xPoint, yPoint)
def handleBtnBoxClick(self, button):
- assert isinstance(button, Qw.QAbstractButton)
+ assert isinstance(button, QtWidgets.QAbstractButton)
if button.text() == 'Reset':
self.resetDialog()