Gimpformats Index / Gimpformats / Gimpgtptoolpreset
Auto-generated documentation for gimpformats.GimpGtpToolPreset module.
Show source in GimpGtpToolPreset.py:116
Pure python implementation of the gimp gtp tool preset format.
class GimpGtpToolPreset:
def __init__(self, fileName: BytesIO | str | None = None) -> None: ...Show source in GimpGtpToolPreset.py:155
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpGtpToolPreset.py:151
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGtpToolPreset.py:134
Decode a byte buffer.
data- data buffer to decodeindex- ignored
def decode(self, data: bytearray | bytes, index: int = 0) -> int: ...Show source in GimpGtpToolPreset.py:143
Encode to bytearray.
def encode(self) -> bytes: ...Show source in GimpGtpToolPreset.py:159
Get a textual representation of this object.
def full_repr(self, indent: int = 0) -> str: ...Show source in GimpGtpToolPreset.py:126
Load a gimp file.
fileName- can be a file name or a file-like object
def load(self, fileName: BytesIO | str) -> None: ...Show source in GimpGtpToolPreset.py:147
Save this gimp image to a file.
def save(self, tofileName: str | BytesIO) -> None: ...Show source in GimpGtpToolPreset.py:12
A parentheses-based file format.
(possibly "scheme" language?)
class ParenFileValue:
def __init__(
self, name: str | None = None, value: str = "", children=None
) -> None: ...Show source in GimpGtpToolPreset.py:43
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpGtpToolPreset.py:39
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGtpToolPreset.py:51
Get a textual representation of this object.
def full_repr(self) -> str: ...Show source in GimpGtpToolPreset.py:69
Decode a parentheses-based file format.
(possibly "scheme" language?)
def parenFileDecode(data: bytearray | bytes) -> list[ParenFileValue]: ...Show source in GimpGtpToolPreset.py:102
Encode a values tree to a buffer.
def parenFileEncode(values: list[ParenFileValue]) -> str: ...Show source in GimpGtpToolPreset.py:78
Walk the tree.
def walkTree(items: list[brackettree.RoundNode]) -> list[ParenFileValue]: ...