| 1 |
|
| 2 |
|
| 3 |
import PythonQt.QtGui as pqt |
| 4 |
|
| 5 |
pqt.QMessageBox.information(0, 'Python', |
| 6 |
'You have access to all of the Qt toolkit from the API!') |
| 7 |
|
| 8 |
w = pqt.QWidget() |
| 9 |
w.setGeometry(50,50, 250,400) |
| 10 |
text = pqt.QTextBrowser(w) |
| 11 |
text.setOpenExternalLinks(True) |
| 12 |
text.show() |
| 13 |
text.setHtml('<h1>Welcome to the Python API!</h1>Although CsoundQt does not use PySide, most of the <a href="http://qt-project.org/wiki/PySide">PySide Docs</a> will apply!<br>You can use Qt to build interactive interfaces for CsoundQt scripts.') |
| 14 |
|
| 15 |
but = pqt.QPushButton("Button", w) |
| 16 |
but.move(5, 220) |
| 17 |
sli = pqt.QSlider(w) |
| 18 |
sli.move(100, 220) |
| 19 |
|
| 20 |
w.show() |