WIP Add questionnaire
This commit is contained in:
parent
693b4662c5
commit
0499dfc3b8
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
__pycache__\
|
||||
questions
|
||||
questionnaire.py
|
BIN
__pycache__/questionnaire.cpython-38.pyc
Normal file
BIN
__pycache__/questionnaire.cpython-38.pyc
Normal file
Binary file not shown.
37
app.py
37
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,15 +103,23 @@ 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):
|
||||
# #os.system('python .\PythonBCIgui\q-helper.py ' + "Visual")
|
||||
@ -121,16 +133,15 @@ class App:
|
||||
# self.startQuestions("Auditory")
|
||||
|
||||
# def startQuestions(self, para):
|
||||
# print('starte Fragebogen')
|
||||
# # TODO
|
||||
# # q = quest(para)
|
||||
# # q.qSatisfaction()
|
||||
# # q.qExhaustion()
|
||||
# # q.qSubjControl()
|
||||
# # q.qCtrlChange()
|
||||
# # q.save()
|
||||
# print('Starte Fragebogen')
|
||||
# q = quest(para)
|
||||
# q.qSatisfaction()
|
||||
# q.qExhaustion()
|
||||
# q.qSubjControl()
|
||||
# q.qCtrlChange()
|
||||
# q.save()
|
||||
|
||||
# 3. P300 Classifier #########################
|
||||
# X. Settings #########################
|
||||
def btn_settings(self):
|
||||
print('Einstellungen')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user