diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..796ab18 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__\ +questions +questionnaire.py \ No newline at end of file diff --git a/__pycache__/questionnaire.cpython-38.pyc b/__pycache__/questionnaire.cpython-38.pyc new file mode 100644 index 0000000..297e407 Binary files /dev/null and b/__pycache__/questionnaire.cpython-38.pyc differ diff --git a/app.py b/app.py index ed56448..cd2345c 100644 --- a/app.py +++ b/app.py @@ -7,12 +7,13 @@ Created on Fri Sep 4 11:36:24 2020 from tkinter import * import tkinter.font as tkFont -import os import subprocess # own code: # from questionnaire import quest +# TODO Eventuell updatefunktion über git pull mit einbauen! + ################################################## # Config Beginn # Folgende Strings bitte an jeweiligen PC anpassen @@ -28,6 +29,8 @@ pathTactileBciFilter = r'C:\Users\bci\Desktop\Qt Filter Program\build-TactileBCI pathP300Classifier = r'C:\Users\bci\Desktop\Igor\PythonBCIgui_v0.2\bin' # TODO Config in txt file verlagern oder sogar Config Einstellung!!! +# tk_chooseDirectory +# tk_getOpenFile # Config Ende ################################################## @@ -72,7 +75,8 @@ class App: self.BtacCal = makeBtnSmall(self, "2. Kalibrierung", "lightgreen", self.btn_tacCal, TOP) self.Bp300 = makeBtnSmall(self, "3. P300 Klassifizierung", "orange", self.btn_p300, TOP) self.BtacCopy = makeBtnSmall(self, "4. Freies Buchstabieren", "lightblue", self.btn_tacCopy, TOP) - # self.BtacQuest = makeBtnSmall(self, "5. Fragebogen", "pink", self.btn_tacQuest, TOP) + self.BtacSimul = makeBtnSmall(self, "5. Rollstuhlsimulator", "pink", self.btn_tacSimul, TOP) + # self.BtacQuest = makeBtnSmall(self, "6. Fragebogen", "green", self.btn_tacQuest, TOP) self.BtacSettings = makeBtnSmall(self, "Einstellungen", "gray", self.btn_settings, TOP) frame.rowconfigure((0,1), weight=1) # make buttons stretch when @@ -99,14 +103,22 @@ class App: print('Starte P300Classifier.exe') subprocess.Popen(pathP300Classifier + '\P300Classifier.exe') - # 3. COPYSPELL ########################### + # 4. COPYSPELL ########################### def btn_tacCopy(self): print('Starte taktilen Copyspeller') - # os.system('bin\WT-tacCopy.bat') subprocess.Popen([pathBci2000 + '\prog\Operator.exe', '--OnConnect', '-LOAD PARAMETERFILE TactileCopy.prm']) subprocess.Popen([pathBci2000 + '\prog\gUSBampSource.exe', '127.0.0.1']) subprocess.Popen([pathBci2000 + '\prog\P3SignalProcessing.exe', '127.0.0.1']) subprocess.Popen([pathBci2000 + '\prog\P3Speller.exe', '127.0.0.1']) + + # 5. WHEELCHAIR SIMULATOR ########################### + def btn_tacSimul(self): + print('Starte Wheelchair Simulator') + # TODO Starte Wheelchair Simulator Programm + subprocess.Popen([pathBci2000 + '\prog\Operator.exe', '--OnConnect', '-LOAD PARAMETERFILE TactileDrive.prm']) + subprocess.Popen([pathBci2000 + '\prog\gUSBampSource.exe', '127.0.0.1']) + subprocess.Popen([pathBci2000 + '\prog\P3SignalProcessing.exe', '127.0.0.1']) + subprocess.Popen([pathBci2000 + '\prog\P3Speller.exe', '127.0.0.1']) # QUESTIONNAIRE PROMPT ########################### # def btn_visQuest(self): @@ -114,23 +126,22 @@ class App: # root.destroy() # self.startQuestions("Visual") # def btn_tacQuest(self): - # root.destroy() - # self.startQuestions("Tactile") + #root.destroy() + # self.startQuestions("Tactile") # def btn_audQuest(self): # root.destroy() # self.startQuestions("Auditory") # def startQuestions(self, para): - # print('starte Fragebogen') - # # TODO - # # q = quest(para) - # # q.qSatisfaction() - # # q.qExhaustion() - # # q.qSubjControl() - # # q.qCtrlChange() - # # q.save() - - # 3. P300 Classifier ######################### + # print('Starte Fragebogen') + # q = quest(para) + # q.qSatisfaction() + # q.qExhaustion() + # q.qSubjControl() + # q.qCtrlChange() + # q.save() + + # X. Settings ######################### def btn_settings(self): print('Einstellungen')