摘要:
演示 代码 from PyQt5.QtWidgets import * import sys class pushButton(QWidget): def __init__(self): super(pushButton,self).__init__() # 对方法进行调用 self.initUI( 阅读全文
摘要:
演示效果 附源码 import sys from PyQt5.QtWidgets import QWidget, QMessageBox, QApplication class Example(QWidget): def __init__(self): super().__init__() self 阅读全文
摘要:
预览效果 源码 # -*- coding: utf-8 -*- ''' 【简介】 PyQt5中QRadio例子 ''' import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets impor 阅读全文
摘要:
PyQt5实践——《做一个天气预报的查询》 第一步: 设计界面,我们这里直接用Qtdesign设计。 为了大家比较容易设置,我们这里在把对象查看器中的内容贴出来 简单的几个组件:一个窗口+两个按钮+一个下拉是的盒子+一个标签+一个返回文本显示的内容 第二步:将ui文件转换为py文件 将demo.ui 阅读全文
摘要:
做一个时间拖动器 演示: 源码: #coding:utf-8 import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import (QWidget, QLCDNumber, QSlider, QVBoxLayout, QApplica 阅读全文
摘要:
import sys from PyQt5 import QtCore from PyQt5.QtCore import * from PyQt5.QtGui import QPainter, QColor from PyQt5.QtWidgets import * class myQWidget( 阅读全文
摘要:
实现效果 代码 from tkinter import * import requests LOG_LINE_NUM = 0 class MY_GUI(): def __init__(self, init_window_name): self.init_window_name = init_wind 阅读全文
摘要:
实现效果如下图所示 附原码 使用爬虫实现 import requests city = {'北京': '101010100', '济南': '101120101', '青岛': '101120201', '淄博': '101120301', '烟台': '101120501', '潍坊': '101 阅读全文
摘要:
C语言学习笔记 (文章目录) 一、初识C语言 输出Hello World #include<stdio.h> int main() { /*在双引号中间输入Hello World*/ printf("Hello World"); return 0; } 1、C程序的结构 简单来说,一个C程序就是由若 阅读全文
摘要:
虎康@markdown 使用Markdown编辑器 你好! 如果这是你第一次使用 Markdown编辑器。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。 功能快捷键 撤销:Ctrl/Command + Z 重做:Ctrl/Command 阅读全文