#NEWLINE# def SetPanel( self , paneltype ) : #NEWLINE# #INDENT# if ( paneltype == 'TEXT' ) : #NEWLINE# #INDENT# newpanel = Text ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'PHOTO' ) : #NEWLINE# #INDENT# newpanel = Photo ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'QUOTE' ) : #NEWLINE# #INDENT# newpanel = Quote ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'LINK' ) : #NEWLINE# #INDENT# newpanel = Link ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'CHAT' ) : #NEWLINE# #INDENT# newpanel = Chat ( newpanel , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'AUDIO' ) : #NEWLINE# #INDENT# newpanel = Audio ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( paneltype == 'VIDEO' ) : #NEWLINE# #INDENT# newpanel = Video ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not paneltype ) : #NEWLINE# #INDENT# newpanel = TumbleLog ( self , ( - 1 ) ) #NEWLINE# self . SwitchPanel ( newpanel )