parameters: (self, master, cnf)
docstring: Internal function. Sets up information about children.
docstring_summary: Internal function. Sets up information about children.
docstring_tokens: Internal function . Sets up information about children .
function: def _setup(self, master, cnf):
          """Internal function. Sets up information about children."""
          if _support_default_root:
              global _default_root
              if not master:
                  if not _default_root:
                      _default_root = Tk()
                  master = _default_root
          self.master = master
          self.tk = master.tk
          name = None
          if 'name' in cnf:
              name = cnf['name']
              del cnf['name']
          if not name:
              name = self.__class__.__name__.lower()
              if master._last_child_ids is None:
                  master._last_child_ids = {}
              count = master._last_child_ids.get(name, 0) + 1
              master._last_child_ids[name] = count
              if count == 1:
                  name = '!%s' % (name,)
              else:
                  name = '!%s%d' % (name, count)
          self._name = name
          if master._w=='.':
              self._w = '.' + name
          else:
              self._w = master._w + '.' + name
          self.children = {}
          if self._name in self.master.children:
              self.master.children[self._name].destroy()
          self.master.children[self._name] = self
function_tokens: def _setup ( self , master , cnf ) : if _support_default_root : global _default_root if not master : if not _default_root : _default_root = Tk ( ) master = _default_root self . master = master self . tk = master . tk name = None if 'name' in cnf : name = cnf [ 'name' ] del cnf [ 'name' ] if not name : name = self . __class__ . __name__ . lower ( ) if master . _last_child_ids is None : master . _last_child_ids = { } count = master . _last_child_ids . get ( name , 0 ) + 1 master . _last_child_ids [ name ] = count if count == 1 : name = '!%s' % ( name , ) else : name = '!%s%d' % ( name , count ) self . _name = name if master . _w == '.' : self . _w = '.' + name else : self . _w = master . _w + '.' + name self . children = { } if self . _name in self . master . children : self . master . children [ self . _name ] . destroy ( ) self . master . children [ self . _name ] = self