コード例 #1
0
 def __init__(self):
     '''
     Initialises the plugin object.
     '''
     GObject.Object.__init__(self)
     if not rb3compat.compare_pygobject_version('3.9'):
         GObject.threads_init()
コード例 #2
0
    def __init__(self, *args, **kwargs):
        if not rb3compat.compare_pygobject_version("3.9"):
            super(CoverIconView, self).__init__(cell_area=AlbumArtCellArea(), *args, **kwargs)
        else:
            # this works in trusty but not in earlier versions - define in the super above
            super(CoverIconView, self).__init__(*args, **kwargs)
            self.props.cell_area = AlbumArtCellArea()

        self.gs = GSetting()
        # custom text renderer
        self._text_renderer = None
        self.show_policy = AlbumShowingPolicy(self)
        self.view = self
        self._has_initialised = False
        self._last_path = None
        self._calc_motion_step = 0
コード例 #3
0
    def __init__(self, *args, **kwargs):
        if not rb3compat.compare_pygobject_version("3.9"):
            super(CoverIconView, self).__init__(cell_area=AlbumArtCellArea(),
                                                *args,
                                                **kwargs)
        else:
            # this works in trusty but not in earlier versions - define in the super above
            super(CoverIconView, self).__init__(*args, **kwargs)
            self.props.cell_area = AlbumArtCellArea()

        self.gs = GSetting()
        # custom text renderer
        self._text_renderer = None
        self.show_policy = AlbumShowingPolicy(self)
        self.view = self
        self._has_initialised = False
        self._last_play_path = None
        self._recheck_in_progress = False
        self._current_hover_path = None