Esempio n. 1
0
 def __init__(self, parent):
     fc = pg.getConfigOption('foreground')
     self.x = gl.GLGridItem(color=fc)
     self.x.rotate(90, 0, 1, 0)
     self.x.translate(-10, 0, 0)
     parent.addItem(self.x)
     #y
     self.y = gl.GLGridItem(color=fc)
     self.y.rotate(90, 1, 0, 0)
     self.y.translate(0, -10, 0)
     parent.addItem(self.y)
     #z
     self.z = gl.GLGridItem(color=fc)
     self.z.translate(0, 0, -10)
     parent.addItem(self.z)
Esempio n. 2
0
 def __init__(self, parent):
     fc = pg.getConfigOption('foreground')
     self.x = gl.GLGridItem(color=fc)
     self.x.rotate(90, 0, 1, 0)
     self.x.translate(-10, 0, 0)
     parent.addItem(self.x)
     #y
     self.y = gl.GLGridItem(color=fc)
     self.y.rotate(90, 1, 0, 0)
     self.y.translate(0, -10, 0)
     parent.addItem(self.y)
     #z
     self.z = gl.GLGridItem(color=fc)
     self.z.translate(0, 0, -10)
     parent.addItem(self.z)
Esempio n. 3
0
    def setPrintView(self, boolean):
        '''
        Hide dock labels and QSplitter handle if True
        for a nice and printable view
        ''' 
        containers, docks = self.area_middle.findAll()

        if boolean:
            col = 'black' if pg.getConfigOption('background')=='k' else 'white'
            for d in docks.values():
                d.hideTitleBar() 
            for c in containers:
                if  isinstance(c, QtGui.QSplitter):
                    c.setStyleSheet("QSplitter::handle{background-color: %s;}" %col)
        else:
            for d in docks.values():
                d.showTitleBar() 
            for c in containers:
                if  isinstance(c, QtGui.QSplitter):
                    c.setStyleSheet("")
Esempio n. 4
0
    def setPrintView(self, boolean):
        '''
        Hide dock labels and QSplitter handle if True
        for a nice and printable view
        '''
        containers, docks = self.area_middle.findAll()

        if boolean:
            col = 'black' if pg.getConfigOption(
                'background') == 'k' else 'white'
            for d in list(docks.values()):
                d.hideTitleBar()
            for c in containers:
                if isinstance(c, QtWidgets.QSplitter):
                    c.setStyleSheet(
                        "QSplitter::handle{background-color: %s;}" % col)
        else:
            for d in list(docks.values()):
                d.showTitleBar()
            for c in containers:
                if isinstance(c, QtWidgets.QSplitter):
                    c.setStyleSheet("")
Esempio n. 5
0
 def __init__(self):
     gl.GLViewWidget.__init__(self)
     self.setBackgroundColor(pg.getConfigOption('background'))
     self.setCameraPosition(distance=40)
     self.grid = Grid(self)
Esempio n. 6
0
 def __init__(self):
     gl.GLViewWidget.__init__(self)
     self.setBackgroundColor(pg.getConfigOption('background'))
     self.setCameraPosition(distance=40)
     self.grid = Grid(self)