def __init__(self, pagina): JAMediaButton.__init__(self) self.color = Gdk.Color(65000, 65000, 50000) for child in self.get_children(): self.remove(child) child.destroy() self.pagina = pagina self.zoom = 0.2 self.set_zoom(self.zoom)
def __init__(self, pagina): JAMediaButton.__init__(self) self.color = Gdk.Color(65000,65000,50000) for child in self.get_children(): self.remove(child) child.destroy() self.pagina = pagina self.zoom = 0.2 self.set_zoom(self.zoom)
def __get_widgets_modo(self): """ Cuatro botones para seleccinar el modo. """ from JAMediaObjects.JAMediaWidgets import JAMediaButton modo_widgets = gtk.HBox() white = JAMediaButton() white.connect('clicked', self.__set_modo, 0) white.set_label(0) white.set_tooltip('normal') red = JAMediaButton() red.connect('clicked', self.__set_modo, 1) red.set_label(1) red.set_tooltip('strobe1') green = JAMediaButton() green.connect('clicked', self.__set_modo, 2) green.set_label(2) green.set_tooltip('strobe2') blue = JAMediaButton() blue.connect('clicked', self.__set_modo, 3) blue.set_label(3) blue.set_tooltip('trigger') self.botones_modo = [ white, red, green, blue] for button in self.botones_modo: button.set_tamanio(get_pixels(1.0), get_pixels(1.0)) modo_widgets.pack_start(button, True, True, 1) button.connect('clicked', self.__clicked_modo) return modo_widgets
def __get_widgets_colors(self): """ Cuatro botones para seleccionar el color. """ from JAMediaObjects.JAMediaWidgets import JAMediaButton color_widgets = gtk.HBox() white = JAMediaButton() white.connect('clicked', self.__set_color, 3) white.set_colores(colornormal=get_color("BLANCO")) white.set_tooltip('Blanco') red = JAMediaButton() red.connect('clicked', self.__set_color, 0) red.set_colores(colornormal=get_color("ROJO")) red.set_tooltip('Rojo') green = JAMediaButton() green.connect('clicked', self.__set_color, 1) green.set_colores(colornormal=get_color("VERDE")) green.set_tooltip('Verde') blue = JAMediaButton() blue.connect('clicked', self.__set_color, 2) blue.set_colores(colornormal=get_color("AZUL")) blue.set_tooltip('Azul') self.botones_colores = [ white, red, green, blue] for button in self.botones_colores: button.set_tamanio(get_pixels(1.0), get_pixels(1.0)) color_widgets.pack_start(button, True, True, 1) button.connect('clicked', self.__clicked_color) return color_widgets
def __get_widgets_modo(self): """ Cuatro botones para seleccinar el modo. """ from JAMediaObjects.JAMediaWidgets import JAMediaButton modo_widgets = Gtk.HBox() white = JAMediaButton() white.connect('clicked', self.__set_modo, 0) white.set_label(0) white.set_tooltip('normal') red = JAMediaButton() red.connect('clicked', self.__set_modo, 1) red.set_label(1) red.set_tooltip('strobe1') green = JAMediaButton() green.connect('clicked', self.__set_modo, 2) green.set_label(2) green.set_tooltip('strobe2') blue = JAMediaButton() blue.connect('clicked', self.__set_modo, 3) blue.set_label(3) blue.set_tooltip('trigger') self.botones_modo = [ white, red, green, blue] for button in self.botones_modo: button.set_tamanio(get_pixels(1.0), get_pixels(1.0)) modo_widgets.pack_start(button, True, True, 1) button.connect('clicked', self.__clicked_modo) return modo_widgets
def __get_widgets_colors(self): """ Cuatro botones para seleccionar el color. """ from JAMediaObjects.JAMediaWidgets import JAMediaButton color_widgets = Gtk.HBox() white = JAMediaButton() white.connect('clicked', self.__set_color, 3) white.set_colores(colornormal=get_color("BLANCO")) white.set_tooltip('Blanco') red = JAMediaButton() red.connect('clicked', self.__set_color, 0) red.set_colores(colornormal=get_color("ROJO")) red.set_tooltip('Rojo') green = JAMediaButton() green.connect('clicked', self.__set_color, 1) green.set_colores(colornormal=get_color("VERDE")) green.set_tooltip('Verde') blue = JAMediaButton() blue.connect('clicked', self.__set_color, 2) blue.set_colores(colornormal=get_color("AZUL")) blue.set_tooltip('Azul') self.botones_colores = [ white, red, green, blue] for button in self.botones_colores: button.set_tamanio(get_pixels(1.0), get_pixels(1.0)) color_widgets.pack_start(button, True, True, 1) button.connect('clicked', self.__clicked_color) return color_widgets