def size(self): """ Get the size of the window client area. Returns ------- result : Size The current size of the window client area. """ if self.proxy_is_active: return self.proxy.size() return Size(-1, -1)
def size(self): """ Get the size of the window. """ size = self.widget.size() return Size(size.width(), size.height())
def size(self): """ Get the size of the window. """ size = self.widget.GetClientSize() return Size(size.GetWidth(), size.GetHeight())