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:
authorCampbell Barton <ideasman42@gmail.com>2009-11-05 14:17:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-05 14:17:09 +0300
commit247f72fcc00b438d8d76809eee9c00c5c8561e68 (patch)
tree89032162087708b47b83c0e7b91637e5c3cf394b /source/blender/editors
parentcacd68c3359c74f5f2ab7bae304ffeb59ee6e9da (diff)
- added bpy.context to the python module
- made the console banner printing function into a python operator (includes sys.version) - added 'C' into the consoles default namespace for convenience
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_console/space_console.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c
index 49bc3adb5b9..6774481430a 100644
--- a/source/blender/editors/space_console/space_console.c
+++ b/source/blender/editors/space_console/space_console.c
@@ -164,21 +164,9 @@ static void console_main_area_draw(const bContext *C, ARegion *ar)
View2DScrollers *scrollers;
//float col[3];
- /* add helper text, why not? */
- if(sc->scrollback.first==NULL) {
- console_scrollback_add_str(C, " * Python Interactive Console *", 0);
- console_scrollback_add_str(C, "Command History: Up/Down Arrow", 0);
- console_scrollback_add_str(C, "Cursor: Left/Right Home/End", 0);
- console_scrollback_add_str(C, "Remove: Backspace/Delete", 0);
- console_scrollback_add_str(C, "Execute: Enter", 0);
- console_scrollback_add_str(C, "Autocomplete: Ctrl+Space", 0);
- console_scrollback_add_str(C, "Ctrl +/- Wheel: Zoom", 0);
- console_scrollback_add_str(C, "Builtin Modules: bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.ui", 0);
-
- /* This is normally set by python but to start with its easier just to set it like this rather then running python with no args */
- strcpy(sc->prompt, ">>> ");
- }
-
+ if(sc->scrollback.first==NULL)
+ WM_operator_name_call((bContext *)C, "CONSOLE_OT_banner", WM_OP_EXEC_DEFAULT, NULL);
+
/* clear and setup matrix */
//UI_GetThemeColor3fv(TH_BACK, col);
//glClearColor(col[0], col[1], col[2], 0.0);