From 5412c657d4b20579dfcbc8001ac0045fe2eb5b5a Mon Sep 17 00:00:00 2001 From: weegeeday <38634611+weegeeday@users.noreply.github.com> Date: Thu, 22 Aug 2024 21:22:58 -0400 Subject: [PATCH] Update GUI.py Remove save func, as its currently broken. --- GUI.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GUI.py b/GUI.py index 7d470de..cc7166f 100644 --- a/GUI.py +++ b/GUI.py @@ -119,7 +119,7 @@ ToolPE = [[sg.TabGroup(ToolPET,selected_background_color="#323232",expand_x=True,expand_y=True,key='_PETABG_')], [sg.InputText(key="_PEIT_",expand_x=True,default_text="Text")], - [sg.Button('Read',key='_PER_', mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold'),sg.Button('Write',key='_PEW_', mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold'),sg.Button('Save',key='_PETLS_',mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold')], + [sg.Button('Read',key='_PER_', mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold'),sg.Button('Write',key='_PEW_', mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold')], #sg.Button('Save',key='_PETLS_',mouseover_colors=("#c394fc","#BB86FC"),font='_ 9 bold')], [sg.Text("Changing tabs will reset progress.")]] ToolSelect = [ [sg.Canvas(background_color="#121212",size=(10,10),key='_c1_')], @@ -558,13 +558,13 @@ if event == '_PEW_': print(SPN) print(T) - PromptParser.PromptParser.newwrite(SPN,T) + PromptParser.PromptParser.newwrite(SPN,T) # this needs to be updated for it to actually use the saved versions. the save function needs work, as of now its only one prompt. sg.popup("Done!") if event == '_PETLS_': print(selected_index) - T[int(selected_index)] = str(values['_PEIT_']) + T[int(selected_index)] = str(values['_PEIT_']) #as of looking at this, it fails to use this later.. window['_PETLS_'].update('Saved!') - time.sleep(0.02) + time.sleep(5) window['_PETLS_'].update('Save') if event == '_PER_': PromptParser.PromptParser.read() @@ -610,4 +610,4 @@ T = [None] * 200 SPN = 4 print("window close") -window.close() \ No newline at end of file +window.close()