From f4768033d876ed23567a71a2897c19c46753f788 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 27 Aug 2011 13:38:53 +0000 Subject: 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! --- space_view3d_math_vis/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'space_view3d_math_vis/__init__.py') diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py index 10ba8d4b..3e025fe9 100644 --- a/space_view3d_math_vis/__init__.py +++ b/space_view3d_math_vis/__init__.py @@ -49,10 +49,6 @@ class VIEW3D_PT_math_vis(bpy.types.Panel): bl_label = "Math View" def draw(self, context): - layout = self.layout - - col = layout.column(align=True) - callbacks = draw.callbacks ok = False for region in context.area.regions: @@ -60,7 +56,7 @@ class VIEW3D_PT_math_vis(bpy.types.Panel): ok = True break - col.operator("view3d.math_vis_toggle", emboss=False, icon='CHECKBOX_HLT' if ok else 'CHECKBOX_DEHLT') + self.layout.operator("view3d.math_vis_toggle", emboss=False, icon='CHECKBOX_HLT' if ok else 'CHECKBOX_DEHLT') class SetupMathView(bpy.types.Operator): -- cgit v1.2.3