Set the off mask for the current group/button.
429140
def set_off_mask(self, mask):
        """"""
        set_cmd = self._create_set_property_msg('_off_mask', 0x03, mask)
        self._send_method(set_cmd, self._property_set)
201734
def clear(self):
        """"""
        self.exposures = []
        self.exposure_labels = []
        self.exposure_combo_boxes = []
        self.exposure_edit_buttons = []
        self.mode = CHOOSE_MODE

        self.layer_purpose = None
        self.layer_mode = None
        self.special_case_index = None

        self.value_maps = {}
        self.thresholds = {}

        # Temporary attributes
        self.threshold_classes = OrderedDict()
        self.active_exposure = None

        self.list_unique_values = None
        self.tree_mapping_widget = None

        clear_layout(self.left_layout)
        clear_layout(self.right_layout)
1019901
@UiHandler("m_okButton")
    protected void onOk(ClickEvent event) {

        if (!((m_croppingParam.getTargetWidth() > 0) && (m_croppingParam.getTargetHeight() > 0))) {
            if (m_croppingParam.getTargetWidth() > 0) {
                m_croppingParam.setTargetHeight(
                    (int)Math.floor(
                        (1.00 * m_croppingParam.getTargetWidth() * m_croppingParam.getCropHeight())
                            / m_croppingParam.getCropWidth()));
            } else if (m_croppingParam.getTargetHeight() > 0) {
                m_croppingParam.setTargetWidth(
                    (int)Math.floor(
                        (1.00 * m_croppingParam.getTargetHeight() * m_croppingParam.getCropWidth())
                            / m_croppingParam.getCropHeight()));
            } else {
                m_croppingParam.setTargetHeight(m_croppingParam.getCropHeight());
                m_croppingParam.setTargetWidth(m_croppingParam.getCropWidth());
            }
        }
        ValueChangeEvent.fire(this, m_croppingParam);
        hide();
    }
510736
def set_toggle_mask(self, mode_mask, rfm=1):
        
        cmds = {1: 'm', 2: 'M'}
        self._write_cmd('{}{}'.format(mode_mask, cmds[rfm]))
769174
def disable_buttons(self):
        
        self.main_btn.set_sensitive(False)
        self.back_btn.hide()
        self.info_label.set_label('<span color="#FFA500">In progress...</span>')
        self.disable_close_window()
        if self.link is not None:
            self.link.hide()
951591
def scene_off(self):
        """"""
        user_data = Userdata({'d1': self._group,
                              'd2': 0x00,
                              'd3': 0x00,
                              'd4': 0x13,
                              'd5': 0x00,
                              'd6': 0x00})
        self._set_sent_property(DIMMABLE_KEYPAD_SCENE_ON_LEVEL, 0x00)
        cmd = ExtendedSend(self._address,
                           COMMAND_EXTENDED_TRIGGER_ALL_LINK_0X30_0X00,
                           user_data)
        cmd.set_checksum()
        self._send_method(cmd, self._received_scene_triggered)
110214
def stop(self, group_mask=ALL_GROUPS):
        
        self._send_packet(struct.pack('<BB',
                                      self.COMMAND_STOP,
                                      group_mask))
559298
def forget_masks(self):
        """"""
        self._seqno = 1
        self._maskobjs = []
        self._treepaths = []
        self.tree_dict = Bunch.caselessDict()
        self.redo()
68987
public void setMaskBits(int mask) throws IllegalArgumentException {

    if ((mask > MASK_MAX) || (mask < 0)) {
      throw new IllegalArgumentException("File mode mask out of range: " + mask);
    }
    this.maskBits = mask;
  }
504988
function smkAlertHide(){
      timer = setTimeout(function() {
        obj.animate({
          opacity: '0',
        }, 300, function() {
          obj.remove();
        });
      }, (settings.time * 1000) );
    }
368741
def toggle_inhibit(self):
        """"""
        if self.inhibit:
            self._controller.set_inhibit(False)
            self.inhibit = False
        else:
            self._controller.set_inhibit(True)
            self.inhibit = True
20514
def disable_radio_button(self):
        """"""
        checked = self.default_input_button_group.checkedButton()
        if checked:
            self.default_input_button_group.setExclusive(False)
            checked.setChecked(False)
            self.default_input_button_group.setExclusive(True)
        for button in self.default_input_button_group.buttons():
            button.setDisabled(True)
        self.custom_value.setDisabled(True)
31974
def set_trigger_group_bit_mask(self, trigger_group_bit_mask):
        """"""
        set_cmd = self._create_set_property_msg("_trigger_group_bit_mask",
                                                0x0c, trigger_group_bit_mask)
        self._send_method(set_cmd, self._property_set)
98035
def set_off(self):
        """"""
        try:
            request = requests.post(
                '{}/{}/{}/'.format(self.resource, URI, self._mac),
                data={'action': 'off'}, timeout=self.timeout)
            if request.status_code == 200:
                pass
        except requests.exceptions.ConnectionError:
            raise exceptions.MyStromConnectionError()
86412
def toggle_buttons(self):
        """"""
        all_time_on = self.all_time.get_value()
        all_chan_on = self.all_chan.get_value()

        self.times['beg'].setEnabled(not all_time_on)
        self.times['end'].setEnabled(not all_time_on)
        self.idx_chan.setEnabled(not all_chan_on)
756472
@Override
    public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
        currentPage = 1;
        super.onFilterEnabled(displayer, groupOp);
    }
320092
def set_unbind(self):
        
        self.unbind('<Button-1>')
        self.unbind('<Button-3>')
        self.unbind('<Up>')
        self.unbind('<Down>')
        self.unbind('<Shift-Up>')
        self.unbind('<Shift-Down>')
        self.unbind('<Control-Up>')
        self.unbind('<Control-Down>')
        self.unbind('<Double-Button-1>')
        self.unbind('<Double-Button-3>')
        self.unbind('<Shift-Button-1>')
        self.unbind('<Shift-Button-3>')
        self.unbind('<Control-Button-1>')
        self.unbind('<Control-Button-3>')
        self.unbind('<Enter>')