def showServerErrorPopup(self, statusCode, *args): if statusCode == -1: errorText = "Error: Could not connect to server!" else: errorText = "Error. Bad request!\n" \ "Got response status: " \ "" + str(statusCode) + " " \ "expected: 200" popup = Popups.errorPopup(titleLabel="SERVER ERROR", text=errorText) popup.open()
def showMsvErrorPopup(self, *args): popup = Popups.errorPopup(titleLabel="MSV ERROR", text="Error: Could not connect to MSV service!") popup.open()