예제 #1
0
    def sources(self):
        user = Github.getGithub().get_user()
        result = [GithubSourceProvider(user)]
        for org in user.get_orgs():
            result.append(GithubSourceProvider(org))

        return result
예제 #2
0
 def image(self):
     return Github.getAvatarPixbuf(self.source, (24, 24))
 def loadProfile(self):
     def async(self):
         imagePixbuf = Github.getAvatarPixbuf(Github.getGithub().get_user(), (32, 32))
         GLib.idle_add(self.image.set_from_pixbuf, imagePixbuf)