Example #1
0
	def checkVersion(self):
		self.version = Toplevel()
		self.version.title("Version check")
		
		# First line
		self.version.description = Label(self.version, height=1, width=15)
		self.version.description["text"] = "Gui: "
		self.version.description.grid(row=0,column=0,columnspan=1)
		self.version.result = Label(self.version,height=1,width=15)
		if updateChecker.guiCheck(version) == 1:
			self.version.result["text"] = "It is up to date"
		elif updateChecker.guiCheck(version) == 0:
			self.version.result["text"] = "It is outdated"
		self.version.result.grid(row = 0, column=1, columnspan=1)

		# Second line
		self.version.description2 = Label(self.version,height=1,width=15)
		self.version.description2["text"] = "ShoppingList: "
		self.version.description2.grid(row=1,column=0,columnspan=1)
		self.version.result2 = Label(self.version,height=1,width=15)
		if updateChecker.shoppingCheck(shoppingList.version) == 1:
			self.version.result2["text"] = "It is up to date"
		elif updateChecker.shoppingCheck(shoppingList.version) == 0:
			self.version.result2["text"] = "It is outdated"
		self.version.result2.grid(column=1,row=1,columnspan=1)
Example #2
0
def versionCheck():
	print "You are using version:"+str(version)
	if updateChecker.shoppingCheck(version) == 1:
		print "ShoppingList is up to date"
	elif updateChecker.shoppingCheck(version) == 0:
		print "The shoppingList is outdated"