[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49492] trunk/blender/release/scripts/ templates/ui_panel.py: SVN maintenance.
gsr b3d
gsr.b3d at infernal-iceberg.com
Thu Aug 2 05:17:58 CEST 2012
Revision: 49492
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49492
Author: gsrb3d
Date: 2012-08-02 03:17:54 +0000 (Thu, 02 Aug 2012)
Log Message:
-----------
SVN maintenance.
Modified Paths:
--------------
trunk/blender/release/scripts/templates/ui_panel.py
Property Changed:
----------------
trunk/blender/release/scripts/templates/ui_panel.py
Modified: trunk/blender/release/scripts/templates/ui_panel.py
===================================================================
--- trunk/blender/release/scripts/templates/ui_panel.py 2012-08-02 00:10:05 UTC (rev 49491)
+++ trunk/blender/release/scripts/templates/ui_panel.py 2012-08-02 03:17:54 UTC (rev 49492)
@@ -1,56 +1,56 @@
-import bpy
-
-
-class LayoutDemoPanel(bpy.types.Panel):
- """Creates a Panel in the scene context of the properties editor"""
- bl_label = "Layout Demo"
- bl_idname = "SCENE_PT_layout"
- bl_space_type = 'PROPERTIES'
- bl_region_type = 'WINDOW'
- bl_context = "scene"
-
- def draw(self, context):
- layout = self.layout
-
- sc = context.scene
-
- #Create a simple row.
- layout.label(text=" Simple Row:")
-
- row = layout.row()
- row.prop(sc, "frame_start")
- row.prop(sc, "frame_end")
-
- #Create an row where the buttons are aligned to each other.
- layout.label(text=" Aligned Row")
-
- row = layout.row(align=True)
- row.prop(sc, "frame_start")
- row.prop(sc, "frame_end")
-
- #Create two columns, by using a split layout.
- split = layout.split()
-
- # First column
- col = split.column()
- col.label(text="Column One:")
- col.prop(sc, "frame_end")
- col.prop(sc, "frame_start")
-
- # Second column, aligned
- col = split.column(align=True)
- col.label(text="Column Two")
- col.prop(sc, "frame_start")
- col.prop(sc, "frame_end")
-
-
-def register():
- bpy.utils.register_class(LayoutDemoPanel)
-
-
-def unregister():
- bpy.utils.unregister_class(LayoutDemoPanel)
-
-
-if __name__ == "__main__":
- register()
+import bpy
+
+
+class LayoutDemoPanel(bpy.types.Panel):
+ """Creates a Panel in the scene context of the properties editor"""
+ bl_label = "Layout Demo"
+ bl_idname = "SCENE_PT_layout"
+ bl_space_type = 'PROPERTIES'
+ bl_region_type = 'WINDOW'
+ bl_context = "scene"
+
+ def draw(self, context):
+ layout = self.layout
+
+ sc = context.scene
+
+ #Create a simple row.
+ layout.label(text=" Simple Row:")
+
+ row = layout.row()
+ row.prop(sc, "frame_start")
+ row.prop(sc, "frame_end")
+
+ #Create an row where the buttons are aligned to each other.
+ layout.label(text=" Aligned Row")
+
+ row = layout.row(align=True)
+ row.prop(sc, "frame_start")
+ row.prop(sc, "frame_end")
+
+ #Create two columns, by using a split layout.
+ split = layout.split()
+
+ # First column
+ col = split.column()
+ col.label(text="Column One:")
+ col.prop(sc, "frame_end")
+ col.prop(sc, "frame_start")
+
+ # Second column, aligned
+ col = split.column(align=True)
+ col.label(text="Column Two")
+ col.prop(sc, "frame_start")
+ col.prop(sc, "frame_end")
+
+
+def register():
+ bpy.utils.register_class(LayoutDemoPanel)
+
+
+def unregister():
+ bpy.utils.unregister_class(LayoutDemoPanel)
+
+
+if __name__ == "__main__":
+ register()
Property changes on: trunk/blender/release/scripts/templates/ui_panel.py
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Bf-blender-cvs
mailing list