def __init__(self, parent=None):
        """ Creates View and shows the login screen

        """
        super(AdminController, self).__init__(parent)
        _, external_version = get_app_version()
        self.__admin_app = AdminView(external_version)
        self.__admin_app.init_login_view(UserList().user_names)
        self.__admin_app.register_login_callback(self.__login_btn_clicked)
        self.__admin_app.close_signal.connect(self.__close)
        self.__admin_view_initialized = False
        self.__model = None
    def __init__(self, parent=None):
        """ Creates View and shows the login screen

        """
        super(AdminController, self).__init__(parent)
        _, external_version = get_app_version()
        self.__admin_app = AdminView(external_version)
        self.__admin_app.init_login_view(UserList().user_names)
        self.__admin_app.register_login_callback(self.__login_btn_clicked)
        self.__admin_app.close_signal.connect(self.__close)
        self.__admin_view_initialized = False
        self.__model = None
    def __init__(self, parent=None):
        super(DisplayController, self).__init__(parent)
        _, external_version = get_app_version()
        self.__display_app = DisplayView(external_version)
        self.__display_app.init_login_view(UserList().user_names)
        self.__display_app.register_login_callback(self.__login_btn_clicked)
        self.__display_app.close_signal.connect(self.__close)

        self.__model = None
        self.__refresh_graph_timer = QTimer(self)
        self.__refresh_graph_timer.timeout.connect(self.__speculate_data)
        self.temperature_data = collections.OrderedDict()
        self.humidity_data = collections.OrderedDict()
        self.temperature = None
        self.humidity = None
        self.__display_view_initialized = False
Esempio n. 4
0
    def __init__(self, parent=None):
        super(DisplayController, self).__init__(parent)
        _, external_version = get_app_version()
        self.__display_app = DisplayView(external_version)
        self.__display_app.init_login_view(UserList().user_names)
        self.__display_app.register_login_callback(self.__login_btn_clicked)
        self.__display_app.close_signal.connect(self.__close)

        self.__model = None
        self.__refresh_graph_timer = QTimer(self)
        self.__refresh_graph_timer.timeout.connect(self.__speculate_data)
        self.temperature_data = collections.OrderedDict()
        self.humidity_data = collections.OrderedDict()
        self.temperature = None
        self.humidity = None
        self.__display_view_initialized = False