diff --git a/BCI.desktop b/BCI.desktop new file mode 100755 index 0000000..8705b48 --- /dev/null +++ b/BCI.desktop @@ -0,0 +1,10 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Version=1.0 +Type=Application +Terminal=false +Icon[C]=/home/ubuntu/Downloads/icon.ico +Name[C]=BCI +Exec=/home/ubuntu/Desktop/BCIProjekt/start.sh +Name=BCI +Icon=/home/ubuntu/Downloads/icon.ico diff --git a/Readme.txt b/Readme.txt new file mode 100644 index 0000000..31fa54c --- /dev/null +++ b/Readme.txt @@ -0,0 +1,14 @@ +Zur Ausfuerung des Programmes muessen die Pfade zu den Befehlen, falls unterschiedlich zu den defaultpfaden, richtig angegeben werden +und mit dem Befehl g++ dll.cpp --shared -fPIC -o dll.so in eine shared librarz umgewandelt werden. + +Zudem muss xdotool und evtl python-tkinter installiert werden (siehe script.sh) + +Fuer den Ablauf werden dann nur die Datei gui, dll.so und das icon (icon.png) benoetigt. Alle Dateien bitte im selben Ordner. +Default im gleichen Ordner wie der Ordner meta. Das Programm kann nun mit den Kommandozeilenaufruf ./gui gestartet werden + +Fuer den Aufruf ueber ein Desktop Icon werden die Dateien BCI.desktop und start.sh benoetigt: +>BCI.desktop muss in den home folder gelegt und installiert werden (sudo desktop-file-install BCI.desktop). + Ggf. muessen die Pfade zur start.sh datei und zum Icon angepasst werden +>start.sh wird mit dem Icon aufgerufen. auch hier muss evtl der Pfad angepasst werden. + + diff --git a/UIController.py b/UIController.py index 0c1eab6..2bb8b00 100644 --- a/UIController.py +++ b/UIController.py @@ -189,11 +189,14 @@ class Controller(): ''' print("saveFile") print(self.file) - os.mkdir(self.file) + if not os.path.exists(self.file): + os.mkdir(self.file) copyfile(self.pathOVFile, (self.file + "/p300-xdawn-train.ov")) copyfile(self.pathClassifierCfg, (self.file + "/p300-classifier.cfg")) copyfile(self.pathSpatialCfg, (self.file + "/p300-spatial-filter.cfg")) + self.changeScreen("StartPage") + #copyfile(self.pathOVFile, self.file) def setDataset(self): diff --git a/UIController.pyc b/UIController.pyc index 3d11135..897d65c 100644 Binary files a/UIController.pyc and b/UIController.pyc differ diff --git a/UIViewTKinter.py b/UIViewTKinter.py index a49f6ca..7fc0476 100644 --- a/UIViewTKinter.py +++ b/UIViewTKinter.py @@ -269,7 +269,7 @@ class WorkingPageVisuell(Frame): self.windowFrame = Frame(self, height=200, width=500, bg=self.layout["background"]) self.windowFrame.grid(column=0, row=0) - self.buttonFrame = Frame(self, height=200, width=500, bg=self.layout["background"]) + self.buttonFrame = Frame(self, height=50, width=500, bg=self.layout["background"]) self.buttonFrame.grid(column=0, row=1) self.buttonFrame.columnconfigure(0, weight=1) # Set weight to row and self.buttonFrame.rowconfigure(0, weight=1) # column where the widget is @@ -278,5 +278,5 @@ class WorkingPageVisuell(Frame): stopBtn.grid() def adjustSize(self, height, width): - self.windowFrame.configure(height=(height*4)/5, width= width) + self.windowFrame.configure(height=(height*9)/10, width= width) self.buttonFrame.configure(height=(height)/10, width= width) \ No newline at end of file diff --git a/UIViewTKinter.pyc b/UIViewTKinter.pyc index 59d9d17..99fe702 100644 Binary files a/UIViewTKinter.pyc and b/UIViewTKinter.pyc differ diff --git a/gui b/gui index ff111f4..7bc4681 100755 Binary files a/gui and b/gui differ diff --git a/log.txt b/log.txt new file mode 100644 index 0000000..e69de29 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..fe791ef --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash + + +cd Desktop/BCIProjekt/ +> log,txt +./gui >> log.txt +