def __init__(self, *args, **kwargs): Page.__init__(self, *args, **kwargs) #Elementos lbl = tk.Label(self, text="Distribucción Geométrica", font=("Arial Bold", 20)).pack() label = tk.Label(self, text="--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------") label.pack(side="top") #Bloque lam label_prob = tk.Label(self,text="Ingrese el Valor de Probabilidad") label_prob.pack(side="top") self.prob = tk.Entry(self) self.prob.pack() #Bloque Muestras label_muestras = tk.Label(self,text="Ingrese cantidad de muestras") label_muestras.pack() self.muestras = tk.Entry(self) self.muestras.pack() #Boton Simular self.simular = tk.Button(self, text="Simular",command=self.simular) self.simular.pack() #Almacenamiento de Estado self.temporal_Geometrica = tempfile.TemporaryFile() self.temporal_Geometrica.write(b'0') #Canvas self.canvas = tk.Canvas(self, width=600, height=400, background="black") self.fig = plt.figure()
def __init__(self, *args, **kwargs): Page.__init__(self, *args, **kwargs) lbl = tk.Label(self, text="Distribucción de Erlang", font=("Arial Bold", 20)).pack() label = tk.Label( self, text= "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ) label.pack(side="top") #Bloque lam label_lam = tk.Label(self, text="Ingrese el Valor de lam") label_lam.pack(side="top") self.lam = tk.Entry(self) self.lam.pack() #Bloque K label_k = tk.Label(self, text="Ingrese K") label_k.pack() self.k = tk.Entry(self) self.k.pack() #Bloque Muestras label_muestras = tk.Label(self, text="Ingrese cantidad de muestras") label_muestras.pack() self.muestras = tk.Entry(self) self.muestras.pack() #Boton Simular self.simular = tk.Button(self, text="Simular", command=self.simular) self.simular.pack() #Almacenamiento de Estado self.temporal_Erlang = tempfile.TemporaryFile() self.temporal_Erlang.write(b'0') #Canvas self.canvas = tk.Canvas(self, width=600, height=400, background="black") self.fig = plt.figure()
def __init__(self, *args, **kwargs): Page.__init__(self, *args, **kwargs) lbl = tk.Label(self, text="Distribucción Uniforme Continua", font=("Arial Bold", 20)).pack() label = tk.Label( self, text= "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ) label.pack(side="top") #Bloque a label_a = tk.Label(self, text="Ingrese el Valor de a") label_a.pack(side="top") self.a = tk.Entry(self) self.a.pack() #Bloque b label_b = tk.Label(self, text="Ingrese b") label_b.pack() self.b = tk.Entry(self) self.b.pack() #Bloque Muestras label_muestras = tk.Label(self, text="Ingrese cantidad de muestras") label_muestras.pack() self.muestras = tk.Entry(self) self.muestras.pack() #Boton Simular self.simular = tk.Button(self, text="Simular", command=self.simular) self.simular.pack() #Almacenamiento de Estado self.temporal_UnifomeContinua = tempfile.TemporaryFile() self.temporal_UnifomeContinua.write(b'0') #Canvas self.canvas = tk.Canvas(self, width=600, height=400, background="black") self.fig = plt.figure()
def __init__(self, *args, **kwargs): Page.__init__(self, *args, **kwargs) lbl = tk.Label(self, text="Distribucción Normal", font=("Arial Bold", 20)).pack() label = tk.Label( self, text= "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ) label.pack(side="top") #Bloque lam label_lam = tk.Label(self, text="Seleccione Metodo") label_lam.pack(side="top") OptionList = ["Teorema Central del Limite", "Algoritmo de Box Muller"] self.variable = tk.StringVar(self) self.variable.set(OptionList[0]) self.option = tk.OptionMenu(self, self.variable, *OptionList) self.option.pack() #Bloque Muestras label_muestras = tk.Label(self, text="Ingrese cantidad de muestras") label_muestras.pack() self.muestras = tk.Entry(self) self.muestras.pack() #Boton Simular self.simular = tk.Button(self, text="Simular", command=self.simular) self.simular.pack() #Almacenamiento de Estado self.temporal_Normal = tempfile.TemporaryFile() self.temporal_Normal.write(b'0') #Canvas self.canvas = tk.Canvas(self, width=600, height=400, background="black") self.fig = plt.figure()