Add initial Qt stub
This commit is contained in:
parent
13e1f7650a
commit
eb88f55cef
@ -5,3 +5,6 @@ dateparser
|
|||||||
TurboGears2
|
TurboGears2
|
||||||
kajiki
|
kajiki
|
||||||
webhelpers2
|
webhelpers2
|
||||||
|
|
||||||
|
PyQt5
|
||||||
|
PyQt5-stubs
|
||||||
|
18
src/edible_elephant/qt.py
Executable file
18
src/edible_elephant/qt.py
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
def main():
|
||||||
|
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout
|
||||||
|
|
||||||
|
app = QApplication([])
|
||||||
|
|
||||||
|
window = QWidget()
|
||||||
|
layout = QVBoxLayout()
|
||||||
|
layout.addWidget(QPushButton('Top'))
|
||||||
|
layout.addWidget(QPushButton('Bottom'))
|
||||||
|
window.setLayout(layout)
|
||||||
|
window.show()
|
||||||
|
|
||||||
|
app.exec_()
|
||||||
|
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user