PySimpleGUI/DemoPrograms
PySimpleGUI 6f9a92ba75 Spelling errors. Changed to dark theme 2020-09-25 18:12:21 -04:00
..
PyDroid3 Added battleship mockup and changed video font size to fit phone's screen 2019-12-08 16:53:46 -05:00
ButtonClick.wav Button Click Demo update 2019-11-27 17:19:31 -05:00
ButtonClick1.wav Button Click Demo update 2019-11-27 17:19:31 -05:00
Demo_All_Widgets.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Animated_GIFs.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Animated_GIFs_Using_PIL.py New Demo - Playback animated GIFs using PIL 2020-05-15 07:20:23 -04:00
Demo_Bar_Chart.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Base64_Image_Encoder.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Base64_Single_Image_Encoder.py New demo - Base64 single image encode 2020-04-18 20:49:53 -04:00
Demo_Borderless_Window.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Button_Click.py Replaced button click demo. It seems to have been overwritten by something completely different so found an old version and updated it a bit. 2020-06-22 04:28:29 -04:00
Demo_Button_Events_From_Browse.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Button_Func_Calls.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Button_States.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Button_Toggle.py Updated the Toggle-Button demo to use new color formats 2020-07-23 16:14:24 -04:00
Demo_Buttons_Base64_Shaded.py Spelling errors. Changed to dark theme 2020-09-25 18:12:21 -04:00
Demo_Buttons_Base64_Simple.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Buttons_Mac.py Set button background colors correctly so they blend with theme. 2020-08-11 09:12:51 -04:00
Demo_Buttons_Nice_Graphics.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Calendar.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Canvas.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Change_Submits_InputText.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Chat.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Chat_With_History.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Chatterbot.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Chatterbot_With_TTS.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Color.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Color_Chooser_Custom.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Color_Names.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Color_Names_Smaller_List.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Column_And_Frames.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Column_Collapsible_Sections.py Cleanup selection collapse demo 2020-08-05 08:43:19 -04:00
Demo_Column_Elem_Swap_Entire_Window.py Added PySimpleGUIQt as the secondary (commented out) import 2020-07-29 10:21:02 -04:00
Demo_Columns.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Compact_Layouts_Element_Renaming.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Compare_Files.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Control_Panel_Button_Grid.py New Demo - Show a window with icons like a control panel 2019-11-23 09:13:28 -05:00
Demo_Conways_Game_of_Life.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Crossword_Puzzle.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Cursor_Changed_To_Hand.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_DOC_Viewer_PIL.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Dashboard.py Removed requirement of new theme_add_new function (added theme using old way for now) 2020-06-11 16:44:25 -04:00
Demo_Date_Chooser.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Debugger_Built_Into_PSG.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Debugger_Button.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Debugger_ImWatchingYou.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Design_Pattern_Multiple_Windows.py All multi-window design patterns updated to use the new read_all_windows() call. 2020-07-30 08:13:54 -04:00
Demo_Design_Pattern_Multiple_Windows1.py All multi-window design patterns updated to use the new read_all_windows() call. 2020-07-30 08:13:54 -04:00
Demo_Design_Pattern_Multiple_Windows2.py Fixed crash when Window2 is closed. 2020-08-07 06:48:14 -04:00
Demo_Design_Pattern_Multiple_Windows3.py All multi-window design patterns updated to use the new read_all_windows() call. 2020-07-30 08:13:54 -04:00
Demo_Design_Pattern_Multiple_Windows_Both_Visible.py Fixed comment about checking for window closed 2020-08-07 07:34:51 -04:00
Demo_Design_Pattern_Multiple_Windows_OLD METHOD.py Replaced one multi-window design pattern with new read_all_windows 2020-07-27 06:58:17 -04:00
Demo_Design_Pattern_Persistent_Window.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Design_Patterns.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Desktop_Floating_Toolbar.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Desktop_Widget_CPU_Dashboard.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Desktop_Widget_CPU_Graph.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Desktop_Widget_CPU_Square.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Desktop_Widget_CPU_Top_Processes.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Desktop_Widget_CPU_Utilization_Simple.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Desktop_Widget_Drive_Usage.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Desktop_Widget_Email_Notification.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Desktop_Widget_RAM_Square.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Desktop_Widget_RAM_Used.py New Widget Added! 2020-06-16 10:54:13 -04:00
Demo_Desktop_Widget_Timer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Desktop_Widget_psutil_Dashboard.py Added location parameter so that launchers can place these widgets at any location on multiple screens 2020-07-28 04:11:25 -04:00
Demo_Disable_Elements.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_DuplicateFileFinder.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_EXE_Maker.py Cleanup of EXE Maker. Biggest potential impact is the --clean flag when calling pyinstaller 2020-05-13 08:19:43 -04:00
Demo_Email_Send.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Event_Binding.py Added a tuple example for button right click 2020-09-20 15:54:37 -04:00
Demo_Event_Callback_Simulation.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Fill_Form.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Floating_Toolbar.py Removed dictionary of parms for "user defined element" instead 2019-12-25 10:50:19 -05:00
Demo_Font_Previewer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Font_Sizer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Font_String.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Game_Frontend_Battleship.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Game_Frontend_Battleship_No_List_Comprehensions.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Game_Frontend_Battleship_Single_List_Comprehension.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_GoodColors.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_GoodColors_2.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Google_TTS.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Ball_Game.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Drag_Rectangle.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Drawing.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Drawing_And_Dragging_Figures.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Drawing_And_Dragging_Figures_2_Windows.py New version of the drawing and dragging demo that uses 2 windows. One is a floating palette of operations 2020-08-01 11:13:45 -04:00
Demo_Graph_Elem_Image_Album.py Created a single convert_to_bytes function that will take both filename and bytes as input 2020-06-16 10:54:40 -04:00
Demo_Graph_Element.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_Element_Sine_Wave.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_FourierTransform.py Removed finalize... not needejd 2020-03-31 18:50:45 -04:00
Demo_Graph_Noise.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_pymunk_2D_Graphics.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Graph_pymunk_Desktop_Balls.py New Demo that shows bouncing balls on your desktop. Uses the latest GitHub release of PySimpleGUI 2020-08-02 08:17:55 -04:00
Demo_Hello_World.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_HowDoI.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_IP_Address_Entry.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Image_Elem_Image_Viewer_PIL_Based.py changed convert_to_bytes function to use a context manager for better memory management 2020-07-25 17:45:19 -04:00
Demo_Image_Elem_Splash_Screen.py Replaced file with in-file base64 image 2020-07-24 19:19:41 -04:00
Demo_Image_Viewer_Thumbnails.py New demo - Image Viewer 2020-08-10 08:37:57 -04:00
Demo_Img_Viewer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Input_Auto_Complete.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Input_Validation.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Invisible_Elements.py NEW Technique... add a 1 pixel size(0,0) canvas to a row and the row will shrink when others made invisible 2020-08-03 15:24:07 -04:00
Demo_Invisible_Elements_Pinning.py Pin demo update 2020-08-03 16:01:05 -04:00
Demo_Keyboard.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Keyboard_ENTER_Presses_Button.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Keyboard_Realtime.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Keypad.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_LED_Clock_Weather.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_LED_Indicators.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_LED_Indicators_Text_Based.py Made an LED User Defined Element, compated the code for updating to a single line 2020-06-27 06:49:10 -04:00
Demo_Layout_Extend.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Layout_Generation.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Listbox_Search_Filter.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Look_And_Feel_Theme_Browser.py Reworked the look and feel preivew, browser, new table simulation with arrow keyskkkkkkkkkk 2019-11-17 18:00:35 -05:00
Demo_Look_And_Feel_Theme_Dump.py Reworked the look and feel preivew, browser, new table simulation with arrow keyskkkkkkkkkk 2019-11-17 18:00:35 -05:00
Demo_MIDI_Player.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Machine_Learning.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Main_Control_Test_Panel.py Simple demo to launch the "sg.main()" function. Good for getting to the upgrade and other utilities 2020-07-24 06:01:48 -04:00
Demo_Matplotlib.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Matplotlib_Animated.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Matplotlib_Animated_Scatter.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Matplotlib_Browser.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Matplotlib_Browser_Paned.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Matplotlib_Embedded_TEMPLATE.py Updated Matplotlib Template Program 2020-07-07 17:52:39 -04:00
Demo_Matplotlib_Embedded_Toolbar.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Matplotlib_Grid_of_Graphs_Using_PIL.py changed convert_to_bytes function to use a context manager for better memory management 2020-07-25 17:45:19 -04:00
Demo_Matplotlib_Ping_Graph.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Matplotlib_Ping_Graph_Large.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Matplotlib_PyLab.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Matplotlib_Two_Windows.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Media_Player.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Media_Player_VLC_Based.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Menu_With_Toolbar.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Menus.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Multiline_Multicolored_Text.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Multiline_cprint_Printing.py shortcut for cprint rather than using sg.cprint. 2020-07-09 05:31:15 -04:00
Demo_Multiple_Windows_Experimental.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Multithreaded_Animated_Shell_Command.py Changed multi-threaded demos to use new Window.write_event_value method 2020-07-18 13:42:32 -04:00
Demo_Multithreaded_Different_Threads.py Changed multi-threaded demos to use new Window.write_event_value method 2020-07-18 13:42:32 -04:00
Demo_Multithreaded_Logging.py Updated to use more recent design patterns. 2019-11-19 11:54:35 -05:00
Demo_Multithreaded_Long_Shell_Operation_Animated.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Multithreaded_Long_Task_Simple.py Changed multi-threaded demos to use new Window.write_event_value method 2020-07-18 13:42:32 -04:00
Demo_Multithreaded_Long_Tasks.py Changed multi-threaded demos to use new Window.write_event_value method 2020-07-18 13:42:32 -04:00
Demo_Multithreaded_Multiple_Threads.py Changed multi-threaded demos to use new Window.write_event_value method 2020-07-18 13:42:32 -04:00
Demo_Multithreaded_Write_Event_Value.py Removed cprint from thread. Added dummy button 2020-07-18 15:36:12 -04:00
Demo_Nice_Buttons.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_NonBlocking_Form.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Notification_Window_Alpha_Channel.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Notification_Window_Fade_In_Out.py Updated to use newest methods such as setting cursor and removing all sleeps. 2020-01-17 12:48:51 -05:00
Demo_Notification_Window_Multiprocessing.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_OpenCV.py Simplified 2020-05-14 22:45:21 -04:00
Demo_OpenCV_4_Line_Program.py Made import use PySimpleGUI instead of web, removed the shortcut from menus for easier reading 2020-04-06 14:59:23 -04:00
Demo_OpenCV_7_Line_Program.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_OpenCV_Draw_On_Webcam_Image.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_OpenCV_Simple_GUI.py Updated to latest coding conventions 2020-05-07 05:49:44 -04:00
Demo_OpenCV_Webcam.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_OpenCV_Webcam_ASCII.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_OpenCV_Webcam_Minimal.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_PDF_Viewer.py Fixed layout undefined error due to window created at wrong location in file. 2020-05-12 10:39:17 -04:00
Demo_PNG_Thumbnail_Viewer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_PNG_Viewer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Paned_Window.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Password_Login.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Pi_LEDs.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Pi_Robotics.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Ping_Line_Graph.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Pong.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Pong_Multiple_Platforms.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Popup_Custom.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Popups.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Progress_Meters.py Fixed bad import bug. Dunno how the code got in there 2020-06-11 09:38:39 -04:00
Demo_PyCharm_Launcher.py New PyCharm launcher demo 2020-06-26 08:35:16 -04:00
Demo_PyCharm_Self_Edit.py Demo of "PyCharm Me" Button 2020-08-27 18:16:11 -04:00
Demo_PyGame_Integration.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_PyGame_Snake_Game.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Pyplot_Bar_Chart.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Pyplot_Bar_Chart2.py More docstring fixes. no_titlebar parameter for one_line_progress_meter, renamed demo file 2020-03-23 23:17:04 -04:00
Demo_Radio_Buttons_Simulated.py New Demo - simulated radio buttons. Get the same behavior of radio buttons but using real buttons instead of RadioButtons 2020-06-16 13:30:21 -04:00
Demo_Reddit_Search.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Save_Any_Window_As_Image.py New Demo - Saves any window as an image file 2020-07-04 18:20:20 -04:00
Demo_Save_Window_As_Image.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Save_Windows_As_Images.py More options and feedback. 2020-08-09 09:14:55 -04:00
Demo_Script_Launcher.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Script_Launcher_ANSI_Color_Output.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Script_Launcher_Realtime_Output.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Script_Parameters.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Separator_Elements.py Acciently checked in a version importing the wrong PySimpleGUI 2020-06-19 08:08:00 -04:00
Demo_Settings_Save_Load.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Sort_Visualizer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Spinner_Compound_Element.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Status_Bar.py New statusbar demo to accompany change to StatusBar element. 2020-08-17 11:48:56 -04:00
Demo_Stdout.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Sudoku.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Super_Simple_Form.py New super-simple form Demo 2020-05-16 12:54:45 -04:00
Demo_System_Tray_GUI_Window_Design_Pattern.py Initial check-in of System Tray with GUI design pattern 2020-06-07 08:19:20 -04:00
Demo_System_Tray_Icon.py Super simple System Tray Icon demo program 2020-05-12 12:13:55 -04:00
Demo_System_Tray_Reminder.py New Demo - System Tray reminder. Shows a reminder message every X minutes 2020-04-13 11:29:57 -04:00
Demo_Table_CSV.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Table_Element.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Table_Pandas.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Table_Simulation.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Table_Simulation_Arrow_Keys.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Tabs.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Tabs_Nested.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Tabs_Simple.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Theme_Browser.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Theme_Previewer_Dark.py Renamed the dark theme previewer demo 2020-07-23 17:25:38 -04:00
Demo_Timer.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Titlebar_Custom_Async.py New demo - custom titlebar running as async 2020-08-14 12:57:10 -04:00
Demo_Titlebar_Custom_Dark_Theme.py New Custom Titlebar showing multiple color combinations 2020-08-20 07:41:52 -04:00
Demo_Titlebar_Custom_Multiple_Combinations.py Removed f-strings so can run on the Pi (3.4) 2020-08-25 17:25:40 -04:00
Demo_Touch_Keyboard.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Tree_Element.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Turtle.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Unicode_Characters.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Uno_Card_Game.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Window_Background_Image.py Added the custom titlebar so that the window can be moved by that titlebar. 2020-08-21 13:11:36 -04:00
Demo_Window_Disappear.py WIN_CLOSED bulk update. No more test for event is None, use WIN_CLOSED instead 2020-05-07 06:22:59 -04:00
Demo_Window_Open_Multiple_Times.py New demo - restart a window(recreates a window) 2020-08-13 15:00:08 -04:00
Demo_YouTube_Intro.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
Demo_Youtube-dl_Frontend.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_psutil_Kill_Processes.py Dark Grey 9 theme, slight change to error display when trying to kill self. 2020-09-18 13:04:01 -04:00
Demo_psutil_Kill_Python_Processes.py Dark Grey 9 theme, slight change to error display when trying to kill self. 2020-09-18 13:04:01 -04:00
TutorialCPUUtilization.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
db.sqlite3 Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
default_icon.ico Moved all demo programs into subfolder 2018-11-01 02:39:18 -04:00
ping.py Major update of all demo programs to use new PEP8 bindings, etc 2019-10-23 16:10:03 -04:00
readme.md Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
red_plus.ico Added an icon for testing 2020-03-30 19:13:08 -04:00

