Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 1,050 Lines • ▼ Show 20 Lines | |||||
| class USERPREF_MT_keyconfigs(Menu): | class USERPREF_MT_keyconfigs(Menu): | ||||
| bl_label = "KeyPresets" | bl_label = "KeyPresets" | ||||
| preset_subdir = "keyconfig" | preset_subdir = "keyconfig" | ||||
| preset_operator = "wm.keyconfig_activate" | preset_operator = "wm.keyconfig_activate" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| props = self.layout.operator("wm.context_set_value", text="Blender (default)") | |||||
| props.data_path = "window_manager.keyconfigs.active" | |||||
| props.value = "context.window_manager.keyconfigs.default" | |||||
| # now draw the presets | |||||
| Menu.draw_preset(self, context) | Menu.draw_preset(self, context) | ||||
| class USERPREF_PT_input(Panel): | class USERPREF_PT_input(Panel): | ||||
| bl_space_type = 'USER_PREFERENCES' | bl_space_type = 'USER_PREFERENCES' | ||||
| bl_label = "Input" | bl_label = "Input" | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| ▲ Show 20 Lines • Show All 537 Lines • Show Last 20 Lines | |||||