Source

python-fu-divide-layer / divide-layer.py

Diff from to

File divide-layer.py

 import ctypes
 
 def divide_layer(img, drawable, width, height) :
-"""****f* divide-layer/divide_layer
-*       DESCRIPTION
-*               Python-fu function, creates new layers holding copied regions from the active layer of an image
-*       ARGUMENTS
-*               img             -- python-fu image
-*               drawable        -- python-fu drawable
-*               width           -- width (in pixels) of regions to copy
-*               height          -- height (in pixels) of regions to copy
-*       SIDE EFFECTS
-*               Appends copy layers to image layer list
-*       RESULT
-*               None.
-*****"""
+        """****f* divide-layer/divide_layer
+        *       DESCRIPTION
+        *               Python-fu function, creates new layers holding copied regions from the active layer of an image
+        *       ARGUMENTS
+        *               img             -- python-fu image
+        *               drawable        -- python-fu drawable
+        *               width           -- width (in pixels) of regions to copy
+        *               height          -- height (in pixels) of regions to copy
+        *       SIDE EFFECTS
+        *               Appends copy layers to image layer list
+        *       RESULT
+        *               None.
+        *****"""
         MessageBox = ctypes.windll.user32.MessageBoxA
 
         hslices = img.width / width