set parent Zeq_GUI to reflect change in this box and change the
        @param: event -> the wx.ComboBoxEvent that triggered this function
185943
def on_select_mean_type_box(self, event):
        
        new_mean_type = self.mean_type_box.GetValue()
        if new_mean_type == "None":
            self.parent.clear_high_level_pars()
        self.parent.mean_type_box.SetStringSelection(new_mean_type)
        self.parent.onSelect_mean_type_box(event)
978267
def resizeEvent(self, event):
        
        super(XTabWidget, self).resizeEvent(event)
        self.adjustButtons()
5528
public void setChanged(boolean changed) {

        m_changedStyleVar.setValue(
            changed
            ? I_CmsToolbarButtonLayoutBundle.INSTANCE.toolbarButtonCss().elementInfoChanged()
            : I_CmsToolbarButtonLayoutBundle.INSTANCE.toolbarButtonCss().elementInfoUnchanged());
    }
1335497
function( event ) {
	// Check if mouse(over|out) are still within the same parent element
	var parent = event.relatedTarget;

	// Traverse up the tree
	while ( parent && parent !== this ) {
		// Firefox sometimes assigns relatedTarget a XUL element
		// which we cannot access the parentNode property of
		try {
			parent = parent.parentNode;

		// assuming we've left the element since we most likely mousedover a xul element
		} catch(e) {
			break;
		}
	}

	if ( parent !== this ) {
		// set the correct event type
		event.type = event.data;

		// handle event if we actually just moused on to a non sub-element
		jQuery.event.handle.apply( this, arguments );
	}

}
1312497
def _comboBoxActivated(self, index, comboBox=None):
        
        if comboBox is None:
            comboBox = self.sender()
        assert comboBox, "comboBox not defined and not the sender"

        blocked = self.blockChildrenSignals(True)

        # If one of the other combo boxes has the same value, set it to the fake dimension
        curDimIdx = self._comboBoxDimensionIndex(comboBox)
        if curDimIdx < FAKE_DIM_OFFSET:
            otherComboBoxes = [cb for cb in self._comboBoxes if cb is not comboBox]
            for otherComboBox in otherComboBoxes:
                if otherComboBox.currentIndex() == comboBox.currentIndex():
                    #newIdx = otherComboBox.findData(FAKE_DIM_IDX)
                    #otherComboBox.setCurrentIndex(newIdx)
                    otherComboBox.setCurrentIndex(0) # Fake dimension is always the first

        # Show only spin boxes that are not selected
        row = 0
        self._deleteSpinBoxes(row)
        self._createSpinBoxes(row)
        self._updateRtiInfo()

        self.blockChildrenSignals(blocked)

        logger.debug("{} sigContentsChanged signal (comboBox)"
                      .format("Blocked" if self.signalsBlocked() else "Emitting"))
        self.sigContentsChanged.emit(UpdateReason.COLLECTOR_COMBO_BOX)
461568
function handleComboboxKeyDown(event) {
    eventUtils.handleUpDownArrowsKeydown(event, () => {
        const currentSelectedIndex = findIndex(this.state.options, option => option.selected);
        const options = clearComboboxSelections(this.state.options);
        const optionEls = this.el.querySelectorAll(comboboxOptionSelector);
        let selectElementIndex = currentSelectedIndex;

        switch (event.charCode || event.keyCode) {
            // down
            case 40:
                selectElementIndex = traverseOptions(options, currentSelectedIndex, 1);
                break;
            // up
            case 38:
                selectElementIndex = traverseOptions(options, currentSelectedIndex, -1);
                break;
            default:
                break;
        }

        options[selectElementIndex].selected = true;

        this.setState('options', options);
        this.processAfterStateChange(optionEls[selectElementIndex]);
    });

    eventUtils.handleEscapeKeydown(event, () => {
        this.expander.collapse();
        this.el.querySelector(comboboxHostSelector).focus();
    });
}
84188
private void jCheckBoxUseDefaultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxUseDefaultActionPerformed
        
    	if(jCheckBoxUseDefault.isSelected()){
    		pref.put(DisposableOBDAPreferences.USE_DEAFAULT, "true");
    		cmdFontFamily.setEnabled(false);
    	}else{
    		pref.put(DisposableOBDAPreferences.USE_DEAFAULT, "false");
    		cmdFontFamily.setEnabled(true);
    	}
    	
    }
133035
def keyPressEvent( self, event ):
        
        if ( event.key() == Qt.Key_Backtab ):
            self.unindentSelection()
        else:
            super(XScintillaEdit, self).keyPressEvent(event)
191896
def resizeEvent(self, event):
        
        self.resized.emit()
        return super(WizardDialog, self).resizeEvent(event)
619774
def keyPressEvent(self, event):
        
        # reject on a cancel
        if event.key() == Qt.Key_Escape:
            self.reject()
        
        super(XSnapshotWidget, self).keyPressEvent(event)
554358
def showEvent(self, event):
        
        super(XMenu, self).showEvent(event)
        
        self.adjustSize()
        self.adjustMinimumWidth()
        self.rebuildButtons()
421865
public final void setParent(ElementBase parent) {
        ElementBase oldParent = this.parent;
        
        if (oldParent == parent) {
            return;
        }
        
        if (oldParent != null) {
            oldParent.removeChild(this, false);
        }
        
        if (parent != null) {
            parent.addChild(this);
        }
    }
