1 Star 1 Fork 1

adamchen/天气预报查询

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
weatherWin.py 3.45 KB
一键复制 编辑 原始数据 按行查看 历史
adamchen 提交于 5年前 . 源代码1.0
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'weatherWin.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(612, 497)
self.groupBox = QtWidgets.QGroupBox(Form)
self.groupBox.setGeometry(QtCore.QRect(10, 10, 591, 471))
self.groupBox.setObjectName("groupBox")
self.resultText = QtWidgets.QTextEdit(self.groupBox)
self.resultText.setGeometry(QtCore.QRect(0, 70, 591, 351))
self.resultText.setObjectName("resultText")
self.queryBtn = QtWidgets.QPushButton(self.groupBox)
self.queryBtn.setGeometry(QtCore.QRect(140, 440, 75, 23))
self.queryBtn.setObjectName("queryBtn")
self.clearBtn = QtWidgets.QPushButton(self.groupBox)
self.clearBtn.setGeometry(QtCore.QRect(310, 440, 75, 23))
self.clearBtn.setObjectName("clearBtn")
self.verticalLayoutWidget = QtWidgets.QWidget(self.groupBox)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 30, 591, 22))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.verticalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.provinceComboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.provinceComboBox.setObjectName("provinceComboBox")
self.horizontalLayout.addWidget(self.provinceComboBox)
self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_3.setObjectName("label_3")
self.horizontalLayout.addWidget(self.label_3)
self.cityComboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.cityComboBox.setObjectName("cityComboBox")
self.horizontalLayout.addWidget(self.cityComboBox)
self.label = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.weatherComboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.weatherComboBox.setCurrentText("")
self.weatherComboBox.setObjectName("weatherComboBox")
self.horizontalLayout.addWidget(self.weatherComboBox)
self.retranslateUi(Form)
self.queryBtn.clicked.connect(Form.queryWeather)
self.clearBtn.clicked.connect(Form.clearResult)
self.cityComboBox.currentTextChanged['QString'].connect(Form.cityComboBoxChange)
self.provinceComboBox.currentTextChanged['QString'].connect(Form.provinceComboBoxChange)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "城市天气预报查询"))
self.groupBox.setTitle(_translate("Form", "查询城市天气"))
self.queryBtn.setText(_translate("Form", "查询"))
self.clearBtn.setText(_translate("Form", "清空"))
self.label_2.setText(_translate("Form", "省"))
self.label_3.setText(_translate("Form", "市"))
self.label.setText(_translate("Form", "区县"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/adamchen/weather_forecast_query.git
git@gitee.com:adamchen/weather_forecast_query.git
adamchen
weather_forecast_query
天气预报查询
master

搜索帮助