Python pyqtgraph.Qt.QtGui.QGridLayout() Examples
The following are 9
code examples of pyqtgraph.Qt.QtGui.QGridLayout().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pyqtgraph.Qt.QtGui
, or try the search function
.
Example #1
Source File: gccNMFInterface.py From gcc-nmf with MIT License | 6 votes |
def initWindow(self): self.setWindowTitle('Real-time GCC-NMF') self.mainWidget = QtGui.QWidget() self.setCentralWidget(self.mainWidget) self.backgroundColor = self.mainWidget.palette().color(QtGui.QPalette.Background) self.borderColor = 'k' self.mainWidget.setStyleSheet('QSplitter::handle {image: url(images/notExists.png); background-color: #D8D8D8}') self.mainLayout = QtGui.QGridLayout() self.mainWidget.setLayout(self.mainLayout) self.mainWidget.setAutoFillBackground(True) p = QtGui.QPalette(self.mainWidget.palette()) p.setColor(self.mainWidget.backgroundRole(), QtCore.Qt.black) self.mainWidget.setPalette(p) self.mainLayout.setContentsMargins(0, 0, 0, 0) self.mainLayout.setSpacing(1)
Example #2
Source File: __main__.py From tf-pose with Apache License 2.0 | 5 votes |
def __init__(self): QtGui.QMainWindow.__init__(self) self.ui = Ui_Form() self.cw = QtGui.QWidget() self.setCentralWidget(self.cw) self.ui.setupUi(self.cw) self.codeBtn = QtGui.QPushButton('Run Edited Code') self.codeLayout = QtGui.QGridLayout() self.ui.codeView.setLayout(self.codeLayout) self.codeLayout.addItem(QtGui.QSpacerItem(100,100,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding), 0, 0) self.codeLayout.addWidget(self.codeBtn, 1, 1) self.codeBtn.hide() global examples self.itemCache = [] self.populateTree(self.ui.exampleTree.invisibleRootItem(), examples) self.ui.exampleTree.expandAll() self.resize(1000,500) self.show() self.ui.splitter.setSizes([250,750]) self.ui.loadBtn.clicked.connect(self.loadFile) self.ui.exampleTree.currentItemChanged.connect(self.showFile) self.ui.exampleTree.itemDoubleClicked.connect(self.loadFile) self.ui.codeView.textChanged.connect(self.codeEdited) self.codeBtn.clicked.connect(self.runEditedCode)
Example #3
Source File: batchviewer.py From BatchViewer with Apache License 2.0 | 5 votes |
def _init_gui(self): self._my_layout = QtGui.QGridLayout() self.slicingWidgets = {} self.setLayout(self._my_layout) self.setWindowTitle("Batch Viewer")
Example #4
Source File: emg.py From OpenNFB with GNU General Public License v3.0 | 5 votes |
def widget(self): w = QtGui.QWidget() layout = QtGui.QGridLayout() w.setLayout(layout) layout.addWidget(self.OSC1.widget(), 0, 0) layout.addWidget(self.OSC2.widget(), 1, 0) layout.addWidget(self.OSC3.widget(), 2, 0) layout.addWidget(self.Spec.widget(), 0, 1, 3, 1) return w
Example #5
Source File: multiband.py From OpenNFB with GNU General Public License v3.0 | 5 votes |
def widget(self): w = QtGui.QWidget() layout = QtGui.QGridLayout() w.setLayout(layout) layout.addWidget(self.OSC1.widget(), 0, 0) layout.addWidget(self.OSC2.widget(), 1, 0) layout.addWidget(self.OSC3.widget(), 2, 0) layout.addWidget(self.OSC4.widget(), 3, 0) layout.addWidget(self.Spec.widget(), 0, 1, 3, 1) layout.addWidget(self.DCOSC.widget(), 3, 1) return w
Example #6
Source File: smr.py From OpenNFB with GNU General Public License v3.0 | 5 votes |
def widget(self): w = QtGui.QWidget() layout = QtGui.QGridLayout() w.setLayout(layout) layout.addWidget(self.OSC1.widget(), 0, 0) layout.addWidget(self.OSC2.widget(), 1, 0) layout.addWidget(self.OSC3.widget(), 2, 0) layout.addWidget(self.OSC4.widget(), 3, 0) layout.addWidget(self.Spec.widget(), 0, 1, 4, 1) return w
Example #7
Source File: ekg-drum.py From OpenNFB with GNU General Public License v3.0 | 5 votes |
def widget(self): w = QtGui.QWidget() layout = QtGui.QGridLayout() w.setLayout(layout) layout.addWidget(self.RAWOSC1.widget(), 0, 0) layout.addWidget(self.fftFilt.widget(), 2, 0) return w
Example #8
Source File: clear-windshield.py From OpenNFB with GNU General Public License v3.0 | 5 votes |
def widget(self): w = QtGui.QWidget() layout = QtGui.QGridLayout() w.setLayout(layout) layout.addWidget(self.OSC1.widget(), 0, 0) layout.addWidget(self.OSC2.widget(), 1, 0) layout.addWidget(self.OSC3.widget(), 2, 0) layout.addWidget(self.Spec.widget(), 0, 1, 3, 3) layout.addWidget(self.Lthr.widget(), 4, 1, 1, 1) layout.addWidget(self.Tthr.widget(), 4, 2, 1, 1) layout.addWidget(self.Hthr.widget(), 4, 3, 1, 1) return w
Example #9
Source File: __main__.py From qgisSpaceSyntaxToolkit with GNU General Public License v3.0 | 5 votes |
def __init__(self): QtGui.QMainWindow.__init__(self) self.ui = Ui_Form() self.cw = QtGui.QWidget() self.setCentralWidget(self.cw) self.ui.setupUi(self.cw) self.codeBtn = QtGui.QPushButton('Run Edited Code') self.codeLayout = QtGui.QGridLayout() self.ui.codeView.setLayout(self.codeLayout) self.codeLayout.addItem(QtGui.QSpacerItem(100,100,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding), 0, 0) self.codeLayout.addWidget(self.codeBtn, 1, 1) self.codeBtn.hide() global examples self.itemCache = [] self.populateTree(self.ui.exampleTree.invisibleRootItem(), examples) self.ui.exampleTree.expandAll() self.resize(1000,500) self.show() self.ui.splitter.setSizes([250,750]) self.ui.loadBtn.clicked.connect(self.loadFile) self.ui.exampleTree.currentItemChanged.connect(self.showFile) self.ui.exampleTree.itemDoubleClicked.connect(self.loadFile) self.ui.codeView.textChanged.connect(self.codeEdited) self.codeBtn.clicked.connect(self.runEditedCode)