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-23 14:43:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-23 14:43:38 +0300
commite0fc6d0c3360c1e5b61bdeefeb92cd3325780fab (patch)
tree7572b3143a9316a5e9639dbe3d2d758845454d18 /release/scripts/modules/rna_prop_ui.py
parentc6dbbde16bdcfc46eba0c5a6bcd02c8d40c5f964 (diff)
more ui api changes.
- remove functions such as operator_int(), operator_enum(), operator_string this mixed with keyword arguments in a way that made them hard to read. Instead, have operator() always return properties rather then needing an argument. - rename prop_pointer() --> prop_object(), pointer is more a C thing. - missed item_enumR(), rename to prop_enum()
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r--release/scripts/modules/rna_prop_ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index 78eb21533e1..ef853b395ea 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -75,7 +75,7 @@ def draw(layout, context, context_member, use_edit = True):
if use_edit:
row = layout.row()
- props = row.operator("wm.properties_add", properties=True, text="Add")
+ props = row.operator("wm.properties_add", text="Add")
props.path = context_member
del row
@@ -112,10 +112,10 @@ def draw(layout, context, context_member, use_edit = True):
if use_edit:
row = split.row(align=True)
- prop = row.operator("wm.properties_edit", properties=True, text="edit")
+ prop = row.operator("wm.properties_edit", text="edit")
assign_props(prop, val_draw, key)
- prop = row.operator("wm.properties_remove", properties=True, text="", icon='ICON_ZOOMOUT')
+ prop = row.operator("wm.properties_remove", text="", icon='ICON_ZOOMOUT')
assign_props(prop, val_draw, key)