diff options
Diffstat (limited to 'release/scripts/ui/space_console.py')
-rw-r--r-- | release/scripts/ui/space_console.py | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py index d02577d93e6..88b806ecf23 100644 --- a/release/scripts/ui/space_console.py +++ b/release/scripts/ui/space_console.py @@ -1,9 +1,28 @@ +# ##### BEGIN GPL LICENSE BLOCK ##### +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# ##### END GPL LICENSE BLOCK ##### + +# <pep8 compliant> import sys 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 +60,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 +71,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 +129,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 +209,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' |