Ejemplo n.º 1
0
 def __init__(self, font=None, lines=None, **kwds):
     Component.__init__(self, **kwds)
     #  If font and lines are both specified, must set font first.
     if font:
         self.font = font
     if lines is not None:
         self.lines = lines
Ejemplo n.º 2
0
 def __init__(self, font = None, lines = None, **kwds):
     Component.__init__(self, **kwds)
     #  If font and lines are both specified, must set font first.
     if font:
         self.font = font
     if lines is not None:
         self.lines = lines
 def destroy(self):
     """Destroy this Container and all of its contents."""
     contents = self._contents
     while contents:
         comp = contents[-1]
         comp.destroy()
         assert not contents or contents[-1] is not comp, \
             "%r failed to remove itself from container on destruction" % comp
     Component.destroy(self)
Ejemplo n.º 4
0
 def destroy(self):
     """Destroy this Container and all of its contents."""
     contents = self._contents
     while contents:
         comp = contents[-1]
         comp.destroy()
         assert not contents or contents[-1] is not comp, \
             "%r failed to remove itself from container on destruction" % comp
     Component.destroy(self)
Ejemplo n.º 5
0
 def __init__(self, **kwds):
     Component.__init__(self, **kwds)
     ViewBase.__init__(self)
Ejemplo n.º 6
0
 def get_target(self):
     target = Component._gtk_find_component(self._gtk_outer_widget.get_focus())
     return target or self
Ejemplo n.º 7
0
 def get_target(self):
     target = Component._gtk_find_component(
         self._gtk_outer_widget.get_focus())
     return target or self
 def broadcast(self, message, *args):
     """Traverse the component hierarchy, calling each component's handler for
     the given message, if any."""
     Component.broadcast(self, message, *args)
     for comp in self._contents:
         comp.broadcast(message, *args)
 def _build_tab_chain(self, chain):
     Component._build_tab_chain(self, chain)
     for c in self._contents:
         c._build_tab_chain(chain)
Ejemplo n.º 10
0
 def __init__(self, **kw):
     self._contents = []
     Component.__init__(self, **kw)
 def setup_menus(self, m):
     Component.setup_menus(self, m)
     EditCmdHandler.setup_menus(self, m)
     Printable.setup_menus(self, m)
Ejemplo n.º 12
0
 def setup_menus(self, m):
     Component.setup_menus(self, m)
     EditCmdHandler.setup_menus(self, m)
     Printable.setup_menus(self, m)
Ejemplo n.º 13
0
 def destroy(self):
     ViewBase.destroy(self)
     Component.destroy(self)
Ejemplo n.º 14
0
 def __init__(self, **kwds):
     Component.__init__(self, **kwds)
     ViewBase.__init__(self)
Ejemplo n.º 15
0
 def broadcast(self, message, *args):
     """Traverse the component hierarchy, calling each component's handler for
     the given message, if any."""
     Component.broadcast(self, message, *args)
     for comp in self._contents:
         comp.broadcast(message, *args)
Ejemplo n.º 16
0
 def _build_tab_chain(self, chain):
     Component._build_tab_chain(self, chain)
     for c in self._contents:
         c._build_tab_chain(chain)
Ejemplo n.º 17
0
 def __init__(self, **kw):
     self._contents = []
     Component.__init__(self, **kw)
 def key_down(self, e):
     if e.key == 'enter':
         self.pass_to_next_handler('key_down', e)
     else:
         Component.key_down(self, e)
Ejemplo n.º 19
0
 def key_down(self, e):
     if e.key == 'enter':
         self.pass_to_next_handler('key_down', e)
     else:
         Component.key_down(self, e)
Ejemplo n.º 20
0
 def destroy(self):
     ViewBase.destroy(self)
     Component.destroy(self)