开发环境:Python 3.9.2 pycharm PySide6
申请天气情况 API :https://console.amap.com/dev/key/app
ui 目录下 Weather.ui 转换为 Weather.py
import sys
from PySide6 import QtWidgets
import ui.Weather
from PySide6.QtWidgets import QApplication, QDialog
import requests
class Dialog(QtWidgets.QDialog):
def __init__(self):
super(Dialog, self).__init__()