adjust Icon to start Programm
This commit is contained in:
parent
0208f42b8d
commit
4cc7257d5f
10
BCI.desktop
Executable file
10
BCI.desktop
Executable file
@ -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
|
14
Readme.txt
Normal file
14
Readme.txt
Normal file
@ -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.
|
||||
|
||||
|
@ -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):
|
||||
|
BIN
UIController.pyc
BIN
UIController.pyc
Binary file not shown.
@ -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)
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user