code: def get_wx_window_layout(wx_window):
      '''get a WinLayout for a wx window'''
      dsize = wx.DisplaySize()
      pos = wx_window.GetPosition()
      size = wx_window.GetSize()
      name = wx_window.GetTitle()
      return WinLayout(name, pos, size, dsizef get_wx_window_layout(wx_window):
      '''get a WinLayout for a wx window'''
      dsize = wx.DisplaySize()
      pos = wx_window.GetPosition()
      size = wx_window.GetSize()
      name = wx_window.GetTitle()
      return WinLayout(name, pos, size, dsize)
docs: get a WinLayout for a wx window