readme.md

PySimpleGUI Demo Programs

One Stop Shopping For Templates and Techniques

This folder of over 170 programs is your jump-start, spring board, boost, shove in the back, cheat sheet to get you to a solution as quickly as possible. You can think of them as Recipes from a large PySimpleGUI Cookbook.

Programs in this folder have a range of uses and reasons for existing

  • Demonstrate a particualar PySimpleGUI Element / Feature (Tables, Trees, Buttons)
  • Design patterns are "official" ways to get something done (Multiple windows)
  • Integrate PySimpleGUI with another package / technology (OpenCv, Matplotlib)
  • Assemble PySimpleGUI elements in a useful way (Bar graphs, games)
  • Additional user code that enable new functionality (ANSI color strings)
  • How to deal with common GUI problems (work requiring lots of time)

Coding Conventions

Special attention is given to the programs in this folder to ensure they conform to the latest "preferred" technique or naming convention. In the past, when technique changed, so did all of these demo programs. For example, the use of the FindElement method was replaced by using [ ]. All of these Demo Programs were updated to use the new convention.

For example, this line of code:

window.FindElement('status').Update(event)

was replaced with:

window['status'].Update(event)

There was a recent sweep through all of the Demo Programs where all code was changed to use the PEP8 naming conventions / bindings. All calls to Window.Read() were changed to window.read()

PySimpleGUI is on a swift development path. In a short amount of time a lot can change. To help ensure that users are using the latest, preferred, methods of using the PySimpleGUI package, these Demo Programs are the vehicle in which to communicate the latest design patterns.

Ports

Not all of the programs presented here are limited to the tkinter port of PySimpleGUI. Some programs show multiple import statements with some that are commented out. This is done to show you that the code is capable of running more than 1 platform. This example is from the Demo_Matplotlibe_Two_Windows.py file

from matplotlib import use
# import PySimpleGUI as sg
import PySimpleGUIQt as sg; use('qt5agg')

This indicates that the code can be run on either the tkinter or the Qt port. To switch ports, uncomment the one you want to run on and comment out the others.

Running Demos Online

Recently two online Pyuthon services have been used to demonstrate using PySimpleGUI- Trinket & repl.it. You will find not only some of the Demo Programs from this folder on these sites, but other demo programs as well. They make good "scratch pads" for posting PySimpleGUI code. They are superior to Pastebin because not only can you share your code, but people can run the code without having to install or do anything locally.

Trinket

If a demo does not require another package be installed and it's not specific to a particular platform then there's a possibility that it can be run online using Trinket. You'll find a number of these Demo Programs have been added to the PySimpleGUI Trinket pages.

The benefits of using Trinket include

  • No need to install PySimpleGUI or even Python on your local machine
  • Additional explanation can be included with the code, including images

You'll find the demos that have been added to Trinket here:

http://Trinket.PySimpleGUI.org

Repl.it

Prior to discovering Trinket PySimpleGUI demo programs were being hosted online on repl.it. Repl.it has several advantages over Trinket including:

  • Able to run both PySimpleGUI and PySimpleGUIWeb programs
  • Can use other packages with PySimpleGUI
  • Can pip install specific PySimpleGUI versions to use

You'll find a list of repl.it demos here:

https://repl.it/@PySimpleGUI

These programs may not be the most up to date and in fact are likely to contain old coding constructs and examples. As a result, use them more of a demonstration of "what's possible" rather than "exactly how to do it".

Support

These programs are not "officially" part of the PySimpleGUI code. They are not installed when you do a pip install for example.'

They are demonstrations, examples, and as a result may not be fully built-out, completed programs. In order to keep the code simple, they may not have all of the error checking that your program should have.

If you encounter a problem where a demo no longer functions, you are of course encouraged to open an Issue on the GitHub.

If you encounter more subtle problems, you should take into account that these programs are demonstrations, not end-user products. For example, if an image viewer application doesn't display all types of image files ilke JPGs, then that's more than likely a limitiation that the underlying GUI Framework has rather than a bug. In this example, it's your repsonibility to figure out how to convert your images into a format that's understod by the framework rather than an improvement needed in the demo program that will show you how to do that.

Author

The PySimpleGUI Organization and PySimpleGUI users

If the code has been provide by a PySimpleGUI user, then the comments at the top of the progrm will indicate the author.

License

Copyright 2019 PySimpleGUI.org

GNU Lesser General Public License (LGPL 3) +