grapa.frontend.widgets_custom.FrameTitleContentHide
- class grapa.frontend.widgets_custom.FrameTitleContentHide(master, funcFillTitle, funcFillContent, contentkwargs={}, default='show', layout='horizontal', showHideTitle=False, createButtons=True, horizLineFrame=True, **kwargs)
Bases:
FrameA class to show and hide some content in the user-interface
createButtons: if False, does not create button AND does not fill Frames _title and _content. Up to the user to do that. Buttons can be created by calling createButtonShow() and createButtonHide()
- __init__(master, funcFillTitle, funcFillContent, contentkwargs={}, default='show', layout='horizontal', showHideTitle=False, createButtons=True, horizLineFrame=True, **kwargs)
Construct a frame widget with the parent MASTER.
Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.
Methods
__init__(master, funcFillTitle, funcFillContent)Construct a frame widget with the parent MASTER.
Create the internal widgets.
cw_button_only(frame, symbol)Create only the button.
cw_button_sized(frame[, symbol, size])size: None: auto: [20, 20].
frame_hline(frame)Create a horizontal line frame
Returns the show/hide button.
Returns the content frame.
Returns the title frame.
Returns True if the content is visible, False otherwise.
show_hide(*_args)Show or hide the content frame.
Attributes
BUTTON_LABEL_INBUTTON_LABEL_OUT- create_widgets()
Create the internal widgets.
- cw_button_only(frame, symbol)
Create only the button.
- cw_button_sized(frame, symbol='auto', size='auto')
size: None: auto: [20, 20]. Or size [x, y] return Button.
- classmethod frame_hline(frame)
Create a horizontal line frame
- get_button()
Returns the show/hide button.
- get_frame_content()
Returns the content frame.
- get_frame_title()
Returns the title frame.
- is_visible()
Returns True if the content is visible, False otherwise.
- show_hide(*_args)
Show or hide the content frame.