def set_display_mode(self, zoom='<STR_LIT>', layout='<STR_LIT>'):
self.zoom_options = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT:default>"]<EOL>self.layout_options = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT:default>"]<EOL>if zoom in self.zoom_options or (isinstance(zoom, int) and <NUM_LIT:0> < zoom <= <NUM_LIT:100>):<EOL><INDENT>self.zoom_mode = zoom<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>' + zoom)<EOL><DEDENT>if layout in self.layout_options:<EOL><INDENT>self.layout_mode = layout<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>' + layout)<EOL><DEDENT>
Set the default viewing options.