diff options
author | Thomas Dinges <blender@dingto.org> | 2011-08-27 17:38:53 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-08-27 17:38:53 +0400 |
commit | f4768033d876ed23567a71a2897c19c46753f788 (patch) | |
tree | d17f64037cd6035e20880585db5528cb185490b9 /system_demo_mode/__init__.py | |
parent | d744270e737d5ecb192897e94549fde45405c469 (diff) |
Addon UI Cleanup, Part 2
* You only have to do layout.prop if you want 1 property, no need for row then!
* Use col, row, sub as variable names, not colsub, rowsub, row2 etc please.
* Povray Addon: Still used a lot of splits, you need no split when you only have 1 column!
Diffstat (limited to 'system_demo_mode/__init__.py')
-rw-r--r-- | system_demo_mode/__init__.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/system_demo_mode/__init__.py b/system_demo_mode/__init__.py index 2d0f8149..2a7863cc 100644 --- a/system_demo_mode/__init__.py +++ b/system_demo_mode/__init__.py @@ -109,8 +109,7 @@ class DemoModeSetup(bpy.types.Operator): box.label("Search *.blend recursively") box.label("Writes: demo.py config text.") - col = layout.column() - col.prop(self, "run") + layout.prop(self, "run") col.label("Generate Settings:") row = col.row() @@ -120,19 +119,19 @@ class DemoModeSetup(bpy.types.Operator): mode = self.mode col.separator() - colsub = col.column() - colsub.active = (mode in ('AUTO', 'PLAY')) - colsub.label("Animate Settings:") - colsub.prop(self, "anim_cycles") - colsub.prop(self, "anim_time_min") - colsub.prop(self, "anim_time_max") - colsub.prop(self, "anim_screen_switch") + sub = col.column() + sub.active = (mode in ('AUTO', 'PLAY')) + sub.label("Animate Settings:") + sub.prop(self, "anim_cycles") + sub.prop(self, "anim_time_min") + sub.prop(self, "anim_time_max") + sub.prop(self, "anim_screen_switch") col.separator() - colsub = col.column() - colsub.active = (mode in ('AUTO', 'RENDER')) - colsub.label("Render Settings:") - colsub.prop(self, "display_render") + sub = col.column() + sub.active = (mode in ('AUTO', 'RENDER')) + sub.label("Render Settings:") + sub.prop(self, "display_render") class DemoModeRun(bpy.types.Operator): |