def __init__(self): self.__devices = {} self.__on = gtk.gdk.pixbuf_new_from_file( os.path.join(_PATH, "on.png")) #self.__on_picat = gtk.gdk.pixbuf_new_from_file( # os.path.join(_PATH, "on_picat.png")) self.__off = gtk.gdk.pixbuf_new_from_file( os.path.join(_PATH, "off.png")) #self.__off_picat = gtk.gdk.pixbuf_new_from_file( # os.path.join(_PATH, "off_picat.png")) Viewer.__init__(self) arrows = gtk.gdk.pixbuf_new_from_file( os.path.join(_PATH, "arrows.png")) arrows_off = gtk.gdk.pixbuf_new_from_file( os.path.join(_PATH, "arrows_off.png")) self.__Gridlist = GridList (arrows, arrows_off, items_per_row = 4) self.__Gridlist.set_visible(True) self.__Gridlist.set_geometry(10, 0, 780, 370) self.add(self.__Gridlist)
def __init__(self): self.__stations = [] self.__radio = None self.__current_freq = 0 Viewer.__init__(self) self.__slider = Slider(theme.mb_slider_volume) self.__slider.set_mode(Slider.VERTICAL) self.__slider.connect_value_changed(self.__on_set_volume) self.add(self.__slider) self.__list = TrackList(with_drag_sort = True) self.__list.connect_button_clicked(self.__on_item_button) self.__list.connect_items_swapped(self.__on_swap) #self.__list.set_geometry(10, 0, 680, 370) self.add(self.__list) self.__scale = RadioScale() self.__scale.set_size(100, 360) self.__scale.set_range(87.5, 108.0) self.add(self.__scale) self.__scale.connect_tuned(self.__on_tune) # toolbar btn_play = ImageButton(theme.mb_btn_play2_1, theme.mb_btn_play2_2) btn_play.connect_clicked(self.__play) btn_prev = ImageButton(theme.mb_btn_previous_1, theme.mb_btn_previous_2) btn_prev.connect_clicked(self.__previous) btn_next = ImageButton(theme.mb_btn_next_1, theme.mb_btn_next_2) btn_next.connect_clicked(self.__next) btn_add = ImageButton(theme.mb_btn_add_1, theme.mb_btn_add_2) btn_add.connect_clicked(self.__add_current_station) btn_speaker = ToggleButton(theme.mb_btn_speaker_off, theme.mb_btn_speaker_on) btn_speaker.connect_toggled(self.__toggle_speaker) self.__toolbar = [ btn_play, Image(theme.mb_toolbar_space_1), btn_prev, btn_next, Image(theme.mb_toolbar_space_1), btn_add, Image(theme.mb_toolbar_space_1), btn_speaker ] self.set_toolbar(self.__toolbar)
def __init__(self): self.__is_ticking = False Viewer.__init__(self) self.__sunclock = SunClock() self.__sunclock.set_pos(0, 0) self.add(self.__sunclock)
def __init__(self): self.__pipeline = None Viewer.__init__(self) self.__layout = self.get_window() self.__screen = gtk.DrawingArea() self.__screen.set_size_request(800, 370) self.__screen.connect("expose-event", self.__on_expose) self.__layout.put(self.__screen, 0, 40)