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-02-28 16:27:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-28 16:27:45 +0300
commitbab4cd69913eee9aa30d61db7dc46e21655e4bde (patch)
treeebf28a1372c0db195928a1724b05f56d5c62d35e /source/blender/python/BPY_extern.h
parent0f8969640ccb5e7f615c85576e569ba23dd62c6f (diff)
Python experimental UI API
Can draw panels in the scripts space containing RNA and operator buttons. * Added bpyui.register() so scripts can draw buttons and panels into the scripts space type. * wrapped drawBlock, drawPanels and matchPanelsView2d * Operator buttons take a python dictionary used to set the button defaults. * BPY_getFileAndNum utility function to get the filename and line number python is currently running.
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r--source/blender/python/BPY_extern.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h
index 35dba84d553..219ab2d3c41 100644
--- a/source/blender/python/BPY_extern.h
+++ b/source/blender/python/BPY_extern.h
@@ -95,7 +95,14 @@ extern "C" {
int BPY_menu_do_python( short menutype, int event );
int BPY_menu_do_shortcut( short menutype, unsigned short key, unsigned short modifiers );
int BPY_menu_invoke( struct BPyMenu *pym, short menutype );
- void BPY_run_python_script( struct bContext *C, const char *filename );
+
+ /* 2.5 UI Scripts */
+ void BPY_run_python_script( struct bContext *C, const char *filename ); // 2.5 working
+ int BPY_run_script_space_draw(struct bContext *C, struct SpaceScript * sc); // 2.5 working
+// int BPY_run_script_space_listener(struct bContext *C, struct SpaceScript * sc, struct ARegion *ar, struct wmNotifier *wmn); // 2.5 working
+
+
+
int BPY_run_script(struct Script *script);
void BPY_free_compiled_text( struct Text *text );