#NEWLINE# def position_cursor( self , data_x , data_y ) : #NEWLINE# #INDENT# if ( self . imgwin is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( win_x , win_y ) = self . get_canvas_xy ( data_x , data_y ) #NEWLINE# w_pt = QtCore . QPoint ( win_x , win_y ) #NEWLINE# s_pt = self . imgwin . mapToGlobal ( w_pt ) #NEWLINE# cursor = self . imgwin . cursor ( ) #NEWLINE# cursor . setPos ( s_pt )