• 大小: 102KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-13
  • 语言: Python
  • 标签: python  pyqt5  

资源简介

计算机图形学课程代码资源,用python加pyqt5环境开发。包括20个实验代码。

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file ‘line1_ui.ui‘
# licensing of ‘line1_ui.ui‘ applies.
#
# Created: Fri Jul 19 19:04:08 2019
#      by: pyside2-uic  running on PySide2 5.13.0
#
# WARNING! All changes made in this file will be lost!

from PySide2 import QtCore QtGui QtWidgets

class Ui_Form(object):
    def setupUi(self Form):
        Form.setobjectName(“Form“)
        Form.resize(874 655)
        self.groupBox_set = QtWidgets.QGroupBox(Form)
        self.groupBox_set.setGeometry(QtCore.QRect(550 30 261 271))
        self.groupBox_set.setobjectName(“groupBox_set“)
        self.label_x0 = QtWidgets.QLabel(self.groupBox_set)
        self.label_x0.setGeometry(QtCore.QRect(20 40 100 25))
        self.label_x0.setAlignment(QtCore.Qt.AlignCenter)
        self.label_x0.setobjectName(“label_x0“)
        self.lineEdit_x0 = QtWidgets.QLineEdit(self.groupBox_set)
        self.lineEdit_x0.setGeometry(QtCore.QRect(140 40 100 25))
        self.lineEdit_x0.setobjectName(“lineEdit_x0“)
        self.lineEdit_y0 = QtWidgets.QLineEdit(self.groupBox_set)
        self.lineEdit_y0.setGeometry(QtCore.QRect(140 80 100 25))
        self.lineEdit_y0.setobjectName(“lineEdit_y0“)
        self.label_y0 = QtWidgets.QLabel(self.groupBox_set)
        self.label_y0.setGeometry(QtCore.QRect(20 80 100 25))
        self.label_y0.setAlignment(QtCore.Qt.AlignCenter)
        self.label_y0.setobjectName(“label_y0“)
        self.lineEdit_x1 = QtWidgets.QLineEdit(self.groupBox_set)
        self.lineEdit_x1.setGeometry(QtCore.QRect(140 130 100 25))
        self.lineEdit_x1.setobjectName(“lineEdit_x1“)
        self.label_y1 = QtWidgets.QLabel(self.groupBox_set)
        self.label_y1.setGeometry(QtCore.QRect(20 170 100 25))
        self.label_y1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_y1.setobjectName(“label_y1“)
        self.label_x1 = QtWidgets.QLabel(self.groupBox_set)
        self.label_x1.setGeometry(QtCore.QRect(20 130 100 25))
        self.label_x1.setAlignment(QtCore.Qt.AlignCenter)
        self.label_x1.setobjectName(“label_x1“)
        self.lineEdit_y1 = QtWidgets.QLineEdit(self.groupBox_set)
        self.lineEdit_y1.setGeometry(QtCore.QRect(140 170 100 25))
        self.lineEdit_y1.setobjectName(“lineEdit_y1“)
        self.pushButton_color = QtWidgets.QPushButton(self.groupBox_set)
        self.pushButton_color.setGeometry(QtCore.QRect(20 230 100 25))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(0 0 0))
        brush.setstyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active QtGui.QPalette.WindowText brush)
        brush = QtGui.QBrush(QtGui.QColor(52 101 164))
        brush.setstyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active QtGui.QPalette.Button brush)
        brush = QtGui.QBrush(QtGui.QColor(78 152 246))
        brush.setstyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-10-14 16:37  pycgtest\
     目录           0  2019-10-14 16:37  pycgtest\test1\
     文件       12500  2019-09-01 10:22  pycgtest\test1\line1_ui.py
     文件       15537  2019-09-01 10:22  pycgtest\test1\line1_ui.ui
     文件        1445  2019-09-01 10:22  pycgtest\test1\main01.py
     目录           0  2019-10-14 16:37  pycgtest\test10\
     文件       33011  2019-09-01 10:22  pycgtest\test10\line_clip_ui.py
     文件       42679  2019-09-01 10:22  pycgtest\test10\line_clip_ui.ui
     文件        5650  2019-09-01 10:22  pycgtest\test10\main10.py
     目录           0  2019-10-14 16:37  pycgtest\test11\
     文件        3594  2019-09-01 10:22  pycgtest\test11\main11.py
     文件       30740  2019-09-01 10:22  pycgtest\test11\poly_clip_ui.py
     文件       37383  2019-09-01 10:22  pycgtest\test11\poly_clip_ui.ui
     目录           0  2019-10-14 16:37  pycgtest\test12\
     文件       45432  2019-09-01 10:22  pycgtest\test12\clip_weiler_ui.py
     文件       58288  2019-09-01 10:22  pycgtest\test12\clip_weiler_ui.ui
     文件        5293  2019-09-01 10:22  pycgtest\test12\main12.py
     目录           0  2019-10-14 16:37  pycgtest\test13\
     文件        6135  2019-09-01 10:22  pycgtest\test13\main13.py
     文件        2782  2019-09-01 10:22  pycgtest\test13\winToViewUI.py
     文件        3968  2019-09-01 10:22  pycgtest\test13\winToViewUI.ui
     目录           0  2019-10-14 16:37  pycgtest\test14\
     文件       10581  2019-09-01 10:22  pycgtest\test14\Td_house_ui.py
     文件       13278  2019-09-01 10:22  pycgtest\test14\Td_house_ui.ui
     文件       12800  2019-09-01 10:22  pycgtest\test14\Td_object.py
     文件         572  2019-09-01 10:22  pycgtest\test14\layoutWidget.py
     文件        5200  2019-09-01 10:22  pycgtest\test14\main14.py
     文件         557  2019-09-01 10:22  pycgtest\test14\projectionWidget.py
     目录           0  2019-10-14 16:37  pycgtest\test15\
     文件        8400  2019-09-01 10:22  pycgtest\test15\main15.py
     目录           0  2019-10-14 16:37  pycgtest\test16\
............此处省略67个文件信息

评论

共有 条评论