#NEWLINE# def panset_cb( self , setting , value , fitsimage , info ) : #NEWLINE# #INDENT# 'This callback is called when a channel window is panned.\n        ' #NEWLINE# if ( ( not self . gui_up ) or ( self . ref_image is None ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . _cur_opn_fitsimage is not None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . _cur_opn_fitsimage = fitsimage #NEWLINE# try : #NEWLINE# #INDENT# self . pan_all_relative ( fitsimage , info . chinfo ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _cur_opn_fitsimage = None