PySimpleGUI/DemoPrograms
2022-04-17 09:58:58 -04:00
..
PyDroid3
Browser_START_HERE_Demo_Programs_Browser.py Unified the Demo Browser across GitHub and psgdemos PyPI release. 2022-02-19 09:19:28 -05:00
ButtonClick.wav
ButtonClick1.wav
db.sqlite3
default_icon.ico
Demo_All_Elements.py Swapped out Output element for Multiline. Includes the Titilebar, CustomMenubar, Sizegrip and standard "Edit Me" and "Versions" right click setting and numerous smaller changes 2022-01-06 11:31:54 -05:00
Demo_All_Elements_Simple.py Update of Demo All Elements Simple... thought this was updated a while ago! 2022-02-16 16:55:11 -05:00
Demo_Animated_GIFs.py
Demo_Animated_GIFs_Using_PIL.py
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 Updated Bar Char Demo - I thought this update was done long long ago! DOH! 2022-01-31 08:48:50 -05:00
Demo_Base64_Image_Encoder.py
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
Demo_Button_Click.py
Demo_Button_Events_From_Browse.py
Demo_Button_Func_Calls.py
Demo_Button_States.py
Demo_Button_Toggle.py
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
Demo_Buttons_Base64_Simple.py
Demo_Buttons_Base64_User_Settings.py
Demo_Buttons_Mac.py
Demo_Buttons_Nice_Graphics.py
Demo_Buttons_Realtime.py
Demo_Calendar.py
Demo_Canvas.py
Demo_Chat.py
Demo_Chat_With_History.py
Demo_Chatterbot.py
Demo_Chatterbot_With_TTS.py
Demo_Class_Wrapper.py New Demo - Class wrapper 2022-02-26 07:26:31 -05:00
Demo_Close_Attempted_Event.py
Demo_Color_Chooser_Custom.py
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
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
Demo_Column_Collapsible_Sections.py Reworked the demo 2021-04-07 20:38:59 -04:00
Demo_Column_Elem_Swap_Entire_Window.py
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
Demo_Compare_Files.py
Demo_Control_Panel_Button_Grid.py
Demo_Conways_Game_of_Life.py
Demo_Crossword_Puzzle.py
Demo_Cursors.py Renamed the cursor demo. Included example of turning off the cursor entirely at the element and the window level. 2021-07-02 15:04:30 -04:00
Demo_Dashboard.py
Demo_Date_Chooser.py
Demo_Debugger_Built_Into_PSG.py
Demo_Debugger_Button.py
Demo_Debugger_ImWatchingYou.py
Demo_Demo_Programs_Browser.py
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
Demo_Design_Pattern_Multiple_Windows2.py
Demo_Design_Pattern_Multiple_Windows3.py
Demo_Design_Pattern_Multiple_Windows_Both_Visible.py
Demo_Design_Pattern_Multiple_Windows_OLD METHOD.py
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
Demo_Design_Patterns.py
Demo_Desktop_Floating_Toolbar.py
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_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 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_Graph.py
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 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_Top_Processes.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_Utilization_Simple.py
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 Added auto-save of window location upon exit. This is going to be a new design pattern to be applied to all desktop widgets eventually 2021-08-15 17:54:15 -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_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_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_Desktop_Widget_RAM_Gauge.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_RAM_Square.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_Template.py
Demo_Desktop_Widget_Time_Handwritten.py Two new SYMBOL constants. New Demo Program - Desktop Widget Handwritten Digits 2022-02-26 12:50:31 -05:00
Demo_Desktop_Widget_Timer.py A little cleanup 2021-05-02 10:46:31 -04:00
Demo_Desktop_Widget_Weather.py Added metric units option 2022-03-07 16:06:31 -05:00
Demo_Disable_Elements.py
Demo_Dispatchers.py New Demo - Dispatchers - from the Udemy course 2021-05-02 10:46:19 -04:00
Demo_DOC_Viewer_PIL.py
Demo_DuplicateFileFinder.py
Demo_Edit_Me_Option.py
Demo_Email_Send.py
Demo_Emoji_Toolbar_PIL.py Update Demo_Emoji_Toolbar_PIL.py 2022-02-13 19:35:28 -05:00
Demo_Emojis.py
Demo_Event_Binding.py
Demo_Event_Callback_Simulation.py
Demo_EXE_Maker.py
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_Floating_Toolbar.py
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
Demo_Font_String.py
Demo_Fonts_Using_pyglet.py New Demo - Demo_Fonts_Using_pyglet - adding fonts to tkinter using pyglet (thanks Jason!) 2022-02-14 13:37:09 -05:00
Demo_Frame_Based_Dashboard.py New Dashboard Demo that uses Frames instead of Columns 2021-10-27 16:49:56 -04:00
Demo_Game_Frontend_Battleship.py
Demo_Game_Frontend_Battleship_No_List_Comprehensions.py
Demo_Game_Frontend_Battleship_Single_List_Comprehension.py
Demo_Game_Wordle.py New Demo Program - Wordle GUI 2022-03-05 06:53:01 -05:00
Demo_GitHub_File_Copier.py
Demo_GoodColors.py
Demo_GoodColors_2.py
Demo_Google_TTS.py
Demo_Graph_Ball_Game.py
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
Demo_Graph_Drawing.py
Demo_Graph_Drawing_And_Dragging_Figures.py
Demo_Graph_Drawing_And_Dragging_Figures_2_Windows.py
Demo_Graph_Elem_Image_Album.py Updated to include filename display, dark theme, removed old unused code, called window.refresh instead of window.read (the correct method to call in this situation) 2021-11-06 09:59:08 -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
Demo_Graph_Element_Sine_Wave.py
Demo_Graph_FourierTransform.py
Demo_Graph_Noise.py
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
Demo_Hello_World.py
Demo_Hotkey.py
Demo_HowDoI.py
Demo_Image_Elem_Image_Viewer_PIL_Based.py
Demo_Image_Elem_Splash_Screen.py
Demo_Image_Resize_and_Base64_Encode.pyw psgresizer demo updated both in Demo Programs and in the new standalone repo as well as on PyPI 2021-11-16 08:46:47 -05:00
Demo_Image_Viewer_Thumbnails.py
Demo_Img_Viewer.py
Demo_Input_Auto_Complete.py
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
Demo_Invisible_Elements_Pinning.py
Demo_IP_Address_Entry.py
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
Demo_Keyboard_ENTER_Presses_Button.py
Demo_Keyboard_Realtime.py
Demo_Keypad.py
Demo_Layout_Extend.py
Demo_Layout_Generation.py
Demo_Layout_Reuse_Effect.py
Demo_Layout_Vertical.py
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_LED_Clock_Weather.py
Demo_LED_Indicators.py
Demo_LED_Indicators_Text_Based.py
Demo_Listbox_Search_Filter.py
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
Demo_Look_And_Feel_Theme_Dump.py
Demo_Machine_Learning.py
Demo_Main_Control_Test_Panel.py
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
Demo_Matplotlib_Animated.py
Demo_Matplotlib_Animated_Scatter.py
Demo_Matplotlib_Browser.py
Demo_Matplotlib_Browser_Paned.py
Demo_Matplotlib_Embedded_TEMPLATE.py
Demo_Matplotlib_Embedded_Toolbar.py
Demo_Matplotlib_Grid_of_Graphs_Using_PIL.py
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
Demo_Matplotlib_Ping_Graph_Large.py
Demo_Matplotlib_PyLab.py
Demo_Matplotlib_Styles.py
Demo_Matplotlib_Two_Windows.py
Demo_Media_Player.py
Demo_Media_Player_VLC_Based.py
Demo_Menu_With_Toolbar.py
Demo_Menubar_Custom.py Replaced old MenubarCustom with the new one built into PySimpleGUI 2021-05-20 15:07:05 -04:00
Demo_Menubar_Custom_and_Traditional.py
Demo_Menus.py
Demo_MIDI_Player.py
Demo_Multiline_cprint_Printing.py
Demo_Multiline_Elem_Input_Justification.py
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_Multiple_Windows_Experimental.py
Demo_Multiple_Windows_read_all_windows_25_lines.py
Demo_Multithreaded_Animated_Shell_Command.py
Demo_Multithreaded_Calling_Popup.py
Demo_Multithreaded_Different_Threads.py
Demo_Multithreaded_Logging.py
Demo_Multithreaded_Long_Shell_Operation_Animated.py
Demo_Multithreaded_Long_Task_Simple.py
Demo_Multithreaded_Long_Tasks.py
Demo_Multithreaded_Multiple_Threads.py
Demo_Multithreaded_popup.py
Demo_Multithreaded_ProgressBar.py New Demo - Threaded Progress Meter 2021-06-05 19:05:08 -04:00
Demo_Multithreaded_Write_Event_Value.py
Demo_Multithreaded_Write_Event_Value_MultiWindow.py
Demo_Nice_Buttons.py
Demo_NonBlocking_Form.py
Demo_Notification_Window_Alpha_Channel.py
Demo_Notification_Window_Fade_In_Out.py
Demo_Notification_Window_Multiprocessing.py
Demo_Notify_Integration.py New Demo - Integrate with notifypy package 2021-06-23 13:52:15 -04:00
Demo_one_line_progress_meter.py
Demo_OpenCV.py
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
Demo_OpenCV_Webcam.py
Demo_OpenCV_Webcam_ASCII.py
Demo_OpenCV_Webcam_Minimal.py
Demo_Paned_Window.py
Demo_Password_Login.py
Demo_PDF_Viewer.py
Demo_Pi_LEDs.py
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 Fix for ICON_BASE64_LIST having been renamed in PySimpleGUI but not in the demo 2021-05-24 09:46:24 -04:00
Demo_Ping_Line_Graph.py
Demo_PNG_Thumbnail_Viewer.py A quick "refresh"... user bsawlor (thank you!) pointed out a float crash. Sliders return floats now and thus needs casting in this demo. 2021-11-10 13:37:11 -05:00
Demo_PNG_Viewer.py Refresh of demo to use coding conventions for keys, make portable filenames. It's an old demo that's not been updated in a couple of years 2021-11-19 14:34:54 -05:00
Demo_Pong.py A new reworked version of pong! 2021-05-31 17:40:38 -04:00
Demo_Pong_Multiple_Platforms.py
Demo_Popup_Custom.py
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
Demo_psgtray_Tray_Icon_Tkinter.py Demo program for use with psgtray 2021-06-21 10:07:51 -04: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_PyCharm_Diff_2_Files.py
Demo_PyCharm_Launcher.py
Demo_PyCharm_Self_Edit.py
Demo_pyfiglet.pyw Getting more Demo Programs synced up. New demo for VPush too 2022-02-21 14:12:15 -05:00
Demo_PyGame_Integration.py
Demo_PyGame_Snake_Game.py
Demo_Pyplot_Bar_Chart.py
Demo_Pyplot_Bar_Chart2.py
Demo_Radio_Buttons_Simulated.py Updated Radio Simulation using Image Elements 2021-10-23 08:27:49 -04:00
Demo_Reddit_Search.py
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
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_Script_Launcher_ANSI_Color_Output.py
Demo_Script_Launcher_Realtime_Output.py Updated the "realtime script launcher" demo to use the Exec APIs. Changed timeout error handling in execute_get_results 2022-02-15 10:55:41 -05:00
Demo_Script_Parameters.py
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_Separator_Elements.py
Demo_Settings_Save_Load.py
Demo_Simple_Material_Feel.py
Demo_Sort_Visualizer.py
Demo_Spinner_Compound_Element.py
Demo_Status_Bar.py
Demo_Stdout.py
Demo_Sudoku.py
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
Demo_System_Tray_GUI_Window_Design_Pattern.py
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_Reminder.py
Demo_Table_CSV.py
Demo_Table_Element.py
Demo_Table_Element_Header_or_Cell_Clicks.py Updated to match local changes I made a long time ago. 2022-03-18 05:38:53 -04:00
Demo_Table_Pandas.py
Demo_Table_Simulation.py
Demo_Table_Simulation_Arrow_Keys.py
Demo_Tabs.py
Demo_Tabs_Nested.py
Demo_Tabs_Simple.py
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
Demo_Theme_Browser.py
Demo_Theme_Change_Your_Windows_Theme.py
Demo_Theme_Color_Swatches.py
Demo_Theme_Custom_Saved_In_UserSettings.py Some cleaning up 2022-04-16 04:45:35 -04:00
Demo_Theme_Previewer_Dark.py
Demo_Titlebar_Custom_Async.py
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
Demo_Titlebar_Element.py
Demo_Touch_Keyboard.py
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
Demo_Unicode_Characters.py
Demo_Uno_Card_Game.py
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_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
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
Demo_Window_Background_Image.py
Demo_Window_Disappear.py
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
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_Youtube-dl_Frontend.py
Demo_YouTube_Intro.py
exampleGIF.gif
logo200.png
OpenFlame.ttf New Demo - Demo_Fonts_Using_pyglet - adding fonts to tkinter using pyglet (thanks Jason!) 2022-02-14 13:37:09 -05:00
ping.py
readme.md A little more info about the Demo Programs folder and other project folders.... 2021-05-23 10:06:55 -04:00
red_plus.ico

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 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)
  • Additional user code that enable new functionality (ANSI color strings)
  • 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. You'll find installation instructions in the Cookbook. This browser will enable you to search by filename and also enable you to search inside the demos, a particularly powerful capability.

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

Recently two online Python 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 GithubGists 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".

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 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.

License

Copyright 2019 PySimpleGUI.org

GNU Lesser General Public License (LGPL 3) +