def gaussr(self): l=len(self.plot_list) s1=string.atof(self.e1.get()) s2=string.atof(self.e2.get()) s3=string.atof(self.e3.get()) self.create_new_fkt(ObjectHMM.NormalDensityTruncRight(mu=s1,sigma=s2,tail=s3,a=1.0,color=self.nextColor())) self.top.destroy()
def gaussr(self): mu = string.atof(self.e1.get()) sigma = string.atof(self.e2.get()) tail = string.atof(self.e3.get()) if sigma <= 0: Tkinter.Label(self.label, text="Error! sigma has to be greater than 0,", foreground="red").grid(row=4, columnspan=2) self.label.pack() return self.create_new_fkt( ObjectHMM.NormalDensityTruncRight(mu=mu, sigma=sigma, tail=tail, a=1.0, color=self.nextColor())) del self.label self.top.destroy()