当前位置: 首页>>代码示例>>Python>>正文


Python QVTKRenderWindowInteractor.sizePolicy方法代码示例

本文整理汇总了Python中vtk.qt4.QVTKRenderWindowInteractor.QVTKRenderWindowInteractor.sizePolicy方法的典型用法代码示例。如果您正苦于以下问题:Python QVTKRenderWindowInteractor.sizePolicy方法的具体用法?Python QVTKRenderWindowInteractor.sizePolicy怎么用?Python QVTKRenderWindowInteractor.sizePolicy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vtk.qt4.QVTKRenderWindowInteractor.QVTKRenderWindowInteractor的用法示例。


在下文中一共展示了QVTKRenderWindowInteractor.sizePolicy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_MainWindow

# 需要导入模块: from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor [as 别名]
# 或者: from vtk.qt4.QVTKRenderWindowInteractor.QVTKRenderWindowInteractor import sizePolicy [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(790, 571)
        self.centralWidget = QtGui.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.gridlayout = QtGui.QGridLayout(self.centralWidget)
        self.gridlayout.setObjectName("gridlayout")
        self.splitter_2 = QtGui.QSplitter(self.centralWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName("splitter")
        self.listWidget = QtGui.QListWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
        self.listWidget.setSizePolicy(sizePolicy)
        self.listWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.listWidget.setSelectionRectVisible(False)
        self.listWidget.setObjectName("listWidget")
        self.tabWidget = QtGui.QTabWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.hSlider_basisIndex = QtGui.QSlider(self.tab)
        self.hSlider_basisIndex.setGeometry(QtCore.QRect(10, 160, 160, 22))
        self.hSlider_basisIndex.setMaximum(10)
        self.hSlider_basisIndex.setOrientation(QtCore.Qt.Horizontal)
        self.hSlider_basisIndex.setObjectName("hSlider_basisIndex")
        self.label_basisIndex = QtGui.QLabel(self.tab)
        self.label_basisIndex.setGeometry(QtCore.QRect(10, 140, 161, 17))
        self.label_basisIndex.setObjectName("label_basisIndex")
        self.spinBox_basisIndex = QtGui.QSpinBox(self.tab)
        self.spinBox_basisIndex.setGeometry(QtCore.QRect(180, 150, 63, 27))
        self.spinBox_basisIndex.setReadOnly(True)
        self.spinBox_basisIndex.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
        self.spinBox_basisIndex.setObjectName("spinBox_basisIndex")
        self.label_level = QtGui.QLabel(self.tab)
        self.label_level.setGeometry(QtCore.QRect(10, 10, 171, 17))
        self.label_level.setObjectName("label_level")
        self.spinBox_level = QtGui.QSpinBox(self.tab)
        self.spinBox_level.setGeometry(QtCore.QRect(180, 20, 63, 27))
        self.spinBox_level.setReadOnly(True)
        self.spinBox_level.setButtonSymbols(QtGui.QAbstractSpinBox.NoButtons)
        self.spinBox_level.setObjectName("spinBox_level")
        self.hSlider_level = QtGui.QSlider(self.tab)
        self.hSlider_level.setGeometry(QtCore.QRect(10, 30, 160, 22))
        self.hSlider_level.setOrientation(QtCore.Qt.Horizontal)
        self.hSlider_level.setObjectName("hSlider_level")
        self.label_cutoff = QtGui.QLabel(self.tab)
        self.label_cutoff.setGeometry(QtCore.QRect(10, 64, 221, 17))
        self.label_cutoff.setObjectName("label_cutoff")
        self.lineEdit_cutoff = QtGui.QLineEdit(self.tab)
        self.lineEdit_cutoff.setGeometry(QtCore.QRect(10, 84, 91, 22))
        self.lineEdit_cutoff.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.lineEdit_cutoff.setObjectName("lineEdit_cutoff")
        self.label_cutoff_minmax = QtGui.QLabel(self.tab)
        self.label_cutoff_minmax.setGeometry(QtCore.QRect(110, 90, 121, 17))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_cutoff_minmax.setFont(font)
        self.label_cutoff_minmax.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_cutoff_minmax.setObjectName("label_cutoff_minmax")
        self.line = QtGui.QFrame(self.tab)
        self.line.setGeometry(QtCore.QRect(10, 110, 231, 16))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.label_basisCutoff_minmax = QtGui.QLabel(self.tab)
        self.label_basisCutoff_minmax.setGeometry(QtCore.QRect(110, 221, 121, 17))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_basisCutoff_minmax.setFont(font)
        self.label_basisCutoff_minmax.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_basisCutoff_minmax.setObjectName("label_basisCutoff_minmax")
        self.label_basisCutoff = QtGui.QLabel(self.tab)
        self.label_basisCutoff.setGeometry(QtCore.QRect(10, 195, 221, 17))
        self.label_basisCutoff.setObjectName("label_basisCutoff")
        self.lineEdit_basisCutoff = QtGui.QLineEdit(self.tab)
        self.lineEdit_basisCutoff.setGeometry(QtCore.QRect(10, 215, 91, 22))
        self.lineEdit_basisCutoff.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.lineEdit_basisCutoff.setObjectName("lineEdit_basisCutoff")
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.tabWidget.addTab(self.tab_2, "")
        self.vtkWidget = QVTKRenderWindowInteractor(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.vtkWidget.sizePolicy().hasHeightForWidth())
#.........这里部分代码省略.........
开发者ID:emonson,项目名称:MultiScaleSVD,代码行数:103,代码来源:ui_simpleview.py


注:本文中的vtk.qt4.QVTKRenderWindowInteractor.QVTKRenderWindowInteractor.sizePolicy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。