Skip to content

Commit

Permalink
Fixed the bug!
Browse files Browse the repository at this point in the history
  • Loading branch information
weegeeday committed Sep 3, 2024
1 parent f95b47c commit 4104696
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,15 +559,13 @@
if event == '_PEW_':
print(SPN)
print(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.
PromptParser.PromptParser.newwrite(SPN,T) #updated! fixed multiple writing bug
sg.popup("Done!")
if event == '_PETLS_':
print(selected_index)
T.insert(int(selected_index),str(values['_PEIT_']))
#T[int(selected_index)] = str(values['_PEIT_']) #note: this does work, the issue is that when multiple are added, it fails to add them all.
window['_PETLS_'].update('Saved!')
time.sleep(1)

window['_PETLS_'].update('Save')
if event == '_PER_':
PromptParser.PromptParser.read()
Expand Down

0 comments on commit 4104696

Please sign in to comment.