class_docstr: Indicates that a setting is about to change, allows a listener to cancel the change
  
      
code: def cancel_change(self, reason=None):
      self.__allow_change = False
      self.__cancel_reason = reason
  
imports: from ._change_setting_event import ChangeSettingEvent
label_desc: Use image node_id 2 for calling the BeforeChangeSettingEvent obj's underlying member method code with example usage: obj.cancel_change(reason) without return types