def build(self): NodeInspectorWidget.build(self) button = QtGui.QPushButton("Write", self) self.layout().addWidget(button) #self.connect(button, QtCore.SIGNAL("clicked()"), self._buttonClicked) button.clicked.connect(self._buttonClicked)
def build(self): NodeInspectorWidget.build(self) button = QtGui.QPushButton("Say Hi!", self) self.layout().addWidget(button) print self.layout().count() print self.layout().itemAt(0).widget().getText() self.connect(button, QtCore.SIGNAL("clicked()"), self._buttonClicked)
def build(self): NodeInspectorWidget.build(self) self._playButton = QtGui.QToolButton(self) self._playButton.setText("Play") self._playButton.setCheckable(True) self._playButton.setChecked(self.coralNode().isPlaying()) self.layout().addWidget(self._playButton) self.connect(self._playButton, QtCore.SIGNAL("toggled(bool)"), self._playButtonToggled)
def __init__(self, coralNode, parentWidget): NodeInspectorWidget.__init__(self, coralNode, parentWidget) self._playButton = None
def build(self): NodeInspectorWidget.build(self) button = QtGui.QPushButton("Say Hi!", self) self.layout().addWidget(button) self.connect(button, QtCore.SIGNAL("clicked()"), self._buttonClicked)