#NEWLINE# def __init__( self , logger , rgbmap = None , link = False ) : #NEWLINE# #INDENT# QtGui . QWidget . __init__ ( logger ) #NEWLINE# Callback . Callbacks . __init__ ( self ) #NEWLINE# self . logger = logger #NEWLINE# self . pixmap = None #NEWLINE# self . link_rgbmap = link #NEWLINE# if ( not rgbmap ) : #NEWLINE# #INDENT# rgbmap = RGBMap . RGBMapper ( logger ) #NEWLINE# #UNINDENT# self . set_rgbmap ( rgbmap ) #NEWLINE# self . _start_x = 0 #NEWLINE# self . _sarr = None #NEWLINE# self . t_showrange = True #NEWLINE# self . t_font = 'Sans Serif' #NEWLINE# self . t_fontsize = 8 #NEWLINE# self . t_spacing = 40 #NEWLINE# self . loval = 0.0 #NEWLINE# self . hival = 0.0 #NEWLINE# self . _interval = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _avg_pixels_per_range_num = 70 #NEWLINE# for name in ( 'motion' , 'scroll' ) : #NEWLINE# #INDENT# self . enable_callback ( name ) #NEWLINE# #UNINDENT# hpolicy = QtGui . QSizePolicy . MinimumExpanding #NEWLINE# vpolicy = QtGui . QSizePolicy . MinimumExpanding #NEWLINE# self . setSizePolicy ( hpolicy , vpolicy ) #NEWLINE# self . setMouseTracking ( True )