#NEWLINE# def _create_pan_image( self , fitsimage ) : #NEWLINE# #INDENT# pi = Viewers . CanvasView ( logger = self . logger ) #NEWLINE# pi . enable_autozoom ( 'on' ) #NEWLINE# pi . enable_autocuts ( 'off' ) #NEWLINE# hand = pi . get_cursor ( 'pan' ) #NEWLINE# pi . define_cursor ( 'pick' , hand ) #NEWLINE# pi . set_bg ( 0.4 , 0.4 , 0.4 ) #NEWLINE# pi . set_desired_size ( bd . _wd , self . _ht ) #NEWLINE# pi . set_callback ( 'cursor-down' , self . btndown ) #NEWLINE# pi . set_callback ( 'cursor-move' , self . drag_cb ) #NEWLINE# pi . set_callback ( 'none-move' , self . motion_cb ) #NEWLINE# pi . set_callback ( 'zoom-scroll' , self . zoom_cb ) #NEWLINE# pi . set_callback ( 'configure' , self . reconfigure ) #NEWLINE# pi . set_name ( 'panimage' ) #NEWLINE# my_canvas = pi . get_canvas ( ) #NEWLINE# my_canvas . enable_draw ( True ) #NEWLINE# my_canvas . set_drawtype ( 'rectangle' , linestyle = 'dash' , color = 'green' ) #NEWLINE# my_canvas . set_callback ( 'draw-event' , self . draw_cb ) #NEWLINE# my_canvas . ui_setActive ( True ) #NEWLINE# if self . use_shared_canvas : #NEWLINE# #INDENT# canvas = fitsimage . get_canvas ( ) #NEWLINE# pi . set_canvas ( canvas ) #NEWLINE# #UNINDENT# bd = pi . get_bindings ( ) #NEWLINE# bd . enable_pan ( False ) #NEWLINE# bd . enable_zoom ( False ) #NEWLINE# return pi