], [ sg.Button("Enter"), sg.T(' '), sg.Button('Exit') ] ] new_trans = sg.Window('New Transaction', new_trans_layout) ############ # Notebook :- ############ elif not notebookActive and dash_event == 'Notebook': sg.Popup('Under construction!', 'Deadline ' + strike(seven_july)) ############# # Analytics :- ############# elif not analyticsActive and dash_event == 'Analytics': sg.Popup('Under construction!', 'Deadline ' + strike(seven_july)) ####################### # Transaction History:- ####################### elif not historyActive and dash_event == 'Transaction History': historyActive = True dash_active = False
import PySimpleGUIWx as sg import sys import time sg.Popup('Test' * 10, title='My title') # sg.Print('test', location=(400,200)) # sg.PopupScrolled(sg.ObjToString(sg.Window), title='My scrolled popup', non_blocking=True) # sg.Print('Outputting to another line\n') sg.PopupNonBlocking('Issues changed on GitHub ', 'First issue # is {}'.format(1), background_color='red', keep_on_top=False) file = sg.PopupGetFile('Get file', save_as=False, file_types=(("ALL Files", "*.jpg"), ), no_window=False) folder = sg.PopupGetFolder('Getting a folder', no_window=False) sg.Popup('Test' * 10, title='My title') sg.Print('file = ', file) sg.Print('folder = ', folder) sg.Print(file) # sg.Print(file) sg.PopupQuickMessage('This is a quick message', location=(1000, 600)) # Here, have some windows on me.... [ sg.PopupNoWait('No-wait Popup', location=(500 + 100 * x, 500)) for x in range(10) ] answer = sg.PopupYesNo( 'Do not worry about all those open windows... they will disappear at the end',