Пример #1
0
    def __init__(self): 
        gobject.GObject.__init__(self) #@UndefinedVariable

        self._path=os.path.expanduser(self.PATH)
        self.conn=sqlite3.connect(self._path, check_same_thread=False)
        self.c = self.conn.cursor()
        
        self.c.execute("""create table if not exists tracks (id integer primary key,
                            created integer,
                            updated integer,
                            track_name text,  track_mbid text,
                            artist_name text)
                        """)

        Bus.add_emission_hook("track",    self.h_track)
        Bus.add_emission_hook("mb_track", self.h_mb_track)