def initUI(self):
     if self.selected:
         f = QFont()
         f.setPointSize(14)
         f.setBold(True)
         self.setFont(f)
         self.setText("O")
         self.setObjectName('selectedScrollButton')
     else:
         self.setText("o")
         self.setObjectName('scrollButton')
     self.setStyleSheet(load_stylesheet('scroll_bar.qss'))
예제 #2
0
 def initUI(self, weather_info: dict, resort: str):
     self.top_weather_bar = WeatherBar(
         parent=self, todays_weather=weather_info.get('today'))
     self.middle_snow_report = SnowReport(
         report=weather_info.get("today").get("details"))
     self.bottom_weather_forecast = WeatherForecastTable(
         parent=self, forecast=weather_info.get('forecast'))
     self.top_weather_bar.setFixedHeight(
         int(self.config.get_height() * 0.22))
     self.middle_snow_report.setFixedHeight(
         int(self.config.get_height() * 0.28))
     self.bottom_weather_forecast.setFixedHeight(
         int(self.config.get_height() * 0.37))
     self.layout.addWidget(self.top_weather_bar, alignment=Qt.AlignTop)
     self.layout.addWidget(self.middle_snow_report,
                           alignment=Qt.AlignVCenter)
     self.layout.addWidget(self.bottom_weather_forecast,
                           alignment=Qt.AlignTop)
     self.setStyleSheet(load_stylesheet('weather_table.qss'))
 def initUI(self, cur_temp):
     self.setText(cur_temp)
     self.setObjectName('curWeatherTemp')
     self.setFixedHeight(int(self.config.get_height() * 0.22))
     self.setStyleSheet(load_stylesheet('weather_table.qss'))
 def _add_stylesheet_info(self):
     self.label.setObjectName('todayWeatherReportLabel')
     self.report.setObjectName('todayWeatherReportText')
     self.setStyleSheet(load_stylesheet('weather_table.qss'))
예제 #5
0
 def _set_style(self):
     self.top_resort_name.setObjectName('resortOfficialTitle')
     self.setStyleSheet(load_stylesheet('resort_info.qss'))
 def initUI(self):
     self.setText(">")
     self.setObjectName('leftRightButton')
     self.setStyleSheet(load_stylesheet('scroll_bar.qss'))
 def initUI(self):
     self.setText("<")
     self.setStyleSheet(load_stylesheet('scroll_bar.qss'))
 def _set_style(self):
     self.left.setObjectName('leftRightButton')
     self.right.setObjectName('leftRightButton')
     self.middle.setObjectName('midScrollBar')
     self.setStyleSheet(load_stylesheet('scroll_bar.qss'))
     self.setFrameShape(QFrame.Box)