def serialize(self):
ids = []<EOL>for child in self.children:<EOL><INDENT>device = child.getDevice()<EOL>if device:<EOL><INDENT>ids.append(device._id) <EOL><DEDENT>else:<EOL><INDENT>ids.append(None)<EOL><DEDENT><DEDENT>dic = {  <EOL>"<STR_LIT>": self.__class__.__name__,<EOL>"<STR_LIT>": { <EOL>"<STR_LIT:title>"                 : self.title,<EOL>"<STR_LIT>"             : self.n_xscreen,<EOL>"<STR_LIT>"           : self.child_class,<EOL>"<STR_LIT>"      : self.get_child_class_pars() <EOL>},  <EOL>"<STR_LIT:x>": self.window.x(),<EOL>"<STR_LIT:y>": self.window.y(),<EOL>"<STR_LIT:width>": self.window.width(),<EOL>"<STR_LIT>": self.window.height(),<EOL>"<STR_LIT>": ids<EOL>}<EOL>return dic<EOL>
Serialize information about the widget: coordinates, size, which cameras are selected.