06 2021 档案

摘要:![](https://img2020.cnblogs.com/blog/2325334/202106/2325334-20210628175030432-1341795589.png) 阅读全文
posted @ 2021-06-28 17:51 博客zhu虎康 阅读(26) 评论(0) 推荐(0) 编辑
摘要:Eclipse如何设置自动提示 1、“windows”->"preferences",弹出preferences设置窗口。 2、在preferences中找到Java,依次展开列表"Editor"->"Content Assist",点击Content Assist后,在设置窗口下方找到Auto a 阅读全文
posted @ 2021-06-22 14:16 博客zhu虎康 阅读(291) 评论(0) 推荐(0) 编辑
摘要:演示: 代码 import sys from PyQt5 import QtWidgets, QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * class 阅读全文
posted @ 2021-06-10 16:33 博客zhu虎康 阅读(2551) 评论(0) 推荐(0) 编辑
摘要:演示: 代码: # 显示控件提示消息 import sys from PyQt5.QtWidgets import QHBoxLayout,QMainWindow,QApplication,QToolTip,QPushButton,QWidget from PyQt5.QtGui import QF 阅读全文
posted @ 2021-06-09 17:59 博客zhu虎康 阅读(114) 评论(0) 推荐(0) 编辑
摘要:演示: 代码 import sys from PyQt5.QtWidgets import QHBoxLayout,QMainWindow,QApplication,QPushButton,QWidget class QuitApplication(QMainWindow): def __init_ 阅读全文
posted @ 2021-06-09 16:04 博客zhu虎康 阅读(609) 评论(0) 推荐(0) 编辑
摘要:# QDesktopWidget import sys from PyQt5.QtWidgets import QDesktopWidget,QMainWindow,QApplication from PyQt5.QtGui import QIcon class CenterForm(QMainWi 阅读全文
posted @ 2021-06-09 14:47 博客zhu虎康 阅读(904) 评论(0) 推荐(0) 编辑
摘要:演示 代码 import sys from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5.QtGui import QIcon class FirstMainWin(QMainWindow): def __init__(self 阅读全文
posted @ 2021-06-09 14:42 博客zhu虎康 阅读(129) 评论(0) 推荐(0) 编辑
摘要:演示 代码 from PyQt5.QtWidgets import * import sys class pushButton(QWidget): def __init__(self): super(pushButton,self).__init__() # 对方法进行调用 self.initUI( 阅读全文
posted @ 2021-06-09 11:36 博客zhu虎康 阅读(2126) 评论(0) 推荐(1) 编辑
摘要:演示效果 附源码 import sys from PyQt5.QtWidgets import QWidget, QMessageBox, QApplication class Example(QWidget): def __init__(self): super().__init__() self 阅读全文
posted @ 2021-06-05 09:09 博客zhu虎康 阅读(401) 评论(0) 推荐(1) 编辑
摘要:预览效果 源码 # -*- coding: utf-8 -*- ''' 【简介】 PyQt5中QRadio例子 ''' import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets impor 阅读全文
posted @ 2021-06-04 16:51 博客zhu虎康 阅读(429) 评论(0) 推荐(0) 编辑
摘要:PyQt5实践——《做一个天气预报的查询》 第一步: 设计界面,我们这里直接用Qtdesign设计。 为了大家比较容易设置,我们这里在把对象查看器中的内容贴出来 简单的几个组件:一个窗口+两个按钮+一个下拉是的盒子+一个标签+一个返回文本显示的内容 第二步:将ui文件转换为py文件 将demo.ui 阅读全文
posted @ 2021-06-04 13:35 博客zhu虎康 阅读(696) 评论(0) 推荐(1) 编辑
摘要:做一个时间拖动器 演示: 源码: #coding:utf-8 import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import (QWidget, QLCDNumber, QSlider, QVBoxLayout, QApplica 阅读全文
posted @ 2021-06-04 13:32 博客zhu虎康 阅读(124) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5 import QtCore from PyQt5.QtCore import * from PyQt5.QtGui import QPainter, QColor from PyQt5.QtWidgets import * class myQWidget( 阅读全文
posted @ 2021-06-02 11:37 博客zhu虎康 阅读(348) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示