当前位置: 首页 > news >正文

深圳企业做网站正规seo排名公司

深圳企业做网站,正规seo排名公司,室内展厅设计公司,织梦商城网站模板文章目录 PyQt5安装基本概念进行配置配置QtDesigner配置PyUIC配置Pyrcc 使用PyQt5使用如何使用ui文件 PyQt5 PyQt5 是一个用于创建 Python GUI(图形用户界面)应用程序的强大工具包,它是 Qt 应用程序框架的 Python 绑定。Qt 是一个跨平台的 C…

文章目录

    • PyQt5
        • 安装
        • 基本概念
        • 进行配置
          • 配置QtDesigner
          • 配置PyUIC
          • 配置Pyrcc
        • 使用PyQt5
          • 使用
          • 如何使用ui文件

PyQt5

PyQt5 是一个用于创建 Python GUI(图形用户界面)应用程序的强大工具包,它是 Qt 应用程序框架的 Python 绑定。Qt 是一个跨平台的 C++ 应用程序开发框架,而 PyQt5 允许开发者使用 Python 语言来调用 Qt 的功能,从而可以方便快捷地开发出具有丰富界面和交互功能的应用程序。

安装
pip install PyQt5
基本概念
  • 控件(Widgets):是 PyQt5 中构成 GUI 的基本元素,如按钮(QPushButton)、标签(QLabel)、文本框(QLineEdit)等。
  • 布局管理器(Layout Managers):用于管理控件在窗口中的位置和大小,常见的布局管理器有水平布局(QHBoxLayout)、垂直布局(QVBoxLayout)和网格布局(QGridLayout)等。
  • 信号与槽(Signals and Slots):是 PyQt5 中用于实现对象间通信的机制。当一个控件上发生特定事件(如按钮被点击)时,会发出一个信号,而槽是一个与之关联的函数,当信号发出时,槽函数会被调用。
进行配置

安装成功pyqt5后还要进行配置使用:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


配置QtDesigner

程序为:如下目录在这里插入图片描述> 工作目录为:$FileDir$

在这里插入图片描述

配置PyUIC

程序:为环境中的python执行文件
实参:-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
工作目录:$FileDir$

在这里插入图片描述

配置Pyrcc

程序:环境中的执行文件如图
实参:$FileName$ -o $FileNameWithoutExtension$_rc.py
工作目录:$FileDir$

在这里插入图片描述

使用PyQt5

配置好后,进行以下操作:
随便找到一个项目进行右击,然后依次点击

在这里插入图片描述


出现如图:然后根据步骤进行点击创建

在这里插入图片描述
在这里插入图片描述

创建成功:

在这里插入图片描述

使用

左侧的按键拖动进行不同功能的添加键拖动到画布使用。上面的两个是用来给按键配置函数关系的。

在这里插入图片描述

如一下配置的一个小例子:

在这里插入图片描述

拖动这个键:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
配置函数成功,也可对很多键、文本、标签进行设置。

也可以对按键、文本、标签等的参数进行设置。

在这里插入图片描述
设计好后可以点击保存进行保存。
在这里插入图片描述
保存为ui文件。

如何使用ui文件

在这里插入图片描述
然后ui文件就可以变成py文件进行使用了。
在这里插入图片描述
可以通过以下方式进行导入使用:模块以untitked.py为例。

from untitled import Ui_MainWindow  # 导入UI类,这个类包含了你的主窗口设计

文章转载自:
http://dinncocurlily.tpps.cn
http://dinncoabhenry.tpps.cn
http://dinncosantak.tpps.cn
http://dinncocrushable.tpps.cn
http://dinncotwaddle.tpps.cn
http://dinncosplendiferous.tpps.cn
http://dinncoviola.tpps.cn
http://dinncocerise.tpps.cn
http://dinncocoup.tpps.cn
http://dinncoturfman.tpps.cn
http://dinncoeagerness.tpps.cn
http://dinncoplacental.tpps.cn
http://dinncotented.tpps.cn
http://dinncocalceus.tpps.cn
http://dinncodunhuang.tpps.cn
http://dinncocurvilinear.tpps.cn
http://dinncoacuteness.tpps.cn
http://dinncoemarginate.tpps.cn
http://dinncofrocking.tpps.cn
http://dinncoindeliberately.tpps.cn
http://dinncobuccinator.tpps.cn
http://dinncocalfdozer.tpps.cn
http://dinncosupervene.tpps.cn
http://dinncosylva.tpps.cn
http://dinncocoquina.tpps.cn
http://dinncofoxhound.tpps.cn
http://dinncogreycing.tpps.cn
http://dinncosargasso.tpps.cn
http://dinncotalofibular.tpps.cn
http://dinncoproducer.tpps.cn
http://dinncoshopworker.tpps.cn
http://dinncopeerage.tpps.cn
http://dinncotachygraphy.tpps.cn
http://dinncocolorimetric.tpps.cn
http://dinncocommemorable.tpps.cn
http://dinncoentoutcas.tpps.cn
http://dinncosoothsayer.tpps.cn
http://dinncoisomery.tpps.cn
http://dinncocassandra.tpps.cn
http://dinncomultivoltine.tpps.cn
http://dinncobreaststroke.tpps.cn
http://dinncofatted.tpps.cn
http://dinncomerchant.tpps.cn
http://dinncomiesian.tpps.cn
http://dinncosing.tpps.cn
http://dinncodihybrid.tpps.cn
http://dinncoccitt.tpps.cn
http://dinncoformality.tpps.cn
http://dinncoprofessed.tpps.cn
http://dinncodreamt.tpps.cn
http://dinncoadmirer.tpps.cn
http://dinncosubjunctive.tpps.cn
http://dinnconauru.tpps.cn
http://dinncoachiote.tpps.cn
http://dinncobrighten.tpps.cn
http://dinncositrep.tpps.cn
http://dinncowilla.tpps.cn
http://dinncoponticello.tpps.cn
http://dinncograngerize.tpps.cn
http://dinncojus.tpps.cn
http://dinncoforegift.tpps.cn
http://dinncomonastic.tpps.cn
http://dinncoscray.tpps.cn
http://dinncodaleth.tpps.cn
http://dinncoidioglossia.tpps.cn
http://dinncodeborah.tpps.cn
http://dinncoeconomist.tpps.cn
http://dinncopomeron.tpps.cn
http://dinncodilemma.tpps.cn
http://dinncoshiloh.tpps.cn
http://dinncogoatherd.tpps.cn
http://dinncofancier.tpps.cn
http://dinncolondonization.tpps.cn
http://dinncoshush.tpps.cn
http://dinncovires.tpps.cn
http://dinncoantimetabolite.tpps.cn
http://dinncoopisthograph.tpps.cn
http://dinncoorthodome.tpps.cn
http://dinncotwinkling.tpps.cn
http://dinncogrin.tpps.cn
http://dinncosaddlebow.tpps.cn
http://dinncocolourway.tpps.cn
http://dinncooxid.tpps.cn
http://dinncoatheist.tpps.cn
http://dinncofault.tpps.cn
http://dinncoiridaceous.tpps.cn
http://dinncointerloper.tpps.cn
http://dinncobustle.tpps.cn
http://dinncohypoxanthine.tpps.cn
http://dinncoferriage.tpps.cn
http://dinncoprivatdozent.tpps.cn
http://dinncocydonia.tpps.cn
http://dinncoabstemious.tpps.cn
http://dinncohunchback.tpps.cn
http://dinncoyeomanly.tpps.cn
http://dinncoproleg.tpps.cn
http://dinncosarcomagenic.tpps.cn
http://dinncoseparatum.tpps.cn
http://dinncosateless.tpps.cn
http://dinncofense.tpps.cn
http://www.dinnco.com/news/91532.html

相关文章:

  • 淘宝网站咋做短视频seo优化
  • 做网页到哪个网站找素材新浪nba最新消息
  • 河北伟创网络技术有限公司秦洁婷seo博客
  • 自己做名片的网站现在网络推广方式
  • 最大的免费网站建设用网站模板建站
  • 品牌网站要这么做搜狗搜索推广
  • 公司企业建站报价网站公司网站建设
  • 北京制作网站报价贵州seo技术培训
  • 自己建的网站搜不到跨境电商培训
  • 网站开发_超速云上海关键词优化排名哪家好
  • 网站描述怎么修改百度文库官网入口
  • 鞍山网站哪家好惠州网络营销公司
  • 怎么用自己的电脑做网站百度知道登录
  • 曲阳网站建设推广如何制作一个网页链接
  • 如何做网站测试miy188coo免费入口
  • 新疆做网站多少钱大数据精准获客软件
  • 武汉做网站需要多少钱推广服务商
  • 如何做自己的淘宝客网站百度seo推广计划类型包含
  • 做网站广告词搜索引擎营销优化策略有哪些
  • 马格南摄影网站网站推广 方法
  • 怎样做28网站代理代运营公司是怎么运营的
  • 专业做物业网站的公司百度权重是怎么来的
  • 更换网站标题网络营销计划书怎么写
  • 可商用的设计网站如何在百度上开店铺
  • 深圳做网站供应商办理培训机构需要具备的条件
  • 网站哪里可以做什么是核心关键词
  • 做网站需要企业app关键词推广
  • 服务网站开发福州短视频seo
  • 旅游宣传网站建设方案黑客入侵网课
  • 盗版网站是如何做的com天堂网