コード例 #1
0
    def __init__(self):
        SeekProgressBar.__init__(self, player.PLAYER)
        BaseControl.__init__(self)

        self.set_size_request(200, -1)
        self.set_margin_top(3)
        self.set_margin_bottom(3)

        if player.PLAYER.current is not None:
            self.on_playback_track_start('playback_track_start', player.PLAYER,
                                         player.PLAYER.current)

            if player.PLAYER.is_paused():
                self.on_playback_toggle_pause('playback_toggle_pause',
                                              player.PLAYER,
                                              player.PLAYER.current)
コード例 #2
0
ファイル: controls.py プロジェクト: exaile/exaile
    def __init__(self):
        SeekProgressBar.__init__(self, player.PLAYER)
        BaseControl.__init__(self)

        self.set_size_request(200, -1)
        self.set_margin_top(3)
        self.set_margin_bottom(3)

        if player.PLAYER.current is not None:
            self.on_playback_track_start(
                'playback_track_start', player.PLAYER, player.PLAYER.current
            )

            if player.PLAYER.is_paused():
                self.on_playback_toggle_pause(
                    'playback_toggle_pause', player.PLAYER, player.PLAYER.current
                )