def show_about(self):
        dial = QDialog(hqt.getHouWindow())
        dial.setWindowTitle('VEX Editor ' + self.version)
        ly = QVBoxLayout()
        dial.setLayout(ly)
        label = QLabel()
        label.setText('''<h2>Houdini VEX Editor {version}</h2>
<p>by PaulWinex. 2015</p>'''.format(version=self.version))
        label.setAlignment(Qt.AlignHCenter)
        ly.addWidget(label)
        imglabel = QLabel()
        img = QPixmap(icons['pw_logo'])
        imglabel.setPixmap(img)
        imglabel.setAlignment(Qt.AlignHCenter)
        ly.addWidget(imglabel)
        btn = QPushButton('www.paulwinex.ru')
        btn.setFlat(True)
        ly.addWidget(btn)
        btn.clicked.connect(lambda :self.open_url(vex_settings.help_url))
        dial.setStyleSheet(self.hstyle)
        dial.exec_()
    def show_about(self):
        dial = QDialog(hqt.getHouWindow())
        dial.setWindowTitle('VEX Editor ' + self.version)
        ly = QVBoxLayout()
        dial.setLayout(ly)
        label = QLabel()
        label.setText('''<h2>Houdini VEX Editor {version}</h2>
<p>by PaulWinex. 2015</p>'''.format(version=self.version))
        label.setAlignment(Qt.AlignHCenter)
        ly.addWidget(label)
        imglabel = QLabel()
        i = icons.get('pw_logo')
        if i:
            img = QPixmap(i)
            imglabel.setPixmap(img)
            imglabel.setAlignment(Qt.AlignHCenter)
            ly.addWidget(imglabel)
        btn = QPushButton('www.paulwinex.ru')
        btn.setFlat(True)
        ly.addWidget(btn)
        btn.clicked.connect(lambda: self.open_url(vex_settings.help_url))
        dial.setStyleSheet(self.hstyle)
        dial.exec_()
Beispiel #3
0
        super(myMenu, self).__init__()
        for i in range(10):
            self.addAction(hqt.QAction('Item %s' % i, self))

action = hqt.showUi(myMenu)
# get data from action object
print action.text()


######################################################################################## 14

# EXAMPLES HOUDINI 14

########## Simple Window
import myWidget
import hqt
w = myWidget()
w.setParent(hqt.getHouWindow())
w.setStyleSheet(hqt.get_h14_style())
w.show()

######## Insert as Panel
import hqt
#1
import myWidget
# in panel
hqt.show(myWidget.mainWindow, name='My Widget',replacePyPanel=1, hideTitleMenu=0)
# floating
hqt.show(myWidget.mainWindow, floating=1, position=(200,300), size=(300,400))