diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 16:31:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 16:31:23 +0300 |
commit | ea265fc69702566a846be3005d9fd814a10d7d54 (patch) | |
tree | 011f35edde76ca7519c6e4bfc9acb01c0d39774e /release/scripts/ui/space_console.py | |
parent | 85eb9d6a2f0a0d94f795fc5264670e85ad56992f (diff) |
change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.
replacements...
"__idname__" -> "bl_idname"
"__props__" -> "bl_props"
"__label__" -> "bl_label"
"__register__" -> "bl_register"
"__undo__" -> "bl_undo"
"__space_type__" -> "bl_space_type"
"__default_closed__" -> "bl_default_closed"
"__region_type__" -> "bl_region_type"
"__context__" -> "bl_context"
"__show_header__" -> "bl_show_header"
"__URL__" -> "_url"
Diffstat (limited to 'release/scripts/ui/space_console.py')
-rw-r--r-- | release/scripts/ui/space_console.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py index d02577d93e6..9bcd98be49e 100644 --- a/release/scripts/ui/space_console.py +++ b/release/scripts/ui/space_console.py @@ -3,7 +3,7 @@ import bpy class CONSOLE_HT_header(bpy.types.Header): - __space_type__ = 'CONSOLE' + bl_space_type = 'CONSOLE' def draw(self, context): sc = context.space_data @@ -41,7 +41,7 @@ class CONSOLE_HT_header(bpy.types.Header): class CONSOLE_MT_console(bpy.types.Menu): - __label__ = "Console" + bl_label = "Console" def draw(self, context): layout = self.layout @@ -52,7 +52,7 @@ class CONSOLE_MT_console(bpy.types.Menu): class CONSOLE_MT_report(bpy.types.Menu): - __label__ = "Report" + bl_label = "Report" def draw(self, context): layout = self.layout @@ -110,9 +110,9 @@ def get_console(console_id): class CONSOLE_OT_exec(bpy.types.Operator): '''Execute the current console line as a python expression.''' - __idname__ = "console.execute" - __label__ = "Console Execute" - __register__ = False + bl_idname = "console.execute" + bl_label = "Console Execute" + bl_register = False # Both prompts must be the same length PROMPT = '>>> ' @@ -190,9 +190,9 @@ class CONSOLE_OT_exec(bpy.types.Operator): class CONSOLE_OT_autocomplete(bpy.types.Operator): '''Evaluate the namespace up until the cursor and give a list of options or complete the name if there is only one.''' - __idname__ = "console.autocomplete" - __label__ = "Console Autocomplete" - __register__ = False + bl_idname = "console.autocomplete" + bl_label = "Console Autocomplete" + bl_register = False def poll(self, context): return context.space_data.console_type == 'PYTHON' |