Skip to content
Permalink
Browse files

Port to 2.78 - 0.2.2 changes - Text editor refinements. File menu ...

  • Loading branch information...
ReinerBforartists committed Jan 25, 2017
1 parent f54ea24 commit 2400034d2562949812e537c02f60d843aa94ba58
Showing with 9 additions and 6 deletions.
  1. +9 −6 release/scripts/startup/bl_ui/space_text.py
@@ -100,14 +100,13 @@ def draw_menus(layout, context):
st = context.space_data
text = st.text

layout.menu("TEXT_MT_File")
layout.menu("TEXT_MT_view")
layout.menu("TEXT_MT_text")

if text:
layout.menu("TEXT_MT_edit")
layout.menu("TEXT_MT_format")

layout.menu("TEXT_MT_templates")


class TEXT_PT_properties(Panel):
@@ -208,17 +207,17 @@ def draw(self, context):
layout.operator("screen.screen_full_area", text="Toggle Fullscreen Area").use_hide_panels = True


class TEXT_MT_text(Menu):
bl_label = "Text"
class TEXT_MT_File(Menu):
bl_label = "File"

def draw(self, context):
layout = self.layout

st = context.space_data
text = st.text

layout.operator("text.new")
layout.operator("text.open")
layout.operator("text.new", text = "New Text")
layout.operator("text.open", text = "Open Text")

if text:
layout.operator("text.reload")
@@ -233,6 +232,10 @@ def draw(self, context):
layout.column()
layout.operator("text.run_script")

layout.separator()

layout.menu("TEXT_MT_templates")


class TEXT_MT_templates_py(Menu):
bl_label = "Python"

0 comments on commit 2400034

Please sign in to comment.
You can’t perform that action at this time.