|
@@ -70,7 +70,9 @@ def poll(address):
|
|
|
returnvalue = urllib2.urlopen(urllib2.Request(address, urllib.urlencode({"op": "get_output", "username": "CBD_env"}))).read()
|
|
|
print("Process " + str(returnvalue))
|
|
|
if (returnvalue.startswith("AVAILABLE_ATTR_VALUE")):
|
|
|
- working_available_attrs.append(returnvalue.split(" ", 1)[1])
|
|
|
+ working_available_attrs.append((returnvalue.split(" ", 1)[1], None))
|
|
|
+ elif (returnvalue.startswith("AVAILABLE_ATTR_TYPE")):
|
|
|
+ working_available_attrs[-1][1] = returnvalue.split(" ", 1)[1]
|
|
|
elif (returnvalue.startswith("AVAILABLE_ATTR_END")):
|
|
|
available_attrs.append(working_available)
|
|
|
working_available = []
|
|
@@ -174,7 +176,7 @@ class InterfaceCore():
|
|
|
|
|
|
for attr in attrs:
|
|
|
old_value = self.mv.read_attribute(lname, attr)
|
|
|
- new_value = tkSimpleDialog.askstring("Attribute modification", attr, initialvalue=old_value)
|
|
|
+ new_value = float(tkSimpleDialog.askstring("Attribute modification", attr, initialvalue=old_value))
|
|
|
self.mv.set_attribute(lname, attr, new_value)
|
|
|
|
|
|
else:
|