Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/wm.py
| Show First 20 Lines • Show All 2,964 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.label() | layout.label() | ||||
| row = layout.row() | row = layout.row() | ||||
| sub = row.row() | sub = row.row() | ||||
| old_version = bpy.types.PREFERENCES_OT_copy_prev.previous_version() | old_version = bpy.types.PREFERENCES_OT_copy_prev.previous_version() | ||||
| if bpy.types.PREFERENCES_OT_copy_prev.poll(context) and old_version: | if bpy.types.PREFERENCES_OT_copy_prev.poll(context) and old_version: | ||||
| sub.operator("preferences.copy_prev", text="Load %d.%d Settings" % old_version) | sub.operator("preferences.copy_prev", text=iface_("Load %d.%d Settings", "Operator") % old_version) | ||||
| sub.operator("wm.save_userpref", text="Save New Settings") | sub.operator("wm.save_userpref", text="Save New Settings") | ||||
| else: | else: | ||||
| sub.label() | sub.label() | ||||
| sub.label() | sub.label() | ||||
| sub.operator("wm.save_userpref", text="Next") | sub.operator("wm.save_userpref", text="Next") | ||||
| layout.separator() | layout.separator() | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines | |||||