kopia lustrzana https://github.com/inkstitch/inkstitch
18 wiersze
530 B
Python
18 wiersze
530 B
Python
# Authors: see git history
|
|
#
|
|
# Copyright (c) 2010 Authors
|
|
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
|
|
|
|
from inkex import Boolean
|
|
|
|
from .base import InkstitchExtension
|
|
|
|
|
|
class CommandsExtension(InkstitchExtension):
|
|
"""Base class for extensions that manipulate commands."""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
InkstitchExtension.__init__(self, *args, **kwargs)
|
|
for command in self.COMMANDS:
|
|
self.arg_parser.add_argument("--%s" % command, type=Boolean)
|