NEW: getButtonSetting python function