Esempio n. 1
0
def getYear():
	reset()
	array = [canvas.data.year, canvas.data.month, canvas.data.weekDay, canvas.data.day, canvas.data.hour]
	(canvas.data.x, canvas.data.y) = q.getTimeStampValues(canvas.data.imageName, 0, array)
	try:
		fig.clear()
	except:
		pass
	drawGraph(0)
Esempio n. 2
0
def _quit():
	canvas.data.year = (int(canvas.data.yMin.get()), int(canvas.data.yMax.get()))
	canvas.data.month = (int(canvas.data.mMin.get()), int(canvas.data.mMax.get()))
	canvas.data.week = (int(canvas.data.wMin.get()), int(canvas.data.wMax.get()))
	canvas.data.day = (int(canvas.data.dMin.get()), int(canvas.data.dMax.get()))
	canvas.data.hour = (int(canvas.data.hMin.get()), int(canvas.data.hMax.get()))
	array = [canvas.data.year, canvas.data.month, canvas.data.week, canvas.data.day, canvas.data.hour]
	print canvas.data.week
	(canvas.data.x, canvas.data.y) = q.getTimeStampValues(canvas.data.imageName, canvas.data.radio.get(), array)
	fig.clear()
	drawGraph(canvas.data.radio.get())
	r.destroy()
Esempio n. 3
0
def getHour():
	reset()
	array = [canvas.data.year, canvas.data.month, canvas.data.weekDay, canvas.data.day, canvas.data.hour]
	(canvas.data.x, canvas.data.y) = q.getTimeStampValues(canvas.data.imageName, 4, array)
	fig.clear()
	drawGraph(4)