def __init__(self): tkinter.ttk.Frame.__init__(self) self.master.title("AshCalc") self.threadHandler = ThreadHandler() self.calculating = False self.weibullTimingEstimationFunction = createWeibullTimingEstimationFunction( ) self.calculationFrame = CalculationFrame(self) self.calculationFrame.grid(row=0, column=0, sticky="NSWE", padx=10, pady=10) self.calculationFrame.startCalculationB.bind("<Button-1>", self.startCalculation) self.calculationFrame.endCalculationB.configure(state=tkinter.DISABLED) self.isopachFrame = IsopachFrame(self, self.estimateWeibullCalculationTime) self.isopachFrame.grid(row=1, column=0, padx=10, sticky="NSE", pady=10) self.modelFrame = ModelFrame(self) self.modelFrame.grid(row=0, column=1, sticky="NESW", padx=10, pady=10) self.modelFrame.weiNumberOfRuns_E.bind( "<KeyRelease>", self.estimateWeibullCalculationTime) self.modelFrame.weiIterationsPerRun_E.bind( "<KeyRelease>", self.estimateWeibullCalculationTime) self.estimateWeibullCalculationTime(None) self.resultsFrame = ResultsFrame(self) self.resultsFrame.grid(row=1, column=1, padx=10, sticky="NSEW", pady=10) self.isopachFrame.loadData([ Isopach(0.4, 16.25), Isopach(0.2, 30.63), Isopach(0.1, 58.87), Isopach(0.05, 95.75), Isopach(0.02, 181.56), Isopach(0.01, 275.1) ]) self.createTooltips() self.pack() self.mainloop()