+ fun
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from gui.utils import nassi, output
|
from gui.utils import nassi, output
|
||||||
import PySimpleGUI as sg
|
import PySimpleGUI as sg
|
||||||
import os.path
|
import os.path
|
||||||
|
import random
|
||||||
|
|
||||||
def gui():
|
def gui():
|
||||||
#sg.theme_previewer()
|
#sg.theme_previewer()
|
||||||
@@ -58,6 +59,9 @@ def gui():
|
|||||||
if event == 'Exit' or event == sg.WIN_CLOSED:
|
if event == 'Exit' or event == sg.WIN_CLOSED:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if event == '-DONATE-':
|
||||||
|
sg.popup_annoying(('You donated $'+ str(random.randint(0, 1000000000000000)) + '.') , title='Error')
|
||||||
|
|
||||||
if event == '-OUTPUT FOLDER-':
|
if event == '-OUTPUT FOLDER-':
|
||||||
fnames = output(values)
|
fnames = output(values)
|
||||||
window['-OUTPUT FILE LIST-'].update(fnames)
|
window['-OUTPUT FILE LIST-'].update(fnames)
|
||||||
|
|||||||
Reference in New Issue
Block a user