imageTable — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »

# imageTable

class `lib.imageTable.` `Table`(thumb_size=(128, 128))

  Bases: `object`

  `add_image_key`(image, key, value='')
  `add_key`(key, value='')
    Add key to all images
  `delete_cell`(row, col)
  `delete_images`(pos, num=1)
  `delete_keys`(pos, num=1)
  `get_cell_value`(row, col)
  `get_image_amount`()
  `get_image_filename`(index)
  `get_image_label`(index)
  `get_key_amount`()
  `get_key_label`(index)
  `is_cell_deletable`(row, col)
  `is_cell_editable`(row, col)
  `is_cell_empty`(row, col)
  `is_image_editable`(image)
  `is_key_editable`(index=0, key=None)
  `is_key_empty`(key)
  `open_folder`(folder)
  `open_image`(filename, update=True, encoding=None)
  `open_images`(paths, encoding=None)
  `set_cell_value`(row, col, value)
  `set_filter`(filter='')
  `set_image_key_value`(image, key, value)
  `set_image_label`(index, value)
  `set_key_label`(index, value)
  `set_key_value`(key, value)
  `set_tag`(tag)
  `transpose`()
  `update`()

class `lib.imageTable.` `TableImage`(filename, thumb_size=(128, 128))
  `get_time`()
  `is_modified`()
  `update`()
    Update the table from the image source file.
  `update_if_modified`()

    Check if the source file image has changed and update if it has.

    Returns: | True, if source image has changed
    Return type: | bool

  `update_time`()
    Update time. This time is used to check if the source file has changed.

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- lib »