Example #1
0
    def add_surface(self, surface):
        self._logger.debug('Window.add_surface()', self)
        if surface not in self._surface_list:
            self._surface_list.append(surface)

        surface._set_parent(self)
        surface._set_window(self)
        self._window_impl.add_surface(surface._get_surface_impl())

        #Call AddSurface on child widget for set window, and parent
        for s in surface._get_child_surface():
            surface.add_surface(s)
Example #2
0
 def add_surface(self, surface):
     self._logger.debug('Window.add_surface()', self)
     if surface not in self._surface_list:
         self._surface_list.append(surface)
         
     surface._set_parent(self)
     surface._set_window(self)
     self._window_impl.add_surface(surface._get_surface_impl())
     
     #Call AddSurface on child widget for set window, and parent
     for s in surface._get_child_surface():
         surface.add_surface(s)
Example #3
0
 def remove_surface(self, surface):
     self._logger.debug('Window.remove_surface()', self)
     if surface in self._surface_list:
         self._surface_list.remove(surface)
     self._window_impl.remove_surface(surface._get_surface_impl())
Example #4
0
 def remove_surface(self, surface):
     self._logger.debug('Window.remove_surface()', self)
     if surface in self._surface_list:
         self._surface_list.remove(surface)
     self._window_impl.remove_surface(surface._get_surface_impl())