def __init__(self):
    super(MainWindow, self).__init__()
    centralWidget = QWidget()
    self.setCentralWidget(centralWidget)
    self.glWidget = GLWidget()
    self.pixmapLabel = QLabel()
    self.glWidgetArea = QScrollArea()
    self.glWidgetArea.setWidget(self.glWidget)
    self.glWidgetArea.setWidgetResizable(True)
    self.glWidgetArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
    self.glWidgetArea.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
    self.glWidgetArea.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
    self.glWidgetArea.setMinimumSize(50, 50)
    self.pixmapLabelArea = QScrollArea()
    self.pixmapLabelArea.setWidget(self.pixmapLabel)
    self.pixmapLabelArea.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
    self.pixmapLabelArea.setMinimumSize(50, 50)
    xSlider = self.createSlider(self.glWidget.xRotationChanged, self.glWidget.setXRotation)
    ySlider = self.createSlider(self.glWidget.yRotationChanged, self.glWidget.setYRotation)
    zSlider = self.createSlider(self.glWidget.zRotationChanged, self.glWidget.setZRotation)
    self.createActions()
    self.createMenus()
    centralLayout = QGridLayout()
    centralLayout.addWidget(self.glWidgetArea, 0, 0)
    centralLayout.addWidget(self.pixmapLabelArea, 0, 1)
    centralLayout.addWidget(xSlider, 1, 0, 1, 2)
    centralLayout.addWidget(ySlider, 2, 0, 1, 2)
    centralLayout.addWidget(zSlider, 3, 0, 1, 2)
    centralWidget.setLayout(centralLayout)
    xSlider.setValue((15 * 16))
    ySlider.setValue((345 * 16))
    zSlider.setValue((0 * 16))
    self.setWindowTitle('Grabber')
    self.resize(400, 300)
def __init__(self):
    super(MainWindow, self).__init__()
    centralWidget = QWidget()
    self.setCentralWidget(centralWidget)
    self.glWidget = GLWidget()
    self.pixmapLabel = QLabel()
    self.glWidgetArea = QScrollArea()
    self.glWidgetArea.setWidget(self.glWidget)
    self.glWidgetArea.setWidgetResizable(True)
    self.glWidgetArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
    self.glWidgetArea.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
    self.glWidgetArea.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
    self.glWidgetArea.setMinimumSize(50, 50)
    self.pixmapLabelArea = QScrollArea()
    self.pixmapLabelArea.setWidget(self.pixmapLabel)
    self.pixmapLabelArea.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
    self.pixmapLabelArea.setMinimumSize(50, 50)
    xSlider = self.createSlider(self.glWidget.xRotationChanged, self.glWidget.setXRotation)
    ySlider = self.createSlider(self.glWidget.yRotationChanged, self.glWidget.setYRotation)
    zSlider = self.createSlider(self.glWidget.zRotationChanged, self.glWidget.setZRotation)
    self.createActions()
    self.createMenus()
    centralLayout = QGridLayout()
    centralLayout.addWidget(self.glWidgetArea, 0, 0)
    centralLayout.addWidget(self.pixmapLabelArea, 0, 1)
    centralLayout.addWidget(xSlider, 1, 0, 1, 2)
    centralLayout.addWidget(ySlider, 2, 0, 1, 2)
    centralLayout.addWidget(zSlider, 3, 0, 1, 2)
    centralWidget.setLayout(centralLayout)
    xSlider.setValue((15 * 16))
    ySlider.setValue((345 * 16))
    zSlider.setValue((0 * 16))
    self.setWindowTitle('Grabber')
    self.resize(400, 300)