Skip to content

Latest commit

 

History

History
239 lines (141 loc) · 5.01 KB

File metadata and controls

239 lines (141 loc) · 5.01 KB

Gimpgtptoolpreset

Gimpformats Index / Gimpformats / Gimpgtptoolpreset

Auto-generated documentation for gimpformats.GimpGtpToolPreset module.

GimpGtpToolPreset

Show source in GimpGtpToolPreset.py:116

Pure python implementation of the gimp gtp tool preset format.

Signature

class GimpGtpToolPreset:
    def __init__(self, fileName: BytesIO | str | None = None) -> None: ...

GimpGtpToolPreset().repr

Show source in GimpGtpToolPreset.py:155

Get a textual representation of this object.

Signature

def __repr__(self) -> str: ...

GimpGtpToolPreset().str

Show source in GimpGtpToolPreset.py:151

Get a textual representation of this object.

Signature

def __str__(self) -> str: ...

GimpGtpToolPreset().decode

Show source in GimpGtpToolPreset.py:134

Decode a byte buffer.

Arguments

  • data - data buffer to decode
  • index - ignored

Signature

def decode(self, data: bytearray | bytes, index: int = 0) -> int: ...

GimpGtpToolPreset().encode

Show source in GimpGtpToolPreset.py:143

Encode to bytearray.

Signature

def encode(self) -> bytes: ...

GimpGtpToolPreset().full_repr

Show source in GimpGtpToolPreset.py:159

Get a textual representation of this object.

Signature

def full_repr(self, indent: int = 0) -> str: ...

GimpGtpToolPreset().load

Show source in GimpGtpToolPreset.py:126

Load a gimp file.

Arguments

  • fileName - can be a file name or a file-like object

Signature

def load(self, fileName: BytesIO | str) -> None: ...

GimpGtpToolPreset().save

Show source in GimpGtpToolPreset.py:147

Save this gimp image to a file.

Signature

def save(self, tofileName: str | BytesIO) -> None: ...

ParenFileValue

Show source in GimpGtpToolPreset.py:12

A parentheses-based file format.

(possibly "scheme" language?)

Signature

class ParenFileValue:
    def __init__(
        self, name: str | None = None, value: str = "", children=None
    ) -> None: ...

ParenFileValue().repr

Show source in GimpGtpToolPreset.py:43

Get a textual representation of this object.

Signature

def __repr__(self) -> str: ...

ParenFileValue().str

Show source in GimpGtpToolPreset.py:39

Get a textual representation of this object.

Signature

def __str__(self) -> str: ...

ParenFileValue().full_repr

Show source in GimpGtpToolPreset.py:51

Get a textual representation of this object.

Signature

def full_repr(self) -> str: ...

parenFileDecode

Show source in GimpGtpToolPreset.py:69

Decode a parentheses-based file format.

(possibly "scheme" language?)

Signature

def parenFileDecode(data: bytearray | bytes) -> list[ParenFileValue]: ...

See also

parenFileEncode

Show source in GimpGtpToolPreset.py:102

Encode a values tree to a buffer.

Signature

def parenFileEncode(values: list[ParenFileValue]) -> str: ...

See also

walkTree

Show source in GimpGtpToolPreset.py:78

Walk the tree.

Signature

def walkTree(items: list[brackettree.RoundNode]) -> list[ParenFileValue]: ...

See also