+
+class configSequenceArg:
+ def get(self, type, args = ()):
+ # configsequencearg.get ("IP")
+ if (type == "IP"):
+ return (("."), [(1,255),(0,255),(0,255),(0,255)], "")
+ # configsequencearg.get ("MAC")
+ if (type == "MAC"):
+ return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)], "")
+ # configsequencearg.get ("CLOCK")
+ if (type == "CLOCK"):
+ return ((":"), [(0,23),(0,59)], "")
+ # configsequencearg.get("INTEGER", (min, max)) => x with min <= x <= max
+ if (type == "INTEGER"):
+ return ((":"), [args], "")
+ # configsequencearg.get("PINCODE", (number, "*")) => pin with number = length of pincode and "*" as numbers shown as stars
+ # configsequencearg.get("PINCODE", (number, "")) => pin with number = length of pincode and numbers shown
+ if (type == "PINCODE"):
+ return ((":"), [(0, (10**args[0])-1)], args[1])
+ # configsequencearg.get("FLOAT", [(min,max),(min1,max1)]) => x.y with min <= x <= max and min1 <= y <= max1
+ if (type == "FLOAT"):
+ return (("."), args, "")
+
+configsequencearg = configSequenceArg()