Exemple #1
0
 def __init__(self,
              anchorimage,
              offsetx=0,
              offsety=0,
              width=0,
              height=0,
              parentregion=SCREEN,
              name='anchored region',
              title='untitled'):
     """Creates a new instance.
        offsetx, offsety, width, height define the location and size of this
        region relative to the anchor image. See AnchoredRegion for details.
        name is the name of the region and is only used for debugging.
        title is the window title and is only used for debugging.
        The window is not initialized, it will be initialized when it is
        anchored.
     """
     AnchoredRegion.__init__(self,
                             anchorimage,
                             offsetx=offsetx,
                             offsety=offsety,
                             width=width,
                             height=height,
                             parentregion=parentregion,
                             name=name)
     self.title = title
Exemple #2
0
 def anchor(self, timeout = 0):
     """Searches the anchor image to determine the location of this window
        on the screen.
     """
     AnchoredRegion.anchor(self, timeout)
     # initialize this window to cover the anchored region
     Window.__init__(self, self, self.title)
Exemple #3
0
 def anchor(self, timeout=0):
     """Searches the anchor image to determine the location of this window
        on the screen.
     """
     AnchoredRegion.anchor(self, timeout)
     # initialize this window to cover the anchored region
     Window.__init__(self, self, self.title)
Exemple #4
0
 def __init__(self, anchorimage, offsetx = 0, offsety = 0, width = 0,
         height = 0, parentregion = SCREEN, name = 'anchored region',
         title = 'untitled'):
     """Creates a new instance.
        offsetx, offsety, width, height define the location and size of this
        region relative to the anchor image. See AnchoredRegion for details.
        name is the name of the region and is only used for debugging.
        title is the window title and is only used for debugging.
        The window is not initialized, it will be initialized when it is
        anchored.
     """
     AnchoredRegion.__init__(self, anchorimage, offsetx = offsetx,
             offsety = offsety, width = width, height = height,
             parentregion = parentregion, name = name)
     self.title = title