All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Public Attributes
face_contour_detector.gui.image_selection_frame.ImageSelectionFrame Class Reference

This class is used to display proposals to the user. More...

List of all members.

Public Member Functions

def __init__
 Constructor method.
def select
 Callback method for image label clicks.

Public Attributes

 image_buffer
 a list of the ImateTk.PhotoImages that are displayed (or python will destroy them even if they're displayed...)
 proposals
 a list of type autoselect_result.

Detailed Description

This class is used to display proposals to the user.

Author:
Fabian Wenzelmann

This class displays up to four proposals images. The images can be clicked which means that the users selects the filter settings of that image. The images are scaled to a max size so that the four images fit in a single row. Here's an example instance of this frame:

image_selection_frame.png

Definition at line 31 of file image_selection_frame.py.


Constructor & Destructor Documentation

Constructor method.

Parameters:
selfthe object pointer
masterThe Tkinter master widget of this frame
proposalsa list of type autoselect_result. Each proposal consists of the original image and the initial filter settings.

This frame contains only for simple labels which display the result of applying the filters of that proposal to the original image. Each label is clickable. When clicked the settings of this proposal are used to create a ImageSettingsFrame.

Definition at line 39 of file image_selection_frame.py.


Member Function Documentation

Callback method for image label clicks.

Parameters:
selfthe object pointer
nThe number of the proposal that is choose. For example if the list contained for proposals and the second is choosen by the user n is 1

This method creates a new ImageSettingsFrame with the selected initial settings. A new Tkinter.Toplevel widget is created as master of that frame. The new frame gets displayed and this method waits for this window. After that the master of this object (which is usually a Tkinter.Tk widget) gets destroyed.

Definition at line 79 of file image_selection_frame.py.


Member Data Documentation

a list of the ImateTk.PhotoImages that are displayed (or python will destroy them even if they're displayed...)

Definition at line 39 of file image_selection_frame.py.

a list of type autoselect_result.

Each proposal consists of the original image and the initial filter settings.

Definition at line 39 of file image_selection_frame.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


face_contour_detector
Author(s): Fabian Wenzelmann and Julian Schmid
autogenerated on Wed Dec 26 2012 16:18:18