#NEWLINE# def __init__( self , fv ) : #NEWLINE# #INDENT# super ( Pan , self ) . __init__ ( fv ) #NEWLINE# self . channel = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . active = None #NEWLINE# self . info = None #NEWLINE# fv . add_callback ( 'add-channel' , fv . add_channel ) #NEWLINE# fv . add_callback ( 'delete-channel' , self . delete_channel ) #NEWLINE# fv . set_callback ( 'channel-change' , self . focus_cb ) #NEWLINE# self . dc = fv . getDrawClasses ( ) #NEWLINE# prefs = self . fv . get_preferences ( ) #NEWLINE# self . settings = prefs . createCategory ( 'plugin_Pan' ) #NEWLINE# self . settings . addDefaults ( use_shared_canvas = False , pan_position_color = 'yellow' , pan_rectangle_color = 'red' , compass_color = 'skyblue' ) #NEWLINE# self . settings . load ( onError = 'silent' ) #NEWLINE# self . use_shared_canvas = self . settings . get ( 'use_shared_canvas' , False ) #NEWLINE# self . _wd = 200 #NEWLINE# self . _ht = 200