예제 #1
0
    def setup_status_bars(self):
        """
        Constructs the AudioPanel and InfoPanel and adds them to the overlay.
        """
        self.audio_panel = AudioPanel(self.screen)
        self.add_child_widget(self.audio_panel)

        self.info_panel = InfoPanel(self.screen)
        self.add_child_widget(self.info_panel)
예제 #2
0
    def setup_status_bars(self):
        """
        Constructs the AudioPanel and InfoPanel and adds them to the overlay.
        """
        self.audio_panel = AudioPanel()
        self.add_child_widget(self.audio_panel)

        self.info_panel = InfoPanel()
        self.add_child_widget(self.info_panel)

        self.info_panel.update_visibility()
예제 #3
0
    def setup_status_bars(self):
        """
        Constructs the AudioPanel and InfoPanel and adds them to the overlay.
        """
        self.audio_panel = AudioPanel(self.screen)
        self.add_child_widget(self.audio_panel)

        self.info_panel = InfoPanel(self.screen)
        self.add_child_widget(self.info_panel)

        trackers.con_tracker_get().connect(self.power_client,
                                           "power-state-changed",
                                           self.on_power_state_changed)