Ejemplo n.º 1
0
	
	figure = plt.Figure(figsize=(TestBed.FRAME_WIDTH/100,TestBed.ROOT_HEIGHT/100),
							  dpi=100,
							  facecolor="#F0F0F0");
	
	TestBed.graph_figure = figure.add_subplot(222);
	TestBed.initial_fft_figure = figure.add_subplot(223);
	TestBed.matrix_figure = figure.add_subplot(221);
	TestBed.fft_figure = figure.add_subplot(224);
	
	TestBed.canvas = FigureCanvasTkAgg(figure,
										master=TestBed.root
										);
	TestBed.canvas.show();
	
	TestBed.initGraphs();
	
	
	TestBed.image_label = tk.Label(TestBed.root,
											 image=image_tk,
											 width = TestBed.FRAME_WIDTH,
											 height = TestBed.FRAME_HEIGHT);
	
	TestBed.dfft_button = ttk.Button(text="Calcular DFFT",
											  command = TestBed.onClick,
											  width = 0.4*TestBed.FRAME_WIDTH);
	
	TestBed.image_button = ttk.Button(text="Escoger imagen",
												command=TestBed.onChangeImage,
												width=0.4*TestBed.FRAME_WIDTH);