metapho.tkpho package

Submodules

metapho.tkpho.tk_pho_image module

metapho.tkpho.tk_pho_widget module

metapho.tkpho.tk_tag_viewer module

metapho.tkpho.tkdialogs module

class metapho.tkpho.tkdialogs.CustomDialog(title, message, icon, buttons, master=None, yes_bindings=[])[source]

Bases: Dialog

apply(event=None)[source]

process the data

This method is called automatically to process the data, after the dialog is destroyed. By default, it does nothing.

body(parent)[source]

create dialog body.

return widget that should have initial focus. This method should be overridden, and is called by the __init__ method.

button_callback(event)[source]
buttonbox()[source]

add standard button box.

override if you do not want the standard buttons

class metapho.tkpho.tkdialogs.InfoDialog(*args, **kwargs)[source]

Bases: Toplevel

The InfoDialog is non-modal, and shows details about the current image, like EXIF. It should be possible to keep it up and have it change as the image changes. Typically it will be used as a singleton.

destroy_func(event=None)[source]
popdown(event=None)[source]
set_text(textlist)[source]

Text list is a list of tuples/lists There will be a line break between each item in textlist. The items themselves are lists alternating string and font.

static string_size(text)[source]
update_msg(cur_im, tagger=None)[source]

Update the message shown in the info dialog. Needs the Tagger in order to map tag numbers to strings, else it will just show tag numbers.

metapho.tkpho.tkdialogs.askyesno_with_bindings(title=None, message=None, yes_bindings=[])[source]
metapho.tkpho.tkdialogs.flash_message(msg, root)[source]
metapho.tkpho.tkdialogs.message_dialog(title=None, message=None, yes_bindings=[])[source]

metapho.tkpho.tkpho module

Module contents

metapho.tkpho: TkInter-based display functions for metapho.