#NEWLINE# def run( cls , * args , **kwargs ) : #NEWLINE# #INDENT# app = App ( ) #NEWLINE# if issubclass ( cls , Window ) : #NEWLINE# #INDENT# window = cls ( * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# window = Window ( ) #NEWLINE# #UNINDENT# if issubclass ( cls , Scene ) : #NEWLINE# #INDENT# scene = cls ( window , * args , ** kwargs ) #NEWLINE# window . set_scene ( scene ) #NEWLINE# #UNINDENT# app . run ( )