示例#1
0
 def add_property(self):
     args, ok = NewUaVariableDialog.getArgs(self.modeler,
                                            "Add Property",
                                            self._model_mgr.server_mgr,
                                            default_value=9.99)
     if ok:
         node = self._model_mgr.add_property(*args)
         self._add_modelling_rule(node)
示例#2
0
 def add_property(self):
     dtype = self.settings.value("last_datatype", None)
     args, ok = NewUaVariableDialog.getArgs(self.modeler,
                                            "Add Property",
                                            self._model_mgr.server_mgr,
                                            default_value=9.99,
                                            dtype=dtype)
     if ok:
         self._model_mgr.add_property(*args)
示例#3
0
 def add_variable(self):
     dtype = self.settings.value("last_datatype", None)
     args, ok = NewUaVariableDialog.getArgs(self.modeler,
                                            "Add Variable",
                                            self._model_mgr.server_mgr,
                                            default_value=9.99,
                                            dtype=dtype)
     if ok:
         node = self._model_mgr.add_variable(*args)
         self.settings.setValue("last_datatype", args[4])
         self._add_modelling_rule(node)
示例#4
0
 def add_variable(self):
     args, ok = NewUaVariableDialog.getArgs(self.modeler, "Add Variable", self._model_mgr.server_mgr)
     if ok:
         node = self._model_mgr.add_variable(*args)
         self._add_modelling_rule(node)
示例#5
0
 def add_property(self):
     args, ok = NewUaVariableDialog.getArgs(self.modeler, "Add Property", self._model_mgr.server_mgr)
     if ok:
         node = self._model_mgr.add_property(*args)
         self._add_modelling_rule(node)