Exemple #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
 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)
Exemple #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)
 def __init__(self, **kwds):
     Component.__init__(self, **kwds)
     ViewBase.__init__(self)
 def get_target(self):
     target = Component._gtk_find_component(self._gtk_outer_widget.get_focus())
     return target or self
Exemple #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)
 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)
Exemple #12
0
 def setup_menus(self, m):
     Component.setup_menus(self, m)
     EditCmdHandler.setup_menus(self, m)
     Printable.setup_menus(self, m)
Exemple #13
0
 def destroy(self):
     ViewBase.destroy(self)
     Component.destroy(self)
Exemple #14
0
 def __init__(self, **kwds):
     Component.__init__(self, **kwds)
     ViewBase.__init__(self)
Exemple #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)
Exemple #16
0
 def _build_tab_chain(self, chain):
     Component._build_tab_chain(self, chain)
     for c in self._contents:
         c._build_tab_chain(chain)
Exemple #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)
Exemple #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)
 def destroy(self):
     ViewBase.destroy(self)
     Component.destroy(self)