Änderung an ProgrammExit

This commit is contained in:
2023-12-19 09:03:50 +01:00
parent a14bc8fba4
commit ab8f5bd27e

View File

@@ -354,7 +354,7 @@ class MyApp(ShowBase):
label_menu = DirectDialog(text="Hauptmenü", parent=self.gameOverScreen, scale = 1, pos=(0,0,0.5))
if(us.checkuserdb() == False):
#label_enter_name_msg = DirectDialog(parent=self.gameOverScreen, text="Gib deinen Namen ein:", scale=0.05, pos=(-0.6, 0.5,0))
label_input = DirectEntry(parent=self.gameOverScreen, text="Name", width=15, scale = 0.05, pos=(-0.6,0.5,0), relief=SUNKEN)
label_input = DirectEntry(parent=self.gameOverScreen, text="Name", width=15, scale = 0.05, pos=(-0.6,0.5,0), relief=DGG.SUNKEN)
elif(us.checkuserdb() == True):
pos_button_x = 0
@@ -417,8 +417,8 @@ class MyApp(ShowBase):
def quit(self):
#self.taskMgr.destroy() #Bereitet unter Linux Probleme
self.us.__del__(self.us)
sys.exit()
#self.us.__del__(self.us)
app.finalizeExit()
#Dieser Task wird bei Berechnungs jeden Frames ausgeführt