程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python visualization, pyqt5 learning, pycharm extension tool addition

編輯:Python

List of articles

  • One 、PyCharm in QtDesigner Extension tools add and set
    • 1、 Open file , Click Settings
    • 2、 Select tool --> External tools
    • 3、 Select Add... In the upper right corner
    • 4、 Fill in... In turn name 、 describe
    • 5、 Application configuration : choice Under the current interpreter designer.exe file . How to query the location of the current interpreter , This article will not explain .
    • 6、 working directory : Select right plus
    • 7. successively Click on the confirmation 、 It can be applied
  • Two 、ui File conversion py file , Extension tool add
    • 1、 Same configuration as above , Into the first Set up --> Tools --> External tools
    • 2、 Then add , Parameters
    • 3、 Configure working directory
    • 4、 test

One 、PyCharm in QtDesigner Extension tools add and set

1、 Open file , Click Settings

2、 Select tool –> External tools

3、 Select Add... In the upper right corner

4、 Fill in... In turn name 、 describe

5、 Application configuration : choice Under the current interpreter designer.exe file . How to query the location of the current interpreter , This article will not explain .


6、 working directory : Select right plus

7. successively Click on the confirmation 、 It can be applied

Right click choice External Tools -->QTDesigner, eject designer, Then the configuration is complete

Two 、ui File conversion py file , Extension tool add

You can use the command line sentence To achieve , But it's too cumbersome , This article only speak Methods implemented using extension tools

1、 Same configuration as above , Into the first Set up –> Tools –> External tools

2、 Then add , Parameters

Among them to Program : This step is the same as above , But we must ***.ui file Convert to with the same name ***.py file , You need to configure the corresponding arguments , as follows

-m PyQt5.uic.pyuic F i l e N a m e FileName FileName -o F i l e N a m e W i t h o u t A l l E x t e n s i o n s FileNameWithoutAllExtensions FileNameWithoutAllExtensions.py

3、 Configure working directory

Click OK one by one 、 application Can finish

4、 test

choice ui file , Right click and select extension tool

The same name appears py file , You can succeed


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved