Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
from PySide.QtCore import * | ||
from PySide.QtGui import * | ||
|
||
|
||
class EIOWindow(QMainWindow): | ||
|
||
def __init__(self, parent=None): | ||
super(EIOWindow, self).__init__(parent) | ||
self.setWindowTitle("EtherIO") | ||
|
||
centre = EIOCentralWidget() | ||
|
||
self.setCentralWidget(centre) | ||
|
||
class EIOCentralWidget(QWidget): | ||
|
||
def __init__(self, parent=None): | ||
super(EIOCentralWidget, self).__init__(parent) | ||
|
||
# widgets | ||
self.DACslider0 = QSlider(Qt.Vertical) | ||
|
||
# layout | ||
layout = QGridLayout() | ||
layout.addWidget(self.DACslider0) | ||
|
||
self.setLayout(layout) | ||
|
||
# button signal | ||
|
||
if __name__ == '__main__': | ||
# create the app | ||
app = QApplication(sys.argv) | ||
# show the form | ||
main = EIOWindow() | ||
main.show() | ||
main.raise_() | ||
# run the main loop | ||
sys.exit(app.exec_()) | ||
|
||
|