Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/wm.py
| Show First 20 Lines • Show All 1,703 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.separator() | layout.separator() | ||||
| split = layout.split() | split = layout.split() | ||||
| col1 = split.column() | col1 = split.column() | ||||
| sub = col1.row() | sub = col1.row() | ||||
| sub.operator_context = 'INVOKE_DEFAULT' | sub.operator_context = 'INVOKE_DEFAULT' | ||||
| sub.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER') | props = sub.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER') | ||||
| props.display_file_selector = True | |||||
| col1.operator("wm.recover_last_session", icon='RECOVER_LAST') | col1.operator("wm.recover_last_session", icon='RECOVER_LAST') | ||||
| col2 = split.column() | col2 = split.column() | ||||
| if found_recent: | if found_recent: | ||||
| col2.operator( | col2.operator( | ||||
| "wm.url_open", text="Release Notes", icon='URL', | "wm.url_open", text="Release Notes", icon='URL', | ||||
| ).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[:2] | ).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[:2] | ||||
| col2.operator( | col2.operator( | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||