styles_manager.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:bubblesub 作者: rr- 项目源码 文件源码
def __init__(self, parent):
        super().__init__('Transformations', parent)
        self.scale_x_edit = QtWidgets.QDoubleSpinBox(
            self, minimum=0, maximum=999)
        self.scale_y_edit = QtWidgets.QDoubleSpinBox(
            self, minimum=0, maximum=999)
        self.angle_edit = QtWidgets.QDoubleSpinBox(
            self, minimum=0, maximum=999)
        self.spacing_edit = QtWidgets.QDoubleSpinBox(
            self, minimum=0, maximum=999)

        layout = QtWidgets.QGridLayout(self)
        layout.setColumnStretch(0, 1)
        layout.setColumnStretch(1, 2)
        layout.addWidget(QtWidgets.QLabel('Scale X:', self), 0, 0)
        layout.addWidget(self.scale_x_edit, 0, 1)
        layout.addWidget(QtWidgets.QLabel('Scale Y:', self), 1, 0)
        layout.addWidget(self.scale_y_edit, 1, 1)
        layout.addWidget(QtWidgets.QLabel('Angle:', self), 2, 0)
        layout.addWidget(self.angle_edit, 2, 1)
        layout.addWidget(QtWidgets.QLabel('Spacing:', self), 3, 0)
        layout.addWidget(self.spacing_edit, 3, 1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号