0% found this document useful (0 votes)
4 views

GUI Workshop (PyQt)

The document provides an overview of developing Graphical User Interfaces (GUIs) using PyQt, highlighting its advantages such as free availability, cross-platform support, and multi-language compatibility. It discusses various geometry management methods for window positioning and resizing, including .move(), .resize(), and .setGeometry(). Additionally, it briefly mentions creating different GUI components like buttons, labels, text fields, check boxes, and combo boxes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

GUI Workshop (PyQt)

The document provides an overview of developing Graphical User Interfaces (GUIs) using PyQt, highlighting its advantages such as free availability, cross-platform support, and multi-language compatibility. It discusses various geometry management methods for window positioning and resizing, including .move(), .resize(), and .setGeometry(). Additionally, it briefly mentions creating different GUI components like buttons, labels, text fields, check boxes, and combo boxes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Developing GUIs

using PyQt

- GDG VIT, Vellore


What is a GUI?

A GUI or Graphical User


Interface is a medium for a
user to interact with a
computer and its
components through
windows, buttons and so
on..
Different modules
available to develop
GUIs

➔ PyQt
➔ Tkinter
➔ Kivy
➔ WxPython
Why PyQt..
➔ Free Availability

➔ Cross - Platform

➔ Multi - Language Support

➔ Qt Designer
Creating a Window
Geometry Managers
➔ .move()

◆ Places the window at an absolute position on the


screen.

◆ Takes two parameters x and y to locate position.

◆ Example usage:
instanceName.move(x = 10, y = 10)
Geometry Managers
➔ .resize()

◆ Resizes the window’s/application’s dimensions.

◆ The .resize() method also takes two parameters, say x


and y, to set the width and the height of the window.

◆ Example usage:
instanceName.resize(x, y)
Geometry Managers
➔ .setGeometry()

◆ Combines both, .resize() and .move()

◆ Takes 4 parameters, two to represent the placement


of the window on the screen and the rest two to
represent the dimensions of the window itself.

◆ Example usage:
instanceName.setGeometry(xScreen, yScreen, width,
height)
Creating a Button
Adding a Tooltip
Creating a Label
Creating a Text Field
Creating a Check Box/Button
Creating a ComboBox
Thank You!

You might also like