-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainUi.py
170 lines (163 loc) · 9.47 KB
/
mainUi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainUi.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(872, 550)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.timeLabel = QtWidgets.QLabel(self.centralwidget)
self.timeLabel.setGeometry(QtCore.QRect(10, 10, 67, 17))
self.timeLabel.setObjectName("timeLabel")
self.timeValue = QtWidgets.QLabel(self.centralwidget)
self.timeValue.setGeometry(QtCore.QRect(60, 10, 111, 17))
self.timeValue.setObjectName("timeValue")
self.dateLabel = QtWidgets.QLabel(self.centralwidget)
self.dateLabel.setGeometry(QtCore.QRect(10, 30, 67, 17))
self.dateLabel.setObjectName("dateLabel")
self.dateValue = QtWidgets.QLabel(self.centralwidget)
self.dateValue.setGeometry(QtCore.QRect(60, 30, 111, 17))
self.dateValue.setObjectName("dateValue")
self.cityTag = QtWidgets.QLabel(self.centralwidget)
self.cityTag.setGeometry(QtCore.QRect(140, 130, 111, 21))
self.cityTag.setObjectName("cityTag")
self.weathertag = QtWidgets.QLabel(self.centralwidget)
self.weathertag.setGeometry(QtCore.QRect(150, 230, 101, 31))
self.weathertag.setObjectName("weathertag")
self.getCityName = QtWidgets.QPushButton(self.centralwidget)
self.getCityName.setGeometry(QtCore.QRect(10, 190, 89, 25))
self.getCityName.setObjectName("getCityName")
self.cityLabel = QtWidgets.QLabel(self.centralwidget)
self.cityLabel.setGeometry(QtCore.QRect(10, 50, 31, 17))
self.cityLabel.setObjectName("cityLabel")
self.cityValue = QtWidgets.QLabel(self.centralwidget)
self.cityValue.setGeometry(QtCore.QRect(60, 50, 111, 17))
self.cityValue.setObjectName("cityValue")
self.cityName = QtWidgets.QPlainTextEdit(self.centralwidget)
self.cityName.setGeometry(QtCore.QRect(10, 150, 371, 31))
self.cityName.setObjectName("cityName")
self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar.setGeometry(QtCore.QRect(110, 190, 271, 23))
self.progressBar.setProperty("value", 24)
self.progressBar.setObjectName("progressBar")
self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(390, 30, 471, 471))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.vbox = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.vbox.setContentsMargins(0, 0, 0, 0)
self.vbox.setObjectName("vbox")
self.statusLabel = QtWidgets.QLabel(self.centralwidget)
self.statusLabel.setGeometry(QtCore.QRect(30, 90, 51, 17))
self.statusLabel.setObjectName("statusLabel")
self.statusValue = QtWidgets.QLabel(self.centralwidget)
self.statusValue.setGeometry(QtCore.QRect(90, 90, 111, 17))
self.statusValue.setObjectName("statusValue")
self.locationLabel = QtWidgets.QLabel(self.centralwidget)
self.locationLabel.setGeometry(QtCore.QRect(580, 10, 91, 17))
self.locationLabel.setObjectName("locationLabel")
self.tempMaxLabel = QtWidgets.QLabel(self.centralwidget)
self.tempMaxLabel.setGeometry(QtCore.QRect(130, 270, 81, 17))
self.tempMaxLabel.setObjectName("tempMaxLabel")
self.tempMinLabel = QtWidgets.QLabel(self.centralwidget)
self.tempMinLabel.setGeometry(QtCore.QRect(130, 290, 81, 17))
self.tempMinLabel.setObjectName("tempMinLabel")
self.feelsLikeLabel = QtWidgets.QLabel(self.centralwidget)
self.feelsLikeLabel.setGeometry(QtCore.QRect(130, 310, 81, 17))
self.feelsLikeLabel.setObjectName("feelsLikeLabel")
self.feelsLike = QtWidgets.QLabel(self.centralwidget)
self.feelsLike.setGeometry(QtCore.QRect(210, 310, 191, 17))
self.feelsLike.setText("")
self.feelsLike.setObjectName("feelsLike")
self.tempMin = QtWidgets.QLabel(self.centralwidget)
self.tempMin.setGeometry(QtCore.QRect(210, 290, 191, 17))
self.tempMin.setText("")
self.tempMin.setObjectName("tempMin")
self.tempMax = QtWidgets.QLabel(self.centralwidget)
self.tempMax.setGeometry(QtCore.QRect(210, 270, 191, 17))
self.tempMax.setText("")
self.tempMax.setObjectName("tempMax")
self.currentTemp = QtWidgets.QLabel(self.centralwidget)
self.currentTemp.setGeometry(QtCore.QRect(20, 340, 101, 21))
self.currentTemp.setObjectName("currentTemp")
self.humidityLabel = QtWidgets.QLabel(self.centralwidget)
self.humidityLabel.setGeometry(QtCore.QRect(130, 330, 71, 17))
self.humidityLabel.setObjectName("humidityLabel")
self.humidity = QtWidgets.QLabel(self.centralwidget)
self.humidity.setGeometry(QtCore.QRect(210, 330, 191, 20))
self.humidity.setText("")
self.humidity.setObjectName("humidity")
self.pressureLabel = QtWidgets.QLabel(self.centralwidget)
self.pressureLabel.setGeometry(QtCore.QRect(130, 350, 71, 17))
self.pressureLabel.setObjectName("pressureLabel")
self.pressure = QtWidgets.QLabel(self.centralwidget)
self.pressure.setGeometry(QtCore.QRect(210, 350, 191, 20))
self.pressure.setText("")
self.pressure.setObjectName("pressure")
self.forecastLabel = QtWidgets.QLabel(self.centralwidget)
self.forecastLabel.setGeometry(QtCore.QRect(130, 370, 67, 17))
self.forecastLabel.setObjectName("forecastLabel")
self.forecast = QtWidgets.QLabel(self.centralwidget)
self.forecast.setGeometry(QtCore.QRect(210, 370, 201, 20))
self.forecast.setText("")
self.forecast.setObjectName("forecast")
self.windSpeedLabel = QtWidgets.QLabel(self.centralwidget)
self.windSpeedLabel.setGeometry(QtCore.QRect(130, 390, 91, 17))
self.windSpeedLabel.setObjectName("windSpeedLabel")
self.windSpeed = QtWidgets.QLabel(self.centralwidget)
self.windSpeed.setGeometry(QtCore.QRect(230, 390, 171, 20))
self.windSpeed.setText("")
self.windSpeed.setObjectName("windSpeed")
self.cloudinessLabel = QtWidgets.QLabel(self.centralwidget)
self.cloudinessLabel.setGeometry(QtCore.QRect(130, 410, 81, 17))
self.cloudinessLabel.setObjectName("cloudinessLabel")
self.cloudiness = QtWidgets.QLabel(self.centralwidget)
self.cloudiness.setGeometry(QtCore.QRect(220, 410, 181, 20))
self.cloudiness.setText("")
self.cloudiness.setObjectName("cloudiness")
self.aboutButton = QtWidgets.QPushButton(self.centralwidget)
self.aboutButton.setGeometry(QtCore.QRect(20, 460, 351, 25))
self.aboutButton.setObjectName("aboutButton")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 872, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setObjectName("actionAbout")
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.timeLabel.setText(_translate("MainWindow", "Time:"))
self.timeValue.setText(_translate("MainWindow", "Not synnced yet"))
self.dateLabel.setText(_translate("MainWindow", "Date:"))
self.dateValue.setText(_translate("MainWindow", "Not synnced yet"))
self.cityTag.setText(_translate("MainWindow", "Enter Your City"))
self.weathertag.setText(_translate("MainWindow", "Weather Data"))
self.getCityName.setText(_translate("MainWindow", "Get Data"))
self.cityLabel.setText(_translate("MainWindow", "City:"))
self.cityValue.setText(_translate("MainWindow", "Not synnced yet"))
self.statusLabel.setText(_translate("MainWindow", "Status:"))
self.statusValue.setText(_translate("MainWindow", "Waiting"))
self.locationLabel.setText(_translate("MainWindow", "Forecast Map"))
self.tempMaxLabel.setText(_translate("MainWindow", "Temp Max :"))
self.tempMinLabel.setText(_translate("MainWindow", "Temp Min :"))
self.feelsLikeLabel.setText(_translate("MainWindow", "Feels Like :"))
self.currentTemp.setText(_translate("MainWindow", "Current Temp"))
self.humidityLabel.setText(_translate("MainWindow", "Humidity :"))
self.pressureLabel.setText(_translate("MainWindow", "Pressure :"))
self.forecastLabel.setText(_translate("MainWindow", "Forecast :"))
self.windSpeedLabel.setText(_translate("MainWindow", "Wind Speed :"))
self.cloudinessLabel.setText(_translate("MainWindow", "Cloudiness :"))
self.aboutButton.setText(_translate("MainWindow", "About"))
self.actionAbout.setText(_translate("MainWindow", "About"))