PySimpleGUI/DemoPrograms
PySimpleGUI 5bab941f2d Simplified code some 2024-02-03 10:55:14 -05:00
..
PyDroid3 Added battleship mockup and changed video font size to fit phone's screen 2019-12-08 16:53:46 -05:00
Browser_START_HERE_Demo_Programs_Browser.py Error handling for when no editor has been configured 2023-01-25 07:57:50 -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_Elements.py Moved update animation call to after check for window closed. Was getting an error because attempt to update animation was happening after window was closed 2023-04-22 10:13:36 -04:00
Demo_All_Elements_Simple.py Got a few of the Demos up to date with changes standard to many demos (edit me, get versions for example) 2022-06-11 09:01:27 -04:00
Demo_Animated_GIFs.py Made initial window loop much shorter. Correctly handle closing initial window, add commented out line showing how to make transparent window if on windows, added copyright 2022-04-21 12:43:41 -04:00
Demo_Animated_GIFs_Using_PIL.py Cleaning up demos so local changes get rolled in. Old demos removed. There is a significant effort underway 2021-03-01 06:59:36 -05:00
Demo_Auto_Save_Window_Position.py Renamed the user settings key for window location to '-location-' 2021-08-15 17:53:35 -04:00
Demo_Bar_Chart.py Got a few of the Demos up to date with changes standard to many demos (edit me, get versions for example) 2022-06-11 09:01:27 -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 Removed pyperclip in the base64 single image encoding. Forgot to remove when the clipboard functions were added back in release 4.44.0. Changed docstring for clipboard_set to take bytes as well as string 2021-09-07 15:37:03 -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_Can_Button_Images.py New Demo Program demonstrating using images for "Can Buttons" 2022-09-14 08:38:31 -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_Simulated_With_Highlighting_Using_Bind.py Increased button pressed display font size. 2022-08-14 16:54:45 -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 Cleaning up demos so local changes get rolled in. Old demos removed. There is a significant effort underway 2021-03-01 06:59:36 -05:00
Demo_Button_Toggle2.py Fixed key error, fixed problem with events from elements with no metadata 2021-04-21 10:33:31 -04:00
Demo_Button_Toggle_Simple_Graphic.py New Demo - simplest form of a toggle button. 2021-10-15 13:59:34 -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 Cleaned up a very old demo. 2022-11-02 08:39:13 -04:00
Demo_Buttons_Base64_User_Settings.py Quick little demo of buttons and user_settings to store theme 2020-10-08 09:27:23 -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 Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04:00
Demo_Buttons_Realtime.py Removed old Pi Robotics demo. Added Demo_Buttons_Realtime 2021-04-06 17:45:41 -04:00
Demo_CLI_or_GUI.py Demo Program - shows a GUI if no arguments are provided when executed 2022-10-26 07:08:45 -04: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_Chat.py Changed enter_submits to True so that the bind_return_key works correctly. 2023-04-26 09:47:14 -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 Fixed to work with latest PySimpleGUI. Used really old code! Still needs version 0.8.7 of Chatterbot 2020-12-20 17:15:37 -05:00
Demo_Chatterbot_With_TTS.py Fixed to work with latest PySimpleGUI. Used really old code! Still needs version 0.8.7 of Chatterbot 2020-12-20 17:15:37 -05:00
Demo_Checkboxes_Custom.py Simplified logic for checkbox and text click handling/updating 2022-09-22 02:04:05 -04:00
Demo_Class_Wrapper.py Added a function around the functional example 2023-05-29 10:21:17 -04:00
Demo_Close_Attempted_Event.py Updated demo to confirm both the Exit button and "X" for closing window. 2021-03-21 09:59:44 -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 Shrink the window size to fit on smaller screens. 2021-08-15 18:59:27 -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_Color_Swatches.py Refreshed with built-in clipboard, friendlier to Trinket 2021-10-02 13:57:17 -04:00
Demo_Column_And_Frames.py Removed the importing of individual elements. Simplified and added more comments 2021-03-06 23:53:21 -05:00
Demo_Column_Collapsible_Sections.py Reworked the demo 2021-04-07 20:38:59 -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_Column_Fixed_Size_Justified_Elements.py New Demo showing how to make a fixed size column that can have the interior justified. 2021-10-20 14:01:55 -04:00
Demo_Columns.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05:00
Demo_Combo_Filechooser_With_History_And_Clear.py Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05:00
Demo_Compact_Layouts_Element_Renaming.py Removed extra read 2021-03-01 04:27:26 -05: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_Previewer.py New Demo Program - cursor previewer 2022-06-06 10:49:13 -04:00
Demo_Cursors.py Updated Demo to use the new cursor constant 2022-06-06 10:48:57 -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_Demo_Programs_Browser.py Better global theme support. Moved the line number to the front of the output 2021-03-07 18:48:26 -05:00
Demo_Design_Pattern_Multiple_Windows.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05: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 More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05:00
Demo_Design_Pattern_Save_Theme.py New Demo - Design pattern for main func, window create, and saving theme from one run to the next 2020-10-16 10:07:10 -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 Cleaned up 4 "rainmeter" demos. Removed exit button, added standard right click exit, edit, versions. Made drive status handle drives being added / removed, all now automatically save their last location for next time they start, version info window pops up on top of window at current location 2022-04-17 09:58:58 -04:00
Demo_Desktop_Widget_CPU_Gauge.py Addition of the standard "edit me" and "versions" right click menu 2022-06-12 17:44:14 -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_Grid_Of_Gauges.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_CPU_Square.py Addition of the standard "edit me" and "versions" right click menu 2022-06-12 17:44:14 -04:00
Demo_Desktop_Widget_CPU_Top_Processes.py Better exception handling for both event loop and for when processes exit 2022-05-05 15:49:01 -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_Count_To_A_Goal.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Date.py New Desktop Widget Demo - Date Display 2021-05-20 12:54:14 -04:00
Demo_Desktop_Widget_Date.pyw More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Days_Counter.py Enable changing the font. Better error checking and settings file delete option. 2021-05-20 12:54:53 -04:00
Demo_Desktop_Widget_Days_Until_Date.pyw More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Digital_Picture_Frame.py Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04:00
Demo_Desktop_Widget_Drive_Usage.py Cleaned up 4 "rainmeter" demos. Removed exit button, added standard right click exit, edit, versions. Made drive status handle drives being added / removed, all now automatically save their last location for next time they start, version info window pops up on top of window at current location 2022-04-17 09:58:58 -04:00
Demo_Desktop_Widget_Drive_Usage_Gauges.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Email_Notification.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Desktop_Widget_FedEx_Package_Tracking.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Launcher_Bar.py Added minimize feature, excel custom icon 2021-10-01 19:17:43 -04:00
Demo_Desktop_Widget_Launcher_Bar.pyw A .pyw version of the launcher demo (is using in an upcoming Cookbook entry) 2021-10-02 10:43:17 -04:00
Demo_Desktop_Widget_Manual_Counter.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_Desktop_Widget_Postit.py Automatically save window position. 2021-08-09 13:08:21 -04:00
Demo_Desktop_Widget_Postit_3_Lines.py Renamed postit to 3-line postit. Added new postit with expanded right click menu (a fuller desktop widget) 2021-08-08 13:14:08 -04:00
Demo_Desktop_Widget_RAM_Gauge.py Add the now standard "save last location" code that most of the "Desktop Widget" demo programs have 2022-09-07 09:18:20 -04:00
Demo_Desktop_Widget_RAM_Square.py Addition of the standard "edit me" and "versions" right click menu 2022-06-12 17:44:14 -04:00
Demo_Desktop_Widget_Template.py Better theme previewing. Better window ordering on Linux 2021-03-23 17:15:33 -04:00
Demo_Desktop_Widget_Time_Handwritten.py Added keep on top since it's a clock.... perhaps a personal taste thing and maybe should be an option? Will ponder this for desktop widgets across the board.... hmmmm...... 2022-05-05 07:20:08 -04:00
Demo_Desktop_Widget_Timer.py A little cleanup 2021-05-02 10:46:31 -04:00
Demo_Desktop_Widget_Timer_Using_Window_Timers.py New Demo Program using new Window.timer_stop and Window.timer_stop 2022-12-27 07:32:30 -05:00
Demo_Desktop_Widget_Weather.py Better exception handling... keep the app going rather than breaking from event loop. 2022-09-17 10:54:42 -04:00
Demo_Desktop_Widget_psutil_Dashboard.py Cleaned up 4 "rainmeter" demos. Removed exit button, added standard right click exit, edit, versions. Made drive status handle drives being added / removed, all now automatically save their last location for next time they start, version info window pops up on top of window at current location 2022-04-17 09:58:58 -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_Dispatchers.py Added a lambda example 2023-02-11 09:08:50 -05: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_Edit_Me_Option.py And updated version of the "Edit Me" right menu design pattern 2023-02-07 07:17:07 -05:00
Demo_Email_Send.py Update of the email send Demo Program 2022-07-30 15:59:25 -04:00
Demo_Emoji_Toolbar_PIL.py Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -04:00
Demo_Emojis.py New Demo with the PySimpleGUI Helpers 2021-03-03 16:07:08 -05:00
Demo_Event_Binding.py Added a window-level bind 2021-03-12 13:08:20 -05: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_Exception_Traceback_Popup.py Demo of popup_error_with_traceback (that I thought was checked in 2 years ago but wasn't...) 2024-01-24 10:31:40 -05:00
Demo_Execute_Py.py New Demo - Execute Py - shows link between global setting of interpreter and the exec API call execute_py_file 2021-05-09 15:52:04 -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_Focus_Navigation_Using_Arrow_Keys.py New Demo Program - Navigating focus using arrow keys on keyboard 2022-06-03 08:28:26 -04:00
Demo_Font_Previewer.py Added Text.fonts_installed_list - returns the fonts installed as reported by tkinter. 2022-01-23 06:39:46 -05: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 Fix so that it updates font correctly 2021-01-10 11:39:56 -05:00
Demo_Fonts_Using_pyglet.py Use path of __file__ to indicate where the font is stored 2022-06-23 17:44:00 -04:00
Demo_Frame_Based_Dashboard.py New Dashboard Demo that uses Frames instead of Columns 2021-10-27 16:49:56 -04:00
Demo_Frame_For_Screen_Captures.py New Demo Program - using a Frame element to draw a "Recording Area" frame on the screen for making videos 2022-05-29 18:48:07 -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_Game_Wordle.py New Demo Program - Wordle GUI 2022-03-05 06:53:01 -05:00
Demo_GitHub_File_Copier.py set encoding="utf8" so that can have special chars in files. ..otherwhise reads fail 2021-01-30 18:23:56 -05: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 Coimment about installing pymunk 2020-12-20 17:45:16 -05:00
Demo_Graph_Bar_Chart_Dual_Axis.py New Demo - Dual Axis bar chart 2022-03-10 08:25:24 -05:00
Demo_Graph_Custom_Progress_Meter.py Fixed simple typo 2022-03-05 06:18:05 -05: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_Drag_Rectangle_Super_Simple.py New Graph Element - drag a square around with mouse... thanks to @davesmivers for original base code.... 2022-05-28 06:23:21 -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 Addition of right click menu erase, save image and display of crosshairs 2023-05-18 12:05:07 -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_CPU_Meter.py New Demo Program - CPU Utilization shown on a very nice VU Meter Graphic 2023-02-28 06:27:57 -05:00
Demo_Graph_Elem_Image_Album.py Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -04:00
Demo_Graph_Elem_Image_Album_No_PIL.py New Demo Program - a non-PIL version of the image album demo that uses PIL. Demonstrates what PIL can do for your program. 2021-11-06 10:00:18 -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 Fixed typo in formula. Added normal Demo Program header. Changed axis drawing to adapt to size of coordinate, Changed font sizes, Made title and sliders expand in X direction. Draw empty axis upon startup 2022-06-05 08:08:22 -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_Window_Resize.py New Demo showing how to redraw figures on a Graph if the window resizes 2022-11-11 10:35:56 -05:00
Demo_Graph_pymunk_2D_Graphics.py Had timeout=1 which is a terrible idea (it's old code) 2021-05-29 16:31:16 -04:00
Demo_Graph_pymunk_Desktop_Balls.py Added a "Pause/Resume" button. 2020-10-13 12:03:25 -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_Hotkey.py Updated to use WIN_CLOSED constant 2021-03-26 20:19:23 -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 Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -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_From_URL.py Removed the Base64 encode as it's not required. The raw image data can be passed directly to the Image Element 2022-12-01 13:49:33 -05:00
Demo_Image_Resize_and_Base64_Encode.pyw Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04:00
Demo_Image_Viewer_Thumbnails.py Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -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 Much more up to date Demo of Autocomplete. Based on program by @bonklers 2021-03-30 17:55:20 -04:00
Demo_Input_Save_Last_Used_Entry_In_User_Settings.py Very Short Demo Program that saves the last value entered into Input element that is then used as the default in the future. 2022-07-19 08:46:01 -04:00
Demo_Input_Validation.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05: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 Fix in pinning demo 2023-06-09 06:31:15 -04:00
Demo_Justification_Columns.py Using Columns to Justify Elements 2021-07-20 15:17:09 -04:00
Demo_Justification_Using_Stretch_Elements.py Reworked the old "expasion" demo and used Stretch elements instead of expanding Text elements. Renamed the demo to have the word stretch in the name. 2021-08-30 16:06:45 -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 "Refreshed demo" - got rid of hacky base64 variables (one or more seemed to have errors), Added Celsius, ... basically updated to version I run locally daily. 2022-05-06 06:15:40 -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_Add_and_Delete_Rows.py Removed unnecessary check for isinstance of tuple.... a new pattern lately with tuples as keys. 2022-07-18 13:49:11 -04:00
Demo_Layout_Extend.py Added columns to the demo 2022-04-24 17:09:24 -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_Layout_Reuse_Effect.py New Demo - how to "reuse" a layout (but not by actually reusing it) 2021-03-22 13:33:31 -04:00
Demo_Layout_Vertical.py Moved Example 5B inside of Try/Except block in case unpacking isn't supported. 2020-10-10 12:51:44 -04:00
Demo_Layout_Vertical_Centered.py Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05:00
Demo_Layout_Vertical_Centered_Using_Sizer_Element.py Demo Using the Sizer Element 2021-08-22 15:58:31 -04:00
Demo_Layout_Vertical_Centered_Using_VPush_Element.py Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05: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_Listbox_Using_Objects.py New Demo Program - shows using objects instead of strings with Listbox 2022-11-03 08:12:20 -04:00
Demo_Long_Operations.py Replaced the multithreaded wrapper demo with one that calls Window.perform_long_operation 2021-07-23 09:51:38 -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_Make_Windows_Shortcut.ico Lots of fixes to the Make Shortcut, checked in icon for shortcut maker demo 2021-10-18 19:09:26 -04:00
Demo_Make_Windows_Shortcut.pyw Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05: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 Exception protection if something happens in the drawing of a figure. Added to code to ensure previously packed canvas is not packed again. 2022-08-05 13:48:11 -04:00
Demo_Matplotlib_Browser_Paned.py Exception protection if something happens in the drawing of a figure. Added to code to ensure previously packed canvas is not packed again. 2022-08-05 13:48:11 -04:00
Demo_Matplotlib_Embedded_TEMPLATE.py Added ability to change Matplotlib Style 2020-09-26 12:38:49 -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 Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -04:00
Demo_Matplotlib_Image_Elem.py Moved visibility setting out of the drawing function for better performance 2021-06-30 10:58:41 -04:00
Demo_Matplotlib_Image_Elem_Spetrogram_Animated.py New Demos of Matplotlib animated spectrogram - threaded and not threaded 2021-06-30 10:58:12 -04:00
Demo_Matplotlib_Image_Elem_Spetrogram_Animated_Threaded.py Switched to using the PySimpleGUI supplied threading capability instead of manually starting the thread 2022-03-28 18:27:50 -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_Styles.py New Matplotlib demo based on Template that allows changing Matplotlib Style and PySimpleGUI Theme to see what matches 2020-09-26 12:39:21 -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_Menubar_Custom.py Got a few of the Demos up to date with changes standard to many demos (edit me, get versions for example) 2022-06-11 09:01:27 -04:00
Demo_Menubar_Custom_and_Traditional.py Got a few of the Demos up to date with changes standard to many demos (edit me, get versions for example) 2022-06-11 09:01:27 -04:00
Demo_Menus.py Fixed menu definition (Help should have had a list like the other entries). Added key to the menu, etc. It's been a long time since updated. 2022-12-10 16:29:28 -05:00
Demo_Multi_Window_read_all_windows.py Demo program for read all windows that was evidently not checked in.... 2022-07-25 12:29:26 -04:00
Demo_Multiline_Elem_Input_Justification.py New demo to show how to make Multline element input justification correct 2021-02-03 13:17:51 -05:00
Demo_Multiline_Multicolored_Text.py Fix for missing font on debug print. Addition of font to Multiline demo program 2021-06-10 10:47:31 -04:00
Demo_Multiline_Right_Click_Menu_Clipboard.py Moved clipboard operations to a single function to make event loop cleaner 2021-06-06 10:31:54 -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_Multiple_Windows_read_all_windows_25_lines.py Super Simple 2-windows in 25 lines of code 2021-02-19 21:40:49 -05: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_Calling_Popup.py Demo showing how to generate a popup from a thread 2021-02-17 09:43:49 -05:00
Demo_Multithreaded_DataPump.py New Demo Program - a multi-threaded example using a queue to send data to your application 2022-11-12 11:02:09 -05:00
Demo_Multithreaded_Delegate_Appear_To_Make_PSG_Calls_From_Thread.py Update to make main GUI window less visible. Added a blocking popup at the end. 2022-11-18 16:53:12 -05: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 Simplified the multithreaded demo and introduced the tuple key design pattern for threading 2022-12-19 16:55:58 -05: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_ProgressBar.py Updated to use built-in threading call, tuples for thread keys, relative window position 2022-07-08 11:16:40 -04:00
Demo_Multithreaded_Write_Event_Value.py Removed cprint from thread. Added dummy button 2020-07-18 15:36:12 -04:00
Demo_Multithreaded_Write_Event_Value_MultiWindow.py Initial check-in of multi-threaded & multi-window write_event_value call. 2020-11-11 09:43:59 -05:00
Demo_Multithreaded_popup.py Added multiple thread window locations 2021-02-19 22:29:25 -05:00
Demo_Nice_Buttons.py Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04: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_Notify_Integration.py New Demo - Integrate with notifypy package 2021-06-23 13:52:15 -04:00
Demo_OpenCV.py Update to the latest coding guidelines. Use PPM encoding as it's been shown to be more efficient 2022-06-01 15:44:19 -04:00
Demo_OpenCV_4_Line_Program.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05:00
Demo_OpenCV_7_Line_Program.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05:00
Demo_OpenCV_Draw_On_Webcam_Image.py Switched to ppm format. Changed tkinter specific call to Graph.send_figure_to_back for portability 2021-06-20 08:06:07 -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 Simplified code. Made font size selectable using a slider. Removed USING_QT code. Window now resizable so that font resizing works 2022-06-22 15:45:52 -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_PIL_Color_Picker.py Made version window non-blocking 2022-11-26 07:01:24 -05:00
Demo_PIL_Rounded_Rectangle_Buttons.py Improvements to the newer PIL demos 2021-05-25 14:16:21 -04:00
Demo_PIL_Toggle_Button.py Improvements to the newer PIL demos 2021-05-25 14:16:21 -04:00
Demo_PIL_Use.py Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04:00
Demo_PNG_Thumbnail_Viewer.py Remove extra space accidently added (learned you can put spaces after periods in Python?) 2023-10-05 16:26:20 -04:00
Demo_PNG_Viewer.py Make the Image element expand so that the buttons will not jump around as much. 2023-01-03 14:16:52 -05: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_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 A new reworked version of pong! 2021-05-31 17:40:38 -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 Another Demo Program refresh... 2022-02-22 05:35:02 -05:00
Demo_Post_An_Issue.py Fixed logging github issue problem with overall and python years swapped 2021-12-06 08:52:41 -05:00
Demo_Progress_Meter_Simulated.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05: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_Diff_2_Files.py Addition of right click menu and set size of combo boxes to be 30 entries long. 2022-12-14 08:49:53 -05: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 Updated Radio Simulation using Image Elements 2021-10-23 08:27:49 -04:00
Demo_Reddit_Search.py Changed (significantly) to use the new User Settings API to store all of the credentials and search history 2020-11-13 14:47:41 -05:00
Demo_SDK_Help_Func_Parms.py New Demo Programs - SDK Help used in the Udemy course 2022-01-27 11:56:16 -05:00
Demo_SDK_Help_Init_Update_Parms.py New Demo Programs - SDK Help used in the Udemy course 2022-01-27 11:56:16 -05:00
Demo_Save_Any_Window_As_Image.py Removed need for OpenCV and numpy. 2022-03-05 06:17:51 -05: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 Removed need for OpenCV and numpy. 2022-03-05 06:17:51 -05: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 Removed old code that used Popen and instead uses the PySimpleGUI Exec API calls for an all-in-one demo. Added expansion of the Multilline and a SizeGrip so that it's obvious to user the window is resizable. 2022-05-14 15:10:37 -04:00
Demo_Script_Launcher_Realtime_Output.py Added handling of multiple arguments 2022-10-27 15:54:58 -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_Simple_Material_Feel.py Added a custom titlebar 2021-03-11 09:07:42 -05: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_Spin_Element_Wraps_Around.py Added some text, added use of Debug Window to display values since may be running from the Demo Browser where prints are not shown 2022-04-21 12:44:36 -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 Fixed numpy deprecated problems. Checking in improvement made long ago buit forgot to check in 2023-10-16 08:57:47 -04:00
Demo_Sudoku_1_Line.py More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05: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 More "Demo Program Catchup" updates. Working through them bit by bit..... 2022-02-22 05:20:03 -05:00
Demo_System_Tray_Icon_Using_psgtray.py New System Tray Icon demo using psgtray - Tray only version (no window is ever shown). Renamed other psgtray demo program to a similar name 2022-04-30 08:33:32 -04:00
Demo_System_Tray_Icon_psgtray_No_Window.py New System Tray Icon demo using psgtray - Tray only version (no window is ever shown). Renamed other psgtray demo program to a similar name 2022-04-30 08:33:32 -04:00
Demo_System_Tray_Reminder.py Replaced PIL's deprecated constant ANTIALIAS with LANCZOS 2023-10-05 16:11:51 -04:00
Demo_TTK_Scrollbars.py New Demo Program to show how TTK Scrollbars work 2022-04-28 12:37:06 -04:00
Demo_Table_CSV.py Demo updates with new theme calls 2019-12-24 18:52:47 -05:00
Demo_Table_CSV_Display.pyw Added filtering out option, home and end keys, and displaying number of selected rows to the Demo Program for displaying CSV files. 2022-09-24 15:27:25 -04:00
Demo_Table_Checkmark.py New Demo Program - Table with checkmarks 2023-02-25 13:21:26 -05:00
Demo_Table_Element.py Fixed "double" operation. Was including the header. Demonstrate that cols_justification can have illegal values 2022-06-02 17:17:54 -04:00
Demo_Table_Element_Header_or_Cell_Clicks.py Addition of double-clicking and showing the get_liast_clicked_position function. 2022-07-08 08:13:13 -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 Enabled resizing of table 2022-11-01 15:11:50 -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 Fixed layout-reuse error in the Nested Tabs demo. Added comment block.. .surprised no one noticed... may be time for a $5 prize again in the code 2022-04-20 10:08:20 -04:00
Demo_Tabs_Simple.py Addition of disable to Simple Tabs Demo 2022-07-03 16:33:51 -04:00
Demo_Text_Element_Autosize.py New Demo Program - Text Element - new fully autosize 2021-08-09 16:45:22 -04:00
Demo_Theme_Add_Your_Own.py New demo on how to add your own custom theme and then use it 2021-03-04 12:31:42 -05: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_Change_Your_Windows_Theme.py Demo - Change your window's theme 2021-02-14 23:25:19 -05:00
Demo_Theme_Color_Swatches.py New Demo Program - Theme Color Swatches 2020-10-14 09:10:19 -04:00
Demo_Theme_Custom_Saved_In_UserSettings.py Some cleaning up 2022-04-16 04:45:35 -04:00
Demo_Theme_Dark_Custom_Elements_Check_Toggle_Buttons.py New Demo Program Custom Images Dark Theme 2023-02-07 11:37:05 -05:00
Demo_Theme_Previewer_Dark.py Renamed the dark theme previewer demo 2020-07-23 17:25:38 -04:00
Demo_Time_Chooser.py Demo Program - Time Chooser (ONE more time!) 2023-01-06 16:12:40 -05:00
Demo_Timer_API_State_Machine.py Simplified code some 2024-02-03 10:55:14 -05:00
Demo_Timer_Periodic.py New Demo Program - generate periodic timer events 2022-12-23 08:45:01 -05: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 Updated CustomTitlebar demo. New screenshots for docs 2022-02-01 11:03:42 -05: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_Titlebar_Element.py Added code and comments to show all 3 ways to create a custom titlebar 2021-01-02 13:21:08 -05: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 Catching up demos that haven't been checked in... that I thought were....hmmm... there are a LOT of them.... 2022-02-16 18:00:19 -05: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_User_Setting_Save_Window_Inputs.py New Demo Program - Save/Load window inputs using User Settings API (JSON file) 2022-06-15 13:56:42 -04:00
Demo_User_Settings.py Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05:00
Demo_User_Settings_As_Simple_Database.py New Demo Program - Using User Settings as a Database 2022-06-04 11:56:00 -04:00
Demo_User_Settings_Auto_Load_and_Save.py Fixed typo in docstring 2023-02-06 11:43:54 -05:00
Demo_User_Settings_Browse_File_Folder.py More demo programs updates 🤦‍♂️ wow.....I thought for sure these were checked in.... 2022-02-16 19:51:47 -05:00
Demo_User_Settings_Class.py Catching up on the many many demo programs that were not checked in.... 2022-02-16 19:39:13 -05:00
Demo_User_Settings_Class_Remember_Input_and_Combo.py New Demo showing class interface for User Settings 2020-11-13 11:54:04 -05:00
Demo_User_Settings_Config_INI_Format.ini INI File for the User Settings Demo Program 2021-10-17 17:33:46 -04:00
Demo_User_Settings_Config_INI_Format.py Updated User Settings INI Demo with more examples of class interface 2022-03-01 04:39:16 -05:00
Demo_User_Settings_Remember_Input_and_Combo.py Added last value chosen for combo, popup with dictionary info. 2020-11-13 11:54:39 -05:00
Demo_Watermark_Window.py Demo Program to show new Watermark features 2023-03-07 20:14:08 -05: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_Config_Events.py New Demo Program to show how the new enable_window_config_events parameter works 2022-06-05 14:29:08 -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_Location_Finder.py Updated to use the exapand_x and expand_y parms. Uses a transparent color and added "edit me" feature 2022-01-14 12:39:56 -05:00
Demo_Window_Open_Multiple_Times.py Make the multiple open demo program more useful 2023-11-23 14:28:24 -05:00
Demo_Window_Pin_On_Top.py Version with temp methods in case running an old PySimpleGUI. 2021-08-23 12:50:51 -04:00
Demo_Window_Relative_Location.py New Demo Program - shows how to use the new Window parameter relative_location 2021-10-18 15:27:42 -04:00
Demo_Window_Timer.py Addition of Window.timer_get_active_timers to get a list of the currently active timers for a window. Added to the demo program. 2022-12-28 10:07:53 -05: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_one_line_progress_meter.py Demo one_line_progress_meter - a standalone demo for this capability 2021-02-20 07:51:57 -05:00
Demo_psutil_Kill_Processes.py Addition of horiziontal scrollbar 2021-10-13 06:00:03 -04:00
Demo_psutil_Kill_Python_Processes.py Checking in some accumulated changes - Added Sizegrip, window now resizable, show open files, filter checkbox for Python processes, Edit Me right click menu 2022-01-15 17:34:49 -05:00
Demo_pyfiglet.pyw Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05:00
OpenFlame.ttf New Demo - Demo_Fonts_Using_pyglet - adding fonts to tkinter using pyglet (thanks Jason!) 2022-02-14 13:37:09 -05: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
exampleGIF.gif Cleaning up demos so local changes get rolled in. Old demos removed. There is a significant effort underway 2021-03-01 06:59:36 -05:00
logo200.png needed for demo 2020-12-20 17:42:42 -05: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 Much needed update to the Demo Programs readme... 2022-06-11 07:42:43 -04: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 320 programs is your jump-start to getting 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 particular 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)
  • How to deal with common GUI problems (work requiring lots of time)

Demo Program Browser

The best way to work with these demos is to use the Demo Program Browser. This browser will enable you to search by filename and also enable you to search inside the demos, a particularly powerful capability.

It will enable you to run the programs or launch your editor / IDE to edit them.

Installing from GitHub

You'll find installation instructions in the Cookbook. It is the first Recipe in the Cookbook. The instructions are detailed with many screenshots.

Installation Using Pip

There are a few ways to get these programs on your system. One of the simplest is to use pip:

pip install psgdemos

Or if on Linux / Mac (that uses pip3

pip3 install psgdemos

This will install psgdemos from PyPI which includes the Demo Browser and all of these Demo Program source files.

To invoke the demo browser after installing using pip, type: psgdemos

from the command line and you'll be shown the Demo Browser

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.

Take a look at the Cookbook for more information about coding conventions used.

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.

There are Demo Programs folders under each of the ports folders in the GitHub.

Running Demos Online

Some of the Demo Programs are included in the online eCookbook (http://eCookbook.PySimpleGUI.org). The eCookbook has a mix of a few of these Demos along with some unique examples not in the Demo Program.

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

This link will get you to the eCookbook:

http://eCookbook.PySimpleGUI.org

Other Sample Code in this GitHub Account

The PySimpleGUI GitHub account has a number of repos that contain larger applications that use PySimpleGUI. A few linger in the PySimpleGUI project folder like the HowDoI, chess, exemaker, and some user created programs. They'll get moved out at some point. Until then, browse around the repo. Explore a little. Some are older, some newer, but none are as important as the Demo Programs folder which is kept up to date.

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 like JPGs, then that's more than likely a limitation that the underlying GUI Framework has rather than a bug. In this example, it's your responsibility to figure out how to convert your images into a format that's understood 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 a few rare examples were provided by PySimpleGUI users.

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

Because the PySimpleGUI project does not accept pull requests, it's unusual for Demo Progams to originate outside the project. The eCookbook is a better place to find user created examples.

Of cource, GitHub is where you'll find many 1,000's of user created PySimpleGUI programs, so go take a look! Issue #10 here on the PySimpleGUI GitHub has screenshots submitted by users and is another location you can go for examples and inspiration.

License

Copyright 2019, 2020, 2021, 2022 PySimpleGUI

GNU Lesser General Public License (LGPL 3) +