code: def set_width(self, width):
          
  
          if width > 0 and width <= self.server.server_info.get("screen_width"):
              self.width = width
              self.server.request("screen_set %s wid %i" % (self.ref, self.width))
docs: Set Screen Width