Tuesday, 1 November 2016

Hello friends, first I want to say sorry to all of you for my absence till such a long time. I hardly come online in this period because of my personal issues. But now its all set so here we again.
Today I want to discuss a common problem arising for the people when they want to learn gui programming. So, I am thinking to start a gui programming tutorial series.
The first question comes in mind when we start to learn the gui programming is which language suits me best. The answer definitely depends upon your choice and command on the language. But in this tutorial series what I am following is Python. Because its really a simple language to start the fun part of the programming.
In this 1st part of our series adventure. I am going to tell you how to setup the environment for the programming.

Prelim for the tutorial series:-
1) A Basic knowledge of Python.
2) A Basic knowledge of class (Object Oriented) in Python.
3) A Trust in me. :) As all the three prelim are important for the series, but still the last one is mandatory. :D (Just Kidding :D )

Installing Python and PyQt on Windows:-
1) Go to the Python official site and download the python 2.7 package. It is the one which we follows in all our series. The link for the python official site is given below:-
 https://www.python.org/download/releases/2.7/
2) After installing the Python on the system update the Path variable of the window with Python interpreter location.
Note down the path shown above to update the path variable on Windows.

3) Now comes the other part download the PyQt package for the python. There are two main package available for the Python one is PyQt4 and other is PyQt5. PyQt4 is which we used in our complete series. Be aware when downloading the packages. Because these are for the Python 2.7 and Python 3 .Please download those which are compatible with the Python 2.7.
 A link of the official website is given below:-
https://www.riverbankcomputing.com/software/pyqt/download
                                               Or
You can use python pip command to install the PyQt4
4) After Downloading the package double click on it choose the right path (where python installed mine is shown in the pic below) to install the PyQt otherwise python interpreter will not find it.


5)After installing it open the python interpreter and run the following command:-
 from PyQt4 import *

If it is success means not showing any error then we successfully install python and PyQt4 on the system. You can see no error in the pic above. Congratulations You completed the first step of your journey. And now You have a road in front of you ahead.... In the next part of our series we are going to learn some basics of Gui and develop our first Gui application.
Bye Bye till the next part.
Happy programming..

No comments:

Post a Comment