classes for I/O started, QtPyLoT.py cleaned

This commit is contained in:
Sebastian Wehling 2014-02-03 12:51:23 +01:00
parent 25351d3827
commit d016a80a72
3 changed files with 60 additions and 65 deletions

View File

@ -91,26 +91,7 @@ if __name__ == '__main__':
pylot_app = QApplication(sys.argv) pylot_app = QApplication(sys.argv)
pylot_main = MainWindow() pylot_main = MainWindow()
pylot_main.setWindowTitle('TestWindow') pylot_main.setWindowTitle('PyLoT-The Picking and Localization Tool')
ok_btn = QPushButton('OK', pylot_main)
@pyqtSlot()
def on_click():
print('clicked')
@pyqtSlot()
def on_press():
print('pressed')
@pyqtSlot()
def on_release():
print('released')
# Connect signals to slots
ok_btn.clicked.connect(on_click)
ok_btn.pressed.connect(on_press)
ok_btn.pressed.connect(on_release)
# Show window and run the app # Show window and run the app
pylot_main.show() pylot_main.show()

View File

View File

@ -0,0 +1,14 @@
#!/usr/bin/env python
#
# Provide user the opportunity to read arbitrary organized database
# types. This means e.g. seiscomp data structure (SDS) or event based
# EGELADOS structure.
#
class GenericDataBase(object):
def __init__(self, root=None, kwargs**):
pass
class SeiscompDataStructure(GenericDataBase):
pass