def _properties_changed(self, modified, actions): if modified and "style" in modified: actions.add("recreate_parent") return if not modified or "name" in modified and self.widget is not self._tb: self.widget.SetTitle(misc.design_title(misc.wxstr(self.name))) if not modified or "margins" in modified and self._tb: self._set_margins() actions.add("refresh") if not modified or "bitmapsize" in modified and self._tb: self._set_bitmapsize() actions.add("refresh") if not modified or "packing" in modified and self._tb: self._set_packing() actions.add("refresh") if not modified or "separation" in modified and self._tb: self._set_separation() actions.add("refresh") if not modified or "tools" in modified and self._tb: self._set_tools() actions.add("refresh") EditStylesMixin._properties_changed(self, modified, actions) EditBase._properties_changed(self, modified, actions)
def _properties_changed(self, modified, actions): if not modified or "fields" in modified: self._set_fields() EditStylesMixin._properties_changed(self, modified, actions) EditBase._properties_changed(self, modified, actions) if "recreate2" in actions: # usually, this would be done in WindowBase, but StatusBar is derived from EditBase self.destroy_widget(level=0) self.create_widget()
def _properties_changed(self, modified, actions): if not modified or "menus" in modified: self.set_menus() EditBase._properties_changed(self, modified, actions)
def _properties_changed(self, modified, actions): if not modified or "fields" in modified: self._set_fields() EditStylesMixin._properties_changed(self, modified, actions) EditBase._properties_changed(self, modified, actions)