Skip to content

Commit

Permalink
started gui code
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalenik committed May 24, 2012
1 parent 9cb9904 commit aece986
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions client/python/etherio_gui.py
@@ -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_())


0 comments on commit aece986

Please sign in to comment.