Browse Source

Add Version Number

master
Igor Beloschapkin 4 years ago
parent
commit
88993b84b1
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      app.py

+ 11
- 3
app.py View File



# TODO Eventuell updatefunktion über git pull mit einbauen! # TODO Eventuell updatefunktion über git pull mit einbauen!


__version__ = 0.3

class App: class App:


def __init__(self, master): def __init__(self, master):
frame.pack() frame.pack()


# label generation # 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['font'] = tkFont.Font(family='Helvetica', size=16, weight='bold')
self.Lparadigm.pack() self.Lparadigm.pack()


self.BvisCal = makeBtn(self, "2. Kalibrierung", "lightgreen", self.btn_visCal, 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.Bp300 = makeBtn(self, "3. P300 Klassifizierung", "orange", self.btn_p300, TOP)
self.BvisCopy = makeBtn(self, "4. Freies Buchstabieren", "lightblue", self.btn_visCopy, 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: else:
print('Fehler: Bitte wählen Sie "Tactile" oder "Visual" als Argument') print('Fehler: Bitte wählen Sie "Tactile" oder "Visual" als Argument')
raise ValueError raise ValueError


# self.Bquest = makeBtnSmall(self, "6. Fragebogen", "green", self.btn_quest, TOP) # self.Bquest = makeBtnSmall(self, "6. Fragebogen", "green", self.btn_quest, TOP)
self.BtacConfig = makeBtnSmall(self, "Konfiguration", "gray", self.btn_config, 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.rowconfigure((0,1), weight=1) # make buttons stretch when
frame.columnconfigure((0,2), weight=1) # when window is resized frame.columnconfigure((0,2), weight=1) # when window is resized
config.write(open('config.ini','w')) config.write(open('config.ini','w'))
# TODO Catch errors falls falsche Ordner gewählt wurden # TODO Catch errors falls falsche Ordner gewählt wurden


def btn_test(self):
def btn_test(self): # TODO Remove
print('TEST') print('TEST')
print(self.paradigmText) print(self.paradigmText)



Loading…
Cancel
Save