Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/ui/space_text.py')
-rw-r--r--release/scripts/ui/space_text.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/release/scripts/ui/space_text.py b/release/scripts/ui/space_text.py
index 0b7e215dc37..d1ccdf2acbb 100644
--- a/release/scripts/ui/space_text.py
+++ b/release/scripts/ui/space_text.py
@@ -95,6 +95,11 @@ class TEXT_PT_properties(bpy.types.Panel):
if text:
flow.prop(text, "use_tabs_as_spaces")
+ flow.prop(st, "show_margin")
+ col = flow.column()
+ col.active = st.show_margin
+ col.prop(st, "margin_column")
+
class TEXT_PT_find(bpy.types.Panel):
bl_space_type = 'TEXT_EDITOR'
@@ -131,12 +136,12 @@ class TEXT_PT_find(bpy.types.Panel):
class TEXT_MT_view(bpy.types.Menu):
bl_label = "View"
-
+
def draw(self, context):
layout = self.layout
-
+
layout.operator("text.properties", icon='MENU_PANEL')
-
+
layout.separator()
layout.operator("screen.area_dupli")
@@ -146,8 +151,8 @@ class TEXT_MT_view(bpy.types.Menu):
layout.operator("text.move", text="Top of File").type = 'FILE_TOP'
layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM'
-
-
+
+
class TEXT_MT_text(bpy.types.Menu):
bl_label = "Text"
@@ -174,7 +179,7 @@ class TEXT_MT_text(bpy.types.Menu):
layout.column()
layout.operator("text.run_script")
- #ifndef DISABLE_PYTHON
+ #ifdef WITH_PYTHON
# XXX if(BPY_is_pyconstraint(text))
# XXX uiMenuItemO(head, 0, "text.refresh_pyconstraints");
#endif
@@ -293,12 +298,13 @@ class TEXT_MT_toolbox(bpy.types.Menu):
layout.operator("text.run_script")
+
def register():
- pass
+ bpy.utils.register_module(__name__)
def unregister():
- pass
+ bpy.utils.unregister_module(__name__)
if __name__ == "__main__":
register()