Ejemplo n.º 1
0
 def __init__(self, parent, nombre, valorpordefecto = ""):
     ElementoWidgetOpciones.__init__(self)
     QHBox.__init__(self, parent, "EntradaTexto")
     self.__etiqueta = QLabel(nombre, self)
     self.__entrada = QLineEdit(self, "Linea")
     self.__entrada.setText(valorpordefecto)
     self.nombre = nombre
Ejemplo n.º 2
0
 def __init__(self, filename, *args):
     QHBox.__init__(self, *args)
     t = QVBox(self)
     self.plotdata = PlotData(file(filename))
     self.plot = Plot3D(self, self.plotdata)
     self.xmax = self.plotdata.xmax
     self.ymax = self.plotdata.ymax
     self.size = LCDRange(t, "size")
     self.size.setRange(30, 125)
     self.size.setValue(125)
     self.xpos = LCDRange(t, "xpos")
     self.xpos.setValue(725)
     self.ypos = LCDRange(t, "ypos")
     self.ypos.setValue(400)
     self.plot2d()
     QObject.connect(self.size, PYSIGNAL("valueChanged(int)"), self.plotdata.size)
     QObject.connect(self.xpos, PYSIGNAL("valueChanged(int)"), self.plotdata.xpos)
     QObject.connect(self.ypos, PYSIGNAL("valueChanged(int)"), self.plotdata.ypos)
     QObject.connect(self.plotdata, PYSIGNAL("sizeChanged()"), self.sizeChanged)
     self.sizeChanged()
Ejemplo n.º 3
0
 def __init__(self, nombre1, nombre2):
     QHBox.__init__(self, None)
     self.zona1 = WidgetSeleccionCajaComboCombo(nombre1, self)
     self.zona2 = WidgetSeleccionCaja(nombre2, self)