Python Image.align_values() Examples

The following are 10 code examples of Image.align_values(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module Image , or try the search function .
Example #1
Source File: images.py    From faces with GNU General Public License v2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #2
Source File: images.py    From faces with GNU General Public License v2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #3
Source File: images.py    From deepWordBug with Apache License 2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #4
Source File: images.py    From bash-lambda-layer with MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #5
Source File: images.py    From cadquery-freecad-module with GNU Lesser General Public License v3.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #6
Source File: images.py    From AWS-Transit-Gateway-Demo-MultiAccount with MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #7
Source File: images.py    From AWS-Transit-Gateway-Demo-MultiAccount with MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #8
Source File: images.py    From blackmamba with MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #9
Source File: images.py    From aws-extender with MIT License 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values) 
Example #10
Source File: images.py    From aws-builders-fair-projects with Apache License 2.0 5 votes vote down vote up
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values)