0% found this document useful (0 votes)
16 views14 pages

Python GUI

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views14 pages

Python GUI

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

PYTHON GUI - PySimpleGUI

CONTENTS

 INTRODUCTION
 ELEMENTS
 FUNCTION REFERENCE
 BASIC WINDOW STRUCTURE
 WINDOW WITH FRAME
 DYNAMIC FIELDS
INTRODUCTION

 Creating a simple graphical user interface (GUI) that works across multiple platforms can be
complicated.
 You can use Python and the PySimpleGUI package to create nice-looking user interfaces that you and
your users will enjoy!
 PySimpleGUI is a new Python GUI library that has been gaining a lot of interest recently.
 PySimpleGUI is a Python package that enables Python programmers of all levels to create GUIs.
 You specify your GUI window using a "layout" which contains widgets (they're called "Elements" in
PySimpleGUI).
 Your layout is used to create a window using one of the 4 supported frameworks to display and interact
with your window. Supported frameworks include tkinter, Qt, WxPython, or Remi.
ELEMENTS

 BUTTON

 CHECKBOX

 TEXT

 INPUT TEXT

 RADIO

 SPIN

 SLIDER

 COMBO
ELEMENTS
 FRAME

 LISTBOX
FUNCTION

 FILE BROWSE

 FOLDER BROWSE

 EXIT

 OK

 CANCEL

 QUIT

 POPUP

 POPUPCANCEL
BASIC WINDOW STRUCTURE
 PROGRAM

 Text & InputText are the elements of the window


 OK & Cancel are the function references of the window in the above program
CONTN..
 PROGRAM

 OUTPUT
ASSIGNMENTS

 Create a window with vertical and horizontal separation

 Create a window to select and run python files

 Create a window to change the theme of the window

 Update the button color from Green to Red when the button is clicked
WINDOW WITH FRAME
 PROGRAM

 OUTPUT
DYNAMIC FILED
 PROGRAM
CONTN..
 OUTPUT
ASSIGNMENTS
 Create a window with single input field and add horizontal dynamic input fields using ‘ + ’ button
THANK YOU

You might also like