Esempio n. 1
0
	def __init__(self, downloadContent):

		# Copy content
		self.downloadContent = downloadContent

		# Start GUI
		self.root = tk.Tk()
		self.root.title("DA_GUI_py")

		# Get dataset
		#self.dataset = dataset
		self.dataset = download_data.get(downloadContent)

		# Initial given size
		self.width = self.root.winfo_screenwidth() * 5 / 6
		self.height = self.root.winfo_screenheight() * 5 / 6
		self.root.geometry(str(self.width) + "x" + str(self.height))

		# Add Window Panes	
		self.addPanes()

		# Add Left Panes	
		self.designLeftPane()

		# Add buttons on Left Panes
		self.addLeftButtons()

		# Add Plot
		self.addPlot()

		# Add Textbox for datasset
		self.addTextBox()
		
		# Keep showing the GUI
		self.root.mainloop() 
Esempio n. 2
0
		def download():
			for i, key in enumerate(self.downloadContent.keys()):
				self.downloadContent[key] = entries[i].get()
			self.dataset = download_data.get(self.downloadContent)
			#print self.dataset
			self.updatePlot()
			#self.addPlot()
			print self.downloadContent