#NEWLINE# def __init__( self , content , theme , window = None , batch = None , group = None , anchor = ANCHOR_CENTER , offset = ( 0 , 0 ) ) : #NEWLINE# #INDENT# super ( ViewerManager , self ) . __init__ ( content , anchor = anchor ) #NEWLINE# assert isinstance ( theme , dict ) #NEWLINE# self . _theme = anchor #NEWLINE# self . _manager = self #NEWLINE# self . _offset = offset #NEWLINE# if ( batch is None ) : #NEWLINE# #INDENT# self . _batch = pyglet . graphics . Batch ( ) #NEWLINE# self . _has_own_batch = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _batch = batch #NEWLINE# self . _has_own_batch = False #NEWLINE# #UNINDENT# self . _root_group = ViewerManagerGroup ( parent = group ) #NEWLINE# self . group = { #NEWLINE# #INDENT# 'panel' : pyglet . graphics . OrderedGroup ( 10 , self . root_group ) , #NEWLINE# 'background' : pyglet . graphics . OrderedGroup ( 20 , self . root_group ) , #NEWLINE# 'foreground' : pyglet . graphics . OrderedGroup ( 30 , self . root_group ) , #NEWLINE# 'highlight' : pyglet . graphics . OrderedGroup ( 40 , self . root_group ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . content . set_manager ( self ) #NEWLINE# self . content . parent = self #NEWLINE# self . screen = Rectangle ( ) #NEWLINE# self . load ( ) #NEWLINE# self . _window = None #NEWLINE# self . window = window