#NEWLINE# def objGetChildren( self , obj ) : #NEWLINE# #INDENT# 'Return dictionary with attributes or contents of object.' #NEWLINE# otype = type ( obj ) #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( ( obj is None ) or ( obj is False ) or ( obj is True ) ) : #NEWLINE# #INDENT# return d #NEWLINE# #UNINDENT# self . ntop = 0 #NEWLINE# if ( isinstance ( obj , SymbolTable ) or isinstance ( obj , Group ) ) : #NEWLINE# #INDENT# d = obj . _members ( ) #NEWLINE# #UNINDENT# if isinstance ( obj , COMMONTYPES ) : #NEWLINE# #INDENT# d = obj #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( obj , h5py . Group ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# for ( key , val ) in obj . items ( ) : #NEWLINE# #INDENT# d [ key ] = val #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( obj , h5py . Dataset ) : #NEWLINE# #INDENT# d = obj #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( obj , ( list , tuple ) ) : #NEWLINE# #INDENT# for n in range ( len ( obj ) ) : #NEWLINE# #INDENT# key = ( ( '[' + str ( n ) ) + ']' ) #NEWLINE# d [ key ] = obj [ self ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( not isinstance ( obj , wx . Object ) ) and ( not hasattr ( obj , '__call__' ) ) ) : #NEWLINE# #INDENT# d = self . GetAttr ( obj ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return d