Skip to content

Commit 1a78119

Browse files
author
Chen-Junren
committed
V3.2.0-rc0.3
1 parent b4566dc commit 1a78119

13 files changed

+632
-1558
lines changed

README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
2024-3-22: How can this thing be so hard? !<br />
2-
2024-3-24: After consideration, we dropped the idea of adding a five-day update
1+
# Python-Weather
2+
一个使用Python编写的天气查询程序,支持用户查询全国3240个城市
3+
4+
## 如何使用
5+
1. 下载并解压软件
6+
2. 编辑根目录下的"settings.txt",**必须更改"key"字段**
7+
1. 前往[https://dev.qweather.com/](https://dev.qweather.com/)并注册一个账号(或登录)
8+
2. 前往[https://console.qweather.com/#/apps](https://console.qweather.com/#/apps)并创建一个项目。**每个用户都有一个免费项目的余额。**
9+
3. 得到你的Key,将其输入"settings.txt"文件中
10+
4. 打开应用开始使用
11+
12+
## Q&A
13+
14+
~~~
15+
Q: 字体未正确显示?
16+
17+
A: 安装压缩包中的otf字体文件。
18+
~~~
19+
~~~
20+
Q: Windows7无法打开?
21+
22+
A: 前往ISSUE 3
23+
~~~

Ui.ui

+46-38
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,12 @@
2121
<property name="windowTitle">
2222
<string>今日天气</string>
2323
</property>
24-
<widget class="QTextEdit" name="textEdit">
25-
<property name="geometry">
26-
<rect>
27-
<x>125</x>
28-
<y>140</y>
29-
<width>330</width>
30-
<height>231</height>
31-
</rect>
32-
</property>
33-
<property name="font">
34-
<font>
35-
<family>荆南麦圆体</family>
36-
<pointsize>10</pointsize>
37-
</font>
38-
</property>
39-
</widget>
4024
<widget class="QWidget" name="layoutWidget">
4125
<property name="geometry">
4226
<rect>
43-
<x>130</x>
27+
<x>50</x>
4428
<y>70</y>
45-
<width>122</width>
29+
<width>301</width>
4630
<height>62</height>
4731
</rect>
4832
</property>
@@ -91,16 +75,35 @@
9175
</item>
9276
</layout>
9377
</widget>
94-
<widget class="QWidget" name="layoutWidget">
78+
<widget class="QLabel" name="label_3">
79+
<property name="geometry">
80+
<rect>
81+
<x>380</x>
82+
<y>300</y>
83+
<width>160</width>
84+
<height>30</height>
85+
</rect>
86+
</property>
87+
<property name="minimumSize">
88+
<size>
89+
<width>160</width>
90+
<height>30</height>
91+
</size>
92+
</property>
93+
<property name="text">
94+
<string/>
95+
</property>
96+
</widget>
97+
<widget class="QWidget" name="verticalLayoutWidget">
9598
<property name="geometry">
9699
<rect>
97-
<x>260</x>
100+
<x>380</x>
98101
<y>70</y>
99-
<width>195</width>
100-
<height>61</height>
102+
<width>160</width>
103+
<height>301</height>
101104
</rect>
102105
</property>
103-
<layout class="QHBoxLayout" name="horizontalLayout_2">
106+
<layout class="QVBoxLayout" name="verticalLayout_2">
104107
<item>
105108
<widget class="QPushButton" name="pushButton">
106109
<property name="enabled">
@@ -112,7 +115,21 @@
112115
</font>
113116
</property>
114117
<property name="text">
115-
<string>查询</string>
118+
<string>查询选中日天气</string>
119+
</property>
120+
</widget>
121+
</item>
122+
<item>
123+
<widget class="QPushButton" name="pushButton_3">
124+
<property name="text">
125+
<string>查询后五日天气</string>
126+
</property>
127+
</widget>
128+
</item>
129+
<item>
130+
<widget class="QPushButton" name="pushButton_4">
131+
<property name="text">
132+
<string>帮助</string>
116133
</property>
117134
</widget>
118135
</item>
@@ -130,24 +147,15 @@
130147
</item>
131148
</layout>
132149
</widget>
133-
<widget class="QLabel" name="label_3">
150+
<widget class="QCalendarWidget" name="calendarWidget">
134151
<property name="geometry">
135152
<rect>
136-
<x>210</x>
137-
<y>400</y>
138-
<width>160</width>
139-
<height>30</height>
153+
<x>50</x>
154+
<y>150</y>
155+
<width>301</width>
156+
<height>221</height>
140157
</rect>
141158
</property>
142-
<property name="minimumSize">
143-
<size>
144-
<width>160</width>
145-
<height>30</height>
146-
</size>
147-
</property>
148-
<property name="text">
149-
<string/>
150-
</property>
151159
</widget>
152160
</widget>
153161
<resources/>

Ui_V3.0.0.rc0.1(Not Completed).py

-99
This file was deleted.

0 commit comments

Comments
 (0)