Once you downloaded and installed the PyCharm, the next step is to launch it from the Start menu. The Pycharm dialog will be opened like:
Click on Create New Project, set the project location (for this, you can make a new folder for Pycharm projects) and Enter the project name. Next, you need to set up the virtual environment of your project. The most convenient method to deal with various dependencies is Virtualenv in Python. The virtual environment is simply a local directory on your system which consists of all the libraries and dependencies for a particular project. You can set up a virtual environment of your project as under:
Click on Create button, it takes little time for basic configurations and then opens the main screen of PyCharm.
First of all, click on the Terminal from the bottom toolbar. Just type the following commands to make sure PyQt5 and PyQt5-Tools are set up properly. If not already installed then it installs it now.
- pip install PyQt5
- pip install PyQt5-Tools
In the above screen, it states that PyQt5 and its Tools are already installed. On the other hand, if not already installed then the same commands will install the necessary tools.
Now, we can go ahead and start creating a GUI for our application. We create a GUI using Qt Designer which is installed under PyQt5-Tools. We can launch by typing PyQt5Designer command in the terminal. Once you typed the aforesaid command, it launches the Qt Designer application as shown below:
Click on Create button and it opens the main form as shown below:
You only need all this setup for the first time only. That's all about setting up. Now, you are ready to create GUI of your app and then use this in Python.
No comments:
Post a Comment