def __init_toolbar(self): """Inicializa la toolbar""" self.__boton1 = QToolButton(self.Toolbar) self.__boton1.setTextLabel("ABRIR") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_abrir(), QIconSet.Small) # iconos.setPixmap("images/flechaabajo.png", QIconSet.Automatic, QIconSet.Normal, QIconSet.Off) self.__boton1.setOn(True) self.__boton1.setIconSet(iconos) self.__boton2 = QToolButton(self.Toolbar) self.__boton2.setTextLabel("GUARDAR") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_guardar(), QIconSet.Small) self.__boton2.setOn(True) self.__boton2.setIconSet(iconos) self.__boton3 = QToolButton(self.Toolbar) self.__boton3.setTextLabel("Ventana Salida") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_nueva_ventana(), QIconSet.Small) self.__boton3.setOn(True) self.__boton3.setIconSet(iconos) self.__boton4 = QToolButton(self.Toolbar) self.__boton4.setTextLabel("Mostrar etiquetas") self.__boton4.setToggleButton(True) iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_etiquetas(), QIconSet.Small) self.__boton4.setIconSet(iconos)
def __inittoolbar(self): """Inicializa la toolbar""" self.__boton1 = QToolButton(self.Toolbar) self.__boton1.setTextLabel("Abrir fichero") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_abrir(), QIconSet.Small) self.__boton1.setOn(True) self.__boton1.setIconSet(iconos) self.__boton2 = QToolButton(self.Toolbar) self.__boton2.setTextLabel("Guardar en fichero") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_guardar(), QIconSet.Small) self.__boton2.setOn(True) self.__boton2.setIconSet(iconos) self.__boton3 = QToolButton(self.Toolbar) self.__boton3.setTextLabel("Exportar a html") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_exportar(), QIconSet.Small) self.__boton3.setOn(True) self.__boton3.setIconSet(iconos) self.__boton4 = QToolButton(self.Toolbar) self.__boton4.setTextLabel("Mostrar Ventana principal") iconos = QIconSet() iconos.setIconSize(QIconSet.Small, QSize(100, 100)) iconos.setPixmap(self.__gestortemas.icono_nueva_ventana(), QIconSet.Small) self.__boton4.setOn(True) self.__boton4.setIconSet(iconos)