Nictk 2.2.0
An easy to use pyton GUI
Container Class Reference

Base class for widgets which can contain other widgets. More...

Inheritance diagram for Container:
BaseWindow HorFrame RowFrame VerFrame Main Window RowScrollFrame VerScrollFrame

Public Member Functions

def __init__ (self)
 The constructor. More...
 
def config_children (self, which, **kw)
 Configures resources for all children. More...
 

Detailed Description

Base class for widgets which can contain other widgets.

Used only as mixin: you should not use it directly.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

The constructor.


It only defines some internal variables used by its methods.

Reimplemented in HorFrame, VerFrame, RowFrame, VerScrollFrame, RowScrollFrame, Window, BaseWindow, and Main.

Member Function Documentation

◆ config_children()

def config_children (   self,
  which,
**  kw 
)

Configures resources for all children.

All widgets which will be added to the container will be configured with the given values. If a child container calls config_children() in turn, the options will be inherited: if a resource receives a new value it replaces the previous one, otherwise it remains unchanged.

Parameters
whichyou can indicate "all" (or ALL) for all children, or the name of a widget class (not a string, for example Entry or Button) or a tuple of names for configuring only specific widgets.
kwa list of named options for the resources to be configured
See also
Window.py Spinbox.py, RCbuttons.py example files

The documentation for this class was generated from the following file: