def __init__(self, result_dialog=False, constructor_param=False): UserInterface.__init__(self, "parameter_dialog.ui") if not result_dialog: self.label_name.show() self.name.show() else: self.label_name.hide() self.name.hide() if not constructor_param: self.label_property.hide() self.bind_to_property.hide() else: self.label_property.show() self.bind_to_property.show() self.constr_param = constructor_param self._param_catg = CodeView(self.param_catg) if not result_dialog: self._param_catg.add_value(" --- ", None) self._param_catg.add_value(_("Input"), ParamCategory.IN) self._param_catg.add_value(_("Output"), ParamCategory.OUT) self._param_catg.add_value(_("Input/Output"), ParamCategory.INOUT) self._param_catg.add_value(_("UserData"), ParamCategory.USER_DATA) else: self._param_catg.add_value(_("Result"), ParamCategory.RESULT) self._param_catg.set_value(ParamCategory.RESULT) self._transfer_mode = CodeView(self.transfer_mode) self._transfer_mode.add_value(" --- ", "UNSPECIFIED") self._transfer_mode.add_value(_("No Transfer"), "NONE") self._transfer_mode.add_value( _("Transfer Container"), "CONTAINER_ONLY") self._transfer_mode.add_value(_("Transfer Full"), "FULL") self._transfer_mode.set_value("UNSPECIFIED") self._data_catg = CodeView(self.data_catg) self._data_catg.add_value(_("Elementary"), _DataCatg.ELEMENTARY) self._data_catg.add_value(_("List"), _DataCatg.LIST) self._data_catg.add_value(_("Dictionary"), _DataCatg.DICTIONARY) self._data_type = self._data_type_code_view_new(self.data_type) self._element_type = self._data_type_code_view_new(self.element_type) self._key_type = self._data_type_code_view_new(self.key_type) self._value_type = self._data_type_code_view_new(self.value_type) self.radio_fixed_length.connect("toggled", self._on_radio_length_toggled) self.radio_from_param.connect("toggled", self._on_radio_length_toggled) self.data_catg.connect("changed", self._on_data_catg_changed, self._data_catg) self._on_radio_length_toggled(self.radio_fixed_length) self._on_data_catg_changed(self.data_catg, self._data_catg)
def __init__(self): UserInterface.__init__(self, "property_dialog.ui") self._init_prop_type_combo() self.property_type = PROP_STRING self._init_access_combo() self.access_type = PROP_ACCESS_READ
def __init__(self): UserInterface.__init__(self, "settings_dialog.ui")