Forecast screen. Just a partial implementation: gui and info btn
This commit is contained in:
@@ -11,18 +11,20 @@ class ClickableProgressBar(QProgressBar):
|
||||
self.__text = ''
|
||||
super().__init__(parent)
|
||||
|
||||
def __set_text(self, text):
|
||||
self.__text = text
|
||||
# def __set_text(self, text):
|
||||
# self.__text = text
|
||||
|
||||
def text(self):
|
||||
return self.__text
|
||||
|
||||
def set_idle(self):
|
||||
self.__set_text(Constants.CLICK_TO_UPDATE_STR)
|
||||
# self.__set_text(Constants.CLICK_TO_UPDATE_STR)
|
||||
self.__text = Constants.CLICK_TO_UPDATE_STR
|
||||
self.setMaximum(self.minimum() + 1)
|
||||
|
||||
def set_updating(self):
|
||||
self.__set_text(Constants.UPDATING_STR)
|
||||
# self.__set_text(Constants.UPDATING_STR)
|
||||
self.__text = Constants.UPDATING_STR
|
||||
self.setMaximum(self.minimum())
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
|
||||
Reference in New Issue
Block a user