This class is used to display proposals to the user. More...
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. |
This class is used to display proposals to the user.
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:
Definition at line 31 of file image_selection_frame.py.
def face_contour_detector.gui.image_selection_frame.ImageSelectionFrame.__init__ | ( | self, | |
master, | |||
proposals | |||
) |
Constructor method.
self | the object pointer |
master | The Tkinter master widget of this frame |
proposals | a 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.
Callback method for image label clicks.
self | the object pointer |
n | The 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.
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.