885260
def showEvent(self, event):
        
        super(CodeEdit, self).showEvent(event)
        self.panels.refresh()
1027936
@Override
	public void setWidget( Widget w )
	{
		// Validate
		if( w == widget )
			return;

		// Detach new child.
		if( w != null )
			w.removeFromParent();

		// Remove old child.
		if( widget != null )
			remove( widget );

		// Logical attach.
		widget = w;

		if( w != null )
		{
			// Physical attach.
			DOM.appendChild( containerElement, widget.getElement() );

			adopt( w );
		}
	}
1130342
protected void onkeyupevent() {

        String newText = m_comboBox.getFormValueAsString();

        if (!newText.equals(m_oldtext)) {
            fireChangeEvent();
            if (!newText.equals("")) {
                m_comboBox.closeSelector();
            } else {
                m_comboBox.openSelector();
            }
        }

        m_oldtext = newText;
    }
1235866
public void onChange(Widget widget) {

        if (widget == m_tbHexColor) {
            try {
                CmsColor color = new CmsColor();
                color.setHex(m_tbHexColor.getText());
                m_tbHue.setText(Integer.toString(color.getHue()));
                m_tbSaturation.setText(Integer.toString(color.getSaturation()));
                m_tbBrightness.setText(Integer.toString(color.getValue()));
                m_tbRed.setText(Integer.toString(color.getRed()));
                m_tbGreen.setText(Integer.toString(color.getGreen()));
                m_tbBlue.setText(Integer.toString(color.getBlue()));
                m_tbHexColor.setText(color.getHex());
                setPreview(color.getHex());
            } catch (Exception e) {
                // do something.
            }
        }

        if ((widget == m_tbRed) || (widget == m_tbGreen) || (widget == m_tbBlue)) {
            // Don't allow this value to overflow or underflow
            try {
                if (Integer.parseInt(((TextBox)widget).getText()) > 255) {
                    ((TextBox)widget).setText("255");
                }
                if (Integer.parseInt(((TextBox)widget).getText()) < 0) {
                    ((TextBox)widget).setText("0");
                }
            } catch (Exception e) {
                // do something.
            }

            m_red = Integer.parseInt(m_tbRed.getText());
            m_green = Integer.parseInt(m_tbGreen.getText());
            m_blue = Integer.parseInt(m_tbBlue.getText());
            m_hue = Integer.parseInt(m_tbHue.getText());
            m_saturation = Integer.parseInt(m_tbSaturation.getText());
            m_brightness = Integer.parseInt(m_tbBrightness.getText());

            try {
                CmsColor color = new CmsColor();
                color.setRGB(m_red, m_green, m_blue);
                m_tbHue.setText(Integer.toString(color.getHue()));
                m_tbSaturation.setText(Integer.toString(color.getSaturation()));
                m_tbBrightness.setText(Integer.toString(color.getValue()));
                m_tbHexColor.setText(color.getHex());
                setPreview(color.getHex());
            } catch (Exception e) {
                // do something.
            }
        } else if ((widget == m_tbHue) || (widget == m_tbSaturation) || (widget == m_tbBrightness)) {
            try {
                if (Integer.parseInt(m_tbHue.getText()) > 359) {
                    m_tbHue.setText("359");
                }

                if (Integer.parseInt(m_tbSaturation.getText()) > 100) {
                    m_tbSaturation.setText("100");
                }

                if (Integer.parseInt(m_tbBrightness.getText()) > 100) {
                    m_tbBrightness.setText("100");
                }
            } catch (Exception e) {
                // do something.
            }

            m_red = Integer.parseInt(m_tbRed.getText());
            m_green = Integer.parseInt(m_tbGreen.getText());
            m_blue = Integer.parseInt(m_tbBlue.getText());
            m_hue = Integer.parseInt(m_tbHue.getText());
            m_saturation = Integer.parseInt(m_tbSaturation.getText());
            m_brightness = Integer.parseInt(m_tbBrightness.getText());

            // Figure out colors
            try {
                CmsColor color = new CmsColor();
                color.setHSV(m_hue, m_saturation, m_brightness);
                m_tbRed.setText(Integer.toString(color.getRed()));
                m_tbGreen.setText(Integer.toString(color.getGreen()));
                m_tbBlue.setText(Integer.toString(color.getBlue()));
                m_tbHexColor.setText(color.getHex());
                setPreview(color.getHex());
            } catch (Exception e) {
                // do something.
            }
        }

        // Let the sliders know something's changed
        updateSliders();
    }
981887
def update_event(self, hint, obj):
        """"""

        tree = self.treeview
        data = obj
        item = self.get_item_by_data(obj)
        if item:
            if data.get_id() != tree.item(item, 'text'):
                tree.item(item, text=data.get_id())
            # if tree.parent(item) != '' and 'layout' in data:
            if tree.parent(item) != '':
                row = data.get_layout_property('row')
                col = data.get_layout_property('column')
                values = tree.item(item, 'values')
                if (row != values[1] or col != values[2]):
                    values = (data.get_class(), row, col)
                tree.item(item, values=values)
            self.draw_widget(item)
            self.app.set_changed()