"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.60/GUI/pyUIClass/widgetPointEditor.py" (6 Nov 2019, 4667 Bytes) of package /linux/misc/asymptote-2.60.src.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "widgetPointEditor.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 
    3 # Form implementation generated from reading ui file 'GUI/windows/widgetPointEditor.ui'
    4 #
    5 # Created by: PyQt5 UI code generator 5.11.3
    6 #
    7 # WARNING! All changes made in this file will be lost!
    8 
    9 from PyQt5 import QtCore, QtGui, QtWidgets
   10 
   11 class Ui_Form(object):
   12     def setupUi(self, Form):
   13         Form.setObjectName("Form")
   14         Form.resize(324, 67)
   15         self.verticalLayout = QtWidgets.QVBoxLayout(Form)
   16         self.verticalLayout.setObjectName("verticalLayout")
   17         self.nameLabel = QtWidgets.QLabel(Form)
   18         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
   19         sizePolicy.setHorizontalStretch(0)
   20         sizePolicy.setVerticalStretch(0)
   21         sizePolicy.setHeightForWidth(self.nameLabel.sizePolicy().hasHeightForWidth())
   22         self.nameLabel.setSizePolicy(sizePolicy)
   23         self.nameLabel.setObjectName("nameLabel")
   24         self.verticalLayout.addWidget(self.nameLabel)
   25         self.horizontalLayout = QtWidgets.QHBoxLayout()
   26         self.horizontalLayout.setObjectName("horizontalLayout")
   27         self.lineXorA = QtWidgets.QLineEdit(Form)
   28         self.lineXorA.setEnabled(False)
   29         self.lineXorA.setReadOnly(False)
   30         self.lineXorA.setObjectName("lineXorA")
   31         self.horizontalLayout.addWidget(self.lineXorA)
   32         self.lineYorM = QtWidgets.QLineEdit(Form)
   33         self.lineYorM.setEnabled(False)
   34         self.lineYorM.setAutoFillBackground(False)
   35         self.lineYorM.setReadOnly(False)
   36         self.lineYorM.setObjectName("lineYorM")
   37         self.horizontalLayout.addWidget(self.lineYorM)
   38         self.btnRelative = QtWidgets.QPushButton(Form)
   39         self.btnRelative.setEnabled(False)
   40         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
   41         sizePolicy.setHorizontalStretch(0)
   42         sizePolicy.setVerticalStretch(0)
   43         sizePolicy.setHeightForWidth(self.btnRelative.sizePolicy().hasHeightForWidth())
   44         self.btnRelative.setSizePolicy(sizePolicy)
   45         self.btnRelative.setText("")
   46         icon = QtGui.QIcon()
   47         icon.addPixmap(QtGui.QPixmap(":/icons/android-locate.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   48         self.btnRelative.setIcon(icon)
   49         self.btnRelative.setCheckable(True)
   50         self.btnRelative.setFlat(False)
   51         self.btnRelative.setObjectName("btnRelative")
   52         self.horizontalLayout.addWidget(self.btnRelative)
   53         self.btnPolar = QtWidgets.QPushButton(Form)
   54         self.btnPolar.setEnabled(False)
   55         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
   56         sizePolicy.setHorizontalStretch(0)
   57         sizePolicy.setVerticalStretch(0)
   58         sizePolicy.setHeightForWidth(self.btnPolar.sizePolicy().hasHeightForWidth())
   59         self.btnPolar.setSizePolicy(sizePolicy)
   60         self.btnPolar.setText("")
   61         icon1 = QtGui.QIcon()
   62         icon1.addPixmap(QtGui.QPixmap(":/icons/android-radio-button-off.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   63         self.btnPolar.setIcon(icon1)
   64         self.btnPolar.setCheckable(True)
   65         self.btnPolar.setFlat(False)
   66         self.btnPolar.setObjectName("btnPolar")
   67         self.horizontalLayout.addWidget(self.btnPolar)
   68         self.btnManualAdj = QtWidgets.QPushButton(Form)
   69         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
   70         sizePolicy.setHorizontalStretch(0)
   71         sizePolicy.setVerticalStretch(0)
   72         sizePolicy.setHeightForWidth(self.btnManualAdj.sizePolicy().hasHeightForWidth())
   73         self.btnManualAdj.setSizePolicy(sizePolicy)
   74         self.btnManualAdj.setText("")
   75         icon2 = QtGui.QIcon()
   76         icon2.addPixmap(QtGui.QPixmap(":/icons/edit.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
   77         self.btnManualAdj.setIcon(icon2)
   78         self.btnManualAdj.setCheckable(True)
   79         self.btnManualAdj.setFlat(False)
   80         self.btnManualAdj.setObjectName("btnManualAdj")
   81         self.horizontalLayout.addWidget(self.btnManualAdj)
   82         self.verticalLayout.addLayout(self.horizontalLayout)
   83 
   84         self.retranslateUi(Form)
   85         QtCore.QMetaObject.connectSlotsByName(Form)
   86 
   87     def retranslateUi(self, Form):
   88         _translate = QtCore.QCoreApplication.translate
   89         Form.setWindowTitle(_translate("Form", "Form"))
   90         self.nameLabel.setText(_translate("Form", "Left Control Point"))
   91         self.lineXorA.setToolTip(_translate("Form", "X"))
   92         self.lineXorA.setPlaceholderText(_translate("Form", "X"))
   93         self.lineYorM.setToolTip(_translate("Form", "X"))
   94         self.lineYorM.setPlaceholderText(_translate("Form", "Y"))
   95 
   96 import icons_rc