Exemplo n.º 1
0
	def googleDocs_ButtonLoad_clicked(self):
		syncModule.load()

		# Set LastSync
		time = datetime.datetime.now().strftime('%d.%m.%Y %H:%M:%S')
		Index.load()
		Index.data["Overview"]["lastSync"] = time
		Index.save(Index.data)
		self.googleDocs_UpdateLastSync()
Exemplo n.º 2
0
	def googleDocs_ButtonSave_clicked(self):
		print "Google Save"

	def googleDocs_ButtonLoad_clicked(self):
		syncModule.load()

		# Set LastSync
		time = datetime.datetime.now().strftime('%d.%m.%Y %H:%M:%S')
		Index.load()
		Index.data["Overview"]["lastSync"] = time
		Index.save(Index.data)
		self.googleDocs_UpdateLastSync()


##############################################################################################
#
#
#		Main
#
#
if __name__ == "__main__":
	Index.load()
	Index.data["Overview"]["lastSync"] = "Test"
	Index.save(Index.data)
	"""
	app = QtGui.QApplication(sys.argv)
	page = debugPage()
	page.show()
	app.exec_()
	"""