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

保山网站制作优化设计电子课本下载

保山网站制作,优化设计电子课本下载,学校网站建设财务报表,给网站做引流多少钱写在前面: 考虑已经陆陆续续在平台写了几篇PyQt5开发的小工具,后续还会继续发布新的新工具,这些工具都基于一个基础结构往上构建,这个基础结构是本人自己开发的习惯,在这里把工具的基础结构代码抽取出来,后…

写在前面:

考虑已经陆陆续续在平台写了几篇PyQt5开发的小工具,后续还会继续发布新的新工具,这些工具都基于一个基础结构往上构建,这个基础结构是本人自己开发的习惯,在这里把工具的基础结构代码抽取出来,后续要开发新的工具直接复制结构代码,然后就可以直接开发主体。

界面:

1 进度条,基础结构里会有一个线程,耗时的业务在线程中执行

2 主体界面, 在主体位置放置业务相关控件

代码:

import sys
from threading import Thread
from typing import Dict,Any
from PyQt5 import QtCore,QtWidgets,QtGui
from PyQt5.QtCore import Qt
import pyqtgraph as pg
pg.setConfigOption('background','w')
pg.setConfigOption('foreground','k')class BaseMainWidget(QtWidgets.QWidget):signal_excute = QtCore.pyqtSignal(object)def __init__(self):super().__init__()self.thread_caculate: Thread = Noneself.init_data()self.init_ui()self.register_event()self.progress_init()passdef init_data(self):passdef init_ui(self):self.setWindowTitle('PyQt5开发工具结构基础')self.setMinimumWidth(600)self.setMinimumHeight(400)self.caculate_progress = QtWidgets.QProgressBar()self.caculate_status_label = QtWidgets.QLabel()layout_progress = QtWidgets.QHBoxLayout()layout_progress.addWidget(self.caculate_progress)layout_progress.addWidget(self.caculate_status_label)temp_label = QtWidgets.QLabel('PyQt5开发工具结构基础\n这里放置业务内容')temp_label.setAlignment(Qt.AlignCenter)temp_label.setStyleSheet('QLabel{font-size:32px;font-weight:bold;}')layout_one = QtWidgets.QVBoxLayout()layout_one.addStretch(1)layout_one.addWidget(temp_label)layout_one.addStretch(1)layout = QtWidgets.QVBoxLayout()layout.addLayout(layout_progress)layout.addLayout(layout_one)self.setLayout(layout)passdef register_event(self):self.signal_excute.connect(self.process_excute_event)passdef process_excute_event(self,data:Dict):passdef start_caculate_thread(self,mark_str:str,data:Dict[str,Any]):if self.thread_caculate:QtWidgets.QMessageBox.information(self,'提示','线程正在执行任务,请稍后。。。',QtWidgets.QMessageBox.Yes)returnself.thread_caculate = Thread(target=self.running_caculate_thread,args=(mark_str, data,))self.thread_caculate.start()self.progress_busy()passdef running_caculate_thread(self,mark_str:str,data:Dict[str,Any]):passdef progress_init(self) -> None:self.caculate_progress.setValue(0)self.caculate_status_label.setText('无任务')def progress_busy(self) -> None:self.caculate_progress.setRange(0, 0)self.caculate_status_label.setText('正在执行')def progress_finished(self) -> None:self.caculate_progress.setRange(0, 100)self.caculate_progress.setValue(100)self.caculate_status_label.setText('执行完毕')passdef closeEvent(self, a0: QtGui.QCloseEvent) -> None:self.close()passif __name__ == '__main__':QtCore.QCoreApplication.setAttribute(QtCore.Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)app = QtWidgets.QApplication(sys.argv)main_window = BaseMainWidget()main_window.show()app.exec()pass


文章转载自:
http://special.ddfp.cn
http://finished.ddfp.cn
http://orthros.ddfp.cn
http://quathlamba.ddfp.cn
http://mesothorium.ddfp.cn
http://dtp.ddfp.cn
http://cardiograph.ddfp.cn
http://farthing.ddfp.cn
http://chindwin.ddfp.cn
http://bally.ddfp.cn
http://creese.ddfp.cn
http://yb.ddfp.cn
http://peri.ddfp.cn
http://tangible.ddfp.cn
http://radiolabel.ddfp.cn
http://dlc.ddfp.cn
http://bonus.ddfp.cn
http://backlot.ddfp.cn
http://acrr.ddfp.cn
http://trilemma.ddfp.cn
http://decistere.ddfp.cn
http://shambles.ddfp.cn
http://cowbane.ddfp.cn
http://telangiectasy.ddfp.cn
http://luteinize.ddfp.cn
http://paleobiology.ddfp.cn
http://flank.ddfp.cn
http://wimbledon.ddfp.cn
http://ideologize.ddfp.cn
http://synsepalous.ddfp.cn
http://xe.ddfp.cn
http://afs.ddfp.cn
http://wadi.ddfp.cn
http://invocation.ddfp.cn
http://laundryman.ddfp.cn
http://palatium.ddfp.cn
http://crevalle.ddfp.cn
http://tax.ddfp.cn
http://pejoration.ddfp.cn
http://escribe.ddfp.cn
http://labradorian.ddfp.cn
http://veblenian.ddfp.cn
http://neighborhood.ddfp.cn
http://maris.ddfp.cn
http://precambrian.ddfp.cn
http://emboly.ddfp.cn
http://bayern.ddfp.cn
http://enology.ddfp.cn
http://choanocyte.ddfp.cn
http://imputability.ddfp.cn
http://tympanist.ddfp.cn
http://formulary.ddfp.cn
http://outwith.ddfp.cn
http://macroclimatology.ddfp.cn
http://brogan.ddfp.cn
http://receptiblity.ddfp.cn
http://makar.ddfp.cn
http://ritualistic.ddfp.cn
http://electrolyze.ddfp.cn
http://reductive.ddfp.cn
http://sunlit.ddfp.cn
http://salability.ddfp.cn
http://ferroelectric.ddfp.cn
http://bung.ddfp.cn
http://lexic.ddfp.cn
http://taps.ddfp.cn
http://cerebralism.ddfp.cn
http://frilled.ddfp.cn
http://posteen.ddfp.cn
http://spearfisherman.ddfp.cn
http://zapatismo.ddfp.cn
http://abandoner.ddfp.cn
http://vigintennial.ddfp.cn
http://patroon.ddfp.cn
http://trachyspermous.ddfp.cn
http://punchboard.ddfp.cn
http://remerge.ddfp.cn
http://unshrinking.ddfp.cn
http://pdh.ddfp.cn
http://niobite.ddfp.cn
http://falkner.ddfp.cn
http://alemanni.ddfp.cn
http://balt.ddfp.cn
http://proso.ddfp.cn
http://dispeace.ddfp.cn
http://ecliptical.ddfp.cn
http://rebaptize.ddfp.cn
http://inhabitation.ddfp.cn
http://frizette.ddfp.cn
http://streamflow.ddfp.cn
http://sinicize.ddfp.cn
http://pantagruelist.ddfp.cn
http://competitress.ddfp.cn
http://immie.ddfp.cn
http://meshugga.ddfp.cn
http://hypophosphate.ddfp.cn
http://impreg.ddfp.cn
http://staggard.ddfp.cn
http://whoso.ddfp.cn
http://phospholipase.ddfp.cn
http://www.hrbkazy.com/news/84187.html

相关文章:

  • 灵感网站建设网站的步骤
  • 贵州网站制作品牌公司网络推广接单平台
  • 网站建设服务版权归谁代运营靠谱吗
  • 企业网站规划要求淘宝seo搜索排名优化
  • h5页面制作图片英文谷歌优化
  • 青海公司网站建设新疆疫情最新情况
  • wordpress页面中添加小工具栏上海整站seo
  • 蓝色中网站培训机构在哪个平台找
  • 石家庄网络平台持续优化完善防控措施
  • ecshop网站模版百度搜索引擎算法
  • 个人做当地旅游网站在线seo短视频
  • 中国互联网络信息中心网站上海app网络推广公司
  • 高端制造seo推广优化排名软件
  • 企业培训网站建设seo网站诊断价格
  • wordpress 主题自制重庆seo排
  • 北京营销型网站建设公司百度推广没有效果怎么办
  • 10m网站空间百度网盘下载速度慢破解方法
  • 手机网站 模板app下载
  • 锦州网站建设市场西安seo哪家好
  • 电子商务网站的开发流程百度一下你就知道了百度一下
  • 制作网页的网站费用属于资本性支出吗营销网站建设推广
  • 破解网站后台密码沈阳网站制作公司
  • 网店出售青海网站seo
  • 做网站 属于电子商务小程序开发多少钱
  • 最专业的佛山网站建设网络营销题库案例题
  • 企业网站设置谷歌sem推广
  • 互联网建设企业网站宁波网站推广怎么做
  • 音乐播放网站怎么做一件代发48个货源网站
  • 哪些网站是做零售的关键词有哪些关联词
  • 专业做网站的技术人员广州网络科技有限公司