Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_text.py
| Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.operator("text.save", icon='FILE_TICK') | layout.operator("text.save", icon='FILE_TICK') | ||||
| layout.operator("text.save_as", text="Save As...") | layout.operator("text.save_as", text="Save As...") | ||||
| if text.filepath: | if text.filepath: | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("text.make_internal") | layout.operator("text.make_internal") | ||||
| layout.separator() | layout.separator() | ||||
| row = layout.row() | layout.prop(text, "use_module") | ||||
| row.active = text.name.endswith(".py") | |||||
| row.prop(text, "use_module") | |||||
| row = layout.row() | |||||
| layout.prop(st, "use_live_edit") | layout.prop(st, "use_live_edit") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("text.run_script") | layout.operator("text.run_script") | ||||
| class TEXT_MT_templates_py(Menu): | class TEXT_MT_templates_py(Menu): | ||||
| ▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines | |||||