def __init__(self, x=0, y=0, item_width=0.2, item_height=0.1): GridMenu.__init__(self, x, y, item_width, item_height) self.items_per_row = 1 self.visible_rows = 8 self.visible_cols = 1 self.cursor = Selector(self.config.theme)
def __init__(self, x=0, y=0, item_width=0.2, item_height=0.1): GridMenu.__init__(self, x, y, item_width, item_height) self.cursor_below = False self.horizontal = True self.items_per_col = 4 self.visible_rows = 3 self.visible_cols = 5 c = clutter.Rectangle() c.set_size(100, 100) c.set_color((255, 255, 255, 128)) self.cursor = c pix_buffer = gtk.gdk.pixbuf_new_from_file( self.config.theme.getImage("default_movie_art")) self.movie_default = RoundedTexture(0.0, 0.0, 0.1, 0.25, pix_buffer) self.movie_default.hide() self.add(self.movie_default) self.album_default = Texture( self.config.theme.getImage("default_album_art")) self.album_default.hide() self.add(self.album_default)