Skip to main content

Posts

Showing posts with the label IDE

Create a Simple GUI using Python and PySimpleGUI

  Create a Simple GUI using Python and PySimpleGUI T oday, We are working on with a new python GUI package, which is simple and understandable. It was developed to ease the GUI development. You are not required to write many lines of code to build up a beautiful GUI. PySimpleGUI is  a wrapper for tkinter and PyQT. Web based applications can be developed easily using PySimpleGUI.  Installing PySimpleGUI: pip install pysimplegui pip3 install pysimplegui We can also use pip along with python to install packages: python - m pip install pysimplegui After finishing up all the steps above, now, let's get into the process of creating our first GUI application. Firstly, we need to import the PySimpleGUI package: import PySimpleGUI as sg Now, we have imported our GUI package and provided an alias for the package as  sg.  Next, we need to write a layout. Layout is the building block of our GUI, it consists of rows and columns. layout = [ [ sg . Text ( "Hello" ) ] ] Obser...