Пример #1
0
    def __del__(self):
        if self.handle:
            s.screen_destroy_window(self.handle)
            self.handle = 0

        # clean up screen context
        s.screen_destroy_context(self._ctx)
Пример #2
0
    def __del__(self):
        # print('__del__ NativeWindow', self)
        if self.handle:
            # Destroying the window unbinds it from the ForeignWindowControl
            s.screen_destroy_window(self.handle)
            self.handle = 0

        # clean up screen context
        if self._ctx:
            s.screen_destroy_context(self._ctx)
            self._ctx = 0
Пример #3
0
    def __del__(self):
        # print('__del__ NativeWindow', self)
        if self.handle:
            # Destroying the window unbinds it from the ForeignWindowControl
            s.screen_destroy_window(self.handle)
            self.handle = 0

        # clean up screen context
        if self._ctx:
            s.screen_destroy_context(self._ctx)
            self._ctx = 0