|
|
@@ -15,6 +15,8 @@ import configparser |
|
|
|
|
|
|
|
# TODO Eventuell updatefunktion über git pull mit einbauen! |
|
|
|
|
|
|
|
__version__ = 0.3 |
|
|
|
|
|
|
|
class App: |
|
|
|
|
|
|
|
def __init__(self, master): |
|
|
@@ -53,7 +55,8 @@ class App: |
|
|
|
frame.pack() |
|
|
|
|
|
|
|
# label generation |
|
|
|
self.Lparadigm = Label(frame, text = self.paradigmText + ' BCI', height = 4, width = 20) |
|
|
|
headerText = 'PythonBCIgui V' + str(__version__) + '\n\n' + self.paradigmText + ' BCI' |
|
|
|
self.Lparadigm = Label(frame, text = headerText, height = 4, width = 20) |
|
|
|
self.Lparadigm['font'] = tkFont.Font(family='Helvetica', size=16, weight='bold') |
|
|
|
self.Lparadigm.pack() |
|
|
|
|
|
|
@@ -69,13 +72,18 @@ class App: |
|
|
|
self.BvisCal = makeBtn(self, "2. Kalibrierung", "lightgreen", self.btn_visCal, TOP) |
|
|
|
self.Bp300 = makeBtn(self, "3. P300 Klassifizierung", "orange", self.btn_p300, TOP) |
|
|
|
self.BvisCopy = makeBtn(self, "4. Freies Buchstabieren", "lightblue", self.btn_visCopy, TOP) |
|
|
|
elif self.paradigmText == 'Test': # TODO Remove |
|
|
|
self.Bfilter = makeBtn(self, "1. Filter", "lightyellow", self.btn_filter, TOP) |
|
|
|
self.BvisCal = makeBtn(self, "2. Kalibrierung", "lightgreen", self.btn_visCal, TOP) |
|
|
|
self.Bp300 = makeBtn(self, "3. P300 Klassifizierung", "orange", self.btn_p300, TOP) |
|
|
|
self.BvisCopy = makeBtn(self, "4. Freies Buchstabieren", "lightblue", self.btn_visCopy, TOP) |
|
|
|
self.Btest = makeBtnSmall(self, "TEST", "green", self.btn_test, TOP) # TODO Remove |
|
|
|
else: |
|
|
|
print('Fehler: Bitte wählen Sie "Tactile" oder "Visual" als Argument') |
|
|
|
raise ValueError |
|
|
|
|
|
|
|
# self.Bquest = makeBtnSmall(self, "6. Fragebogen", "green", self.btn_quest, TOP) |
|
|
|
self.BtacConfig = makeBtnSmall(self, "Konfiguration", "gray", self.btn_config, TOP) |
|
|
|
self.Btest = makeBtnSmall(self, "TEST", "green", self.btn_test, RIGHT) # TODO Remove |
|
|
|
|
|
|
|
frame.rowconfigure((0,1), weight=1) # make buttons stretch when |
|
|
|
frame.columnconfigure((0,2), weight=1) # when window is resized |
|
|
@@ -154,7 +162,7 @@ class App: |
|
|
|
config.write(open('config.ini','w')) |
|
|
|
# TODO Catch errors falls falsche Ordner gewählt wurden |
|
|
|
|
|
|
|
def btn_test(self): |
|
|
|
def btn_test(self): # TODO Remove |
|
|
|
print('TEST') |
|
|
|
print(self.paradigmText) |
|
|
|
|