Hello friends, I'm Parwis and this is our first video in Pi Q25 GUI programming
This is our first video and in the first video we will discuss and introduce Pi Q25
We will install Pi Q25 and also we will make our first window in Pi Q25
Okay now let's get started. What's Pi Q2 5? P Q25 is a set of Python bindings
bindings for Q25 applications framework it's available for the Python 3 and
Python 2 but in these videos we are using Python 3 3.6 cute library is one of the
most powerful and famous GUI libraries and also pi Q2 5 is implemented as a set
of Python modules It has over 620 classes and 6,000 functions and methods
It is a multi-platform toolkit which runs on all major operating systems, including Unix Windows and Mac OS
Also, Pi Q25 is dual license. It means that developer can choose between GPL and commercial license
For the installation of Pi Q25, it's easy and simple in Windows
Just from your common line, you can just install, you can just write PIP, install
and install Pi Q25 and enter. I think it is 60 or 17 megabyte and it will be downloaded
Pi Q2iQ2i5 has classes are divided into several modules
We have QTacour, QTG, QutWG, QTWITs, QTMultimedia, QT-SVG, QT WebSocket, and there are
different classes in Pi Q2iQ2. We will introduce them in further videos Now it time that we should make some coding and write our first
window in Pi Qtify. The first thing you need I use PiCharm ID. It's a good idea. We can
download this. It has commercial and open source edition. I'm using open source
now in my directory I make a new Python file call it my Windows
now in the first step we need some classes from Pi Q2i5 to download the first one is we can write from Pi Q25 import
import QtGui also we need we are using QtGui for our application icon
and also we need from Pi Q25 dot Q2 widgets import Q application
and also we need Q main window okay now make our first class
and Python class I call it window and give it Q main window
okay now make your constructor in it and also super
dot in it okay now the first thing we need in the constructor
in the class self dot title I give it pi Q2 5
sorry pi Q2 5 window I need I need a dot top
give it 100 self dot left and give it 100 and also self dot weight it is 600 it is 600
set up height for the height I'm giving I think 500 it's good 500
now we make our init window function and if I call it in it window window
now in here the first thing I set my window title cell dot set window title and I
give this at this my variable self title sorry so dot tight
tight it is title title like this okay the second we should make our window with an height
self dot set geometry this geometry this geometry is for our top left wet and height and we give here self dot top it needs some
parameters self dot left self dot wet and also the last one self dot height and also
show you were window. Now in here we should make our application loop and also we should
exit our application. App, make a variable app, Q application and CES, also you
should import SIS I forgot to import SIS Import SES Okay Now import sys import s okay now import s sorry
now in here says dot arcv argument vector now make your class object
I call it window window window and in here says dot exit app
exude now if I run this you should see a window
sorry I forgot I should call my this function or method in here in it
nilve dot init window now if I run this I should see a window yeah you can see
that this is our first window in 5 Q2 5 5 window now you can see that we don't
have any icon in here we want to add that our icon in this section I have an
icon at name of icon.png okay now in here We have imported our cute GUI
This cute GUI is for our icon. Self.set window icon, cuteGooey, dot QIken
And in here you can give your icon name. My icon name is icon.png
If I run this, you can see that we have our window, our title, PQ to 5 window, and also we have our icon
This was our first video. If you have any question, please let me know
And also please, please, for the further videos, subscribe and like my videos
Thank you guys