#NEWLINE# def _create_cursor_shape( self , event ) : #NEWLINE# #INDENT# initial_size = 30 #NEWLINE# aqt_scale = 2.5 #NEWLINE# if ( self . _radio_selection . get ( ) == IMAGE ) : #NEWLINE# #INDENT# image = Image . open ( self . _image_path ) #NEWLINE# self . _cursor_photoimage = ImageTk . PhotoImage ( image ) #NEWLINE# self . _cursor_shape = self . _target_canvas . create_image ( event . x , event . y , image = self . _cursor_photoimage , tags = ( '_shape:image' , ( '_path:' + self . _image_path ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == RECTANGLE ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_rectangle ( ( event . x - initial_size ) , ( event . y - initial_size ) , ( event . x + initial_size ) , ( event . y + initial_size ) , fill = 'black' , stipple = 'gray25' , tags = '_shape:rectangle' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == OVAL ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_oval ( ( event . x - initial_size ) , ( event . y - initial_size ) , ( event . x + initial_size ) , ( event . y + initial_size ) , fill = 'black' , stipple = 'gray25' , tags = '_shape:oval' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == TRIANGLE ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_polygon ( event . x , ( event . y - initial_size ) , ( event . x + initial_size ) , ( event . y + initial_size ) , ( event . x - initial_size ) , ( event . y + initial_size ) , event . x , ( event . y - initial_size ) , fill = 'black' , outline = 'black' , stipple = 'gray25' , tags = '_shape:triangle' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == D_SILHOUETTE_3 ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_polygon ( ( event . x + ( 15.083 * aqt_scale ) ) , ( event . y + ( 13.12 * aqt_scale ) ) , ( event . x + ( 15.083 * aqt_scale ) ) , ( event . y + ( ( - 0.147 ) * aqt_scale ) ) , ( event . x + ( 14.277 * aqt_scale ) ) , ( event . y + ( ( - 2.508 ) * aqt_scale ) ) , ( event . x + ( 13.149 * aqt_scale ) ) , ( event . y + ( ( - 4.115 ) * aqt_scale ) ) , ( event . x + ( 11.841 * aqt_scale ) ) , ( event . y + ( ( - 5.257 ) * aqt_scale ) ) , ( event . x + ( 10.557 * aqt_scale ) ) , ( event . y + ( ( - 6.064 ) * aqt_scale ) ) , ( event . x + ( 8.689 * aqt_scale ) ) , ( event . y + ( ( - 6.811 ) * aqt_scale ) ) , ( event . x + ( 7.539 * aqt_scale ) ) , ( event . y + ( ( - 8.439 ) * aqt_scale ) ) , ( event . x + ( 7.076 * aqt_scale ) ) , ( event . y + ( ( - 9.978 ) * aqt_scale ) ) , ( event . x + ( 6.104 * aqt_scale ) ) , ( event . y + ( ( - 11.577 ) * aqt_scale ) ) , ( event . x + ( 4.82 * aqt_scale ) ) , ( event . y + ( ( - 12.829 ) * aqt_scale ) ) , ( event . x + ( 3.43 * aqt_scale ) ) , ( event . y + ( ( - 13.788 ) * aqt_scale ) ) , ( event . x + ( 1.757 * aqt_scale ) ) , ( event . y + ( ( - 14.386 ) * aqt_scale ) ) , ( event . x + ( 0.083 * aqt_scale ) ) , ( event . y + ( ( - 14.55 ) * aqt_scale ) ) , ( event . x + ( ( - 1.59 ) * aqt_scale ) ) , ( event . y + ( ( - 14.386 ) * aqt_scale ) ) , ( event . x + ( ( - 3.263 ) * aqt_scale ) ) , ( event . y + ( ( - 13.788 ) * aqt_scale ) ) , ( event . x + ( ( - 4.653 ) * aqt_scale ) ) , ( event . y + ( ( - 12.829 ) * aqt_scale ) ) , ( event . x + ( ( - 5.938 ) * aqt_scale ) ) , ( event . y + ( ( - 11.577 ) * aqt_scale ) ) , ( event . x + ( ( - 6.909 ) * aqt_scale ) ) , ( event . y + ( ( - 9.978 ) * aqt_scale ) ) , ( event . x + ( ( - 7.372 ) * aqt_scale ) ) , ( event . y + ( ( - 8.439 ) * aqt_scale ) ) , ( event . x + ( ( - 8.522 ) * aqt_scale ) ) , ( event . y + ( ( - 6.811 ) * aqt_scale ) ) , ( event . x + ( ( - 10.39 ) * aqt_scale ) ) , ( event . y + ( ( - 6.064 ) * aqt_scale ) ) , ( event . x + ( ( - 11.674 ) * aqt_scale ) ) , ( event . y + ( ( - 5.257 ) * aqt_scale ) ) , ( event . x + ( ( - 12.982 ) * aqt_scale ) ) , ( event . y + ( ( - 4.115 ) * aqt_scale ) ) , ( event . x + ( ( - 14.11 ) * aqt_scale ) ) , ( event . y + ( ( - 2.508 ) * aqt_scale ) ) , ( event . x + ( ( - 14.917 ) * aqt_scale ) ) , ( event . y + ( ( - 0.147 ) * aqt_scale ) ) , ( event . x + ( ( - 14.917 ) * aqt_scale ) ) , ( event . y + ( 13.12 * aqt_scale ) ) , fill = 'black' , outline = 'black' , stipple = 'gray25' , tags = '_shape:aqt3' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == D_SILHOUETTE_4 ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_polygon ( ( event . x + ( 11.66 * aqt_scale ) ) , ( event . y + ( 5.51 * aqt_scale ) ) , ( event . x + ( 11.595 * aqt_scale ) ) , ( event . y + ( 0.689 * aqt_scale ) ) , ( event . x + ( 11.1 * aqt_scale ) ) , ( event . y + ( ( - 1.084 ) * aqt_scale ) ) , ( event . x + ( 9.832 * aqt_scale ) ) , ( event . y + ( ( - 2.441 ) * aqt_scale ) ) , ( event . x + ( 7.677 * aqt_scale ) ) , ( event . y + ( ( - 3.322 ) * aqt_scale ) ) , ( event . x + ( 5.821 * aqt_scale ) ) , ( event . y + ( ( - 4.709 ) * aqt_scale ) ) , ( event . x + ( 4.715 * aqt_scale ) ) , ( event . y + ( ( - 6.497 ) * aqt_scale ) ) , ( event . x + ( 4.267 * aqt_scale ) ) , ( event . y + ( ( - 8.135 ) * aqt_scale ) ) , ( event . x + ( 3.669 * aqt_scale ) ) , ( event . y + ( ( - 9.41 ) * aqt_scale ) ) , ( event . x + ( 2.534 * aqt_scale ) ) , ( event . y + ( ( - 10.553 ) * aqt_scale ) ) , ( event . x + ( 1.436 * aqt_scale ) ) , ( event . y + ( ( - 11.091 ) * aqt_scale ) ) , ( event . x + ( 0.083 * aqt_scale ) ) , ( event . y + ( ( - 11.323 ) * aqt_scale ) ) , ( event . x + ( ( - 1.269 ) * aqt_scale ) ) , ( event . y + ( ( - 11.091 ) * aqt_scale ) ) , ( event . x + ( ( - 2.367 ) * aqt_scale ) ) , ( event . y + ( ( - 10.553 ) * aqt_scale ) ) , ( event . x + ( ( - 3.502 ) * aqt_scale ) ) , ( event . y + ( ( - 9.41 ) * aqt_scale ) ) , ( event . x + ( ( - 4.1 ) * aqt_scale ) ) , ( event . y + ( ( - 8.135 ) * aqt_scale ) ) , ( event . x + ( ( - 4.548 ) * aqt_scale ) ) , ( event . y + ( ( - 6.497 ) * aqt_scale ) ) , ( event . x + ( ( - 5.654 ) * aqt_scale ) ) , ( event . y + ( ( - 4.709 ) * aqt_scale ) ) , ( event . x + ( ( - 7.51 ) * aqt_scale ) ) , ( event . y + ( ( - 3.322 ) * aqt_scale ) ) , ( event . x + ( ( - 9.665 ) * aqt_scale ) ) , ( event . y + ( ( - 2.441 ) * aqt_scale ) ) , ( event . x + ( ( - 10.933 ) * aqt_scale ) ) , ( event . y + ( ( - 1.084 ) * aqt_scale ) ) , ( event . x + ( ( - 11.428 ) * aqt_scale ) ) , ( event . y + ( 0.689 * aqt_scale ) ) , ( event . x + ( ( - 11.493 ) * aqt_scale ) ) , ( event . y + ( 5.51 * aqt_scale ) ) , fill = 'black' , outline = 'black' , stipple = 'gray25' , tags = '_shape:aqt4' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == D_SILHOUETTE_5 ) : #NEWLINE# #INDENT# self . _cursor_shape = self . _target_canvas . create_polygon ( ( event . x + ( 7.893 * aqt_scale ) ) , ( event . y + ( 3.418 * aqt_scale ) ) , ( event . x + ( 7.893 * aqt_scale ) ) , ( event . y + ( 1.147 * aqt_scale ) ) , ( event . x + ( 7.255 * aqt_scale ) ) , ( event . y + ( 0.331 * aqt_scale ) ) , ( event . x + ( 5.622 * aqt_scale ) ) , ( event . y + ( ( - 0.247 ) * aqt_scale ) ) , ( event . x + ( 4.187 * aqt_scale ) ) , ( event . y + ( ( - 1.124 ) * aqt_scale ) ) , ( event . x + ( 2.833 * aqt_scale ) ) , ( self . y + ( ( - 2.339 ) * aqt_scale ) ) , ( event . x + ( 1.917 * aqt_scale ) ) , ( event . y + ( ( - 3.594 ) * aqt_scale ) ) , ( event . x + ( 1.219 * aqt_scale ) ) , ( event . y + ( ( - 5.048 ) * aqt_scale ) ) , ( event . x + ( 0.9 * aqt_scale ) ) , ( event . y + ( ( - 6.223 ) * aqt_scale ) ) , ( event . x + ( 0.801 * aqt_scale ) ) , ( event . y + ( ( - 7.1 ) * aqt_scale ) ) , ( event . x + ( 0.521 * aqt_scale ) ) , ( event . y + ( ( - 7.558 ) * aqt_scale ) ) , ( event . x + ( 0.083 * aqt_scale ) ) , ( event . y + ( ( - 7.617 ) * aqt_scale ) ) , ( event . x + ( ( - 0.354 ) * aqt_scale ) ) , ( event . y + ( ( - 7.558 ) * aqt_scale ) ) , ( event . x + ( ( - 0.634 ) * aqt_scale ) ) , ( event . y + ( ( - 7.1 ) * aqt_scale ) ) , ( event . x + ( ( - 0.733 ) * aqt_scale ) ) , ( event . y + ( ( - 6.223 ) * aqt_scale ) ) , ( event . x + ( ( - 1.052 ) * aqt_scale ) ) , ( event . y + ( ( - 5.048 ) * aqt_scale ) ) , ( event . x + ( ( - 1.75 ) * aqt_scale ) ) , ( event . y + ( ( - 3.594 ) * aqt_scale ) ) , ( event . x + ( ( - 2.666 ) * aqt_scale ) ) , ( event . y + ( ( - 2.339 ) * aqt_scale ) ) , ( event . x + ( ( - 4.02 ) * aqt_scale ) ) , ( event . y + ( ( - 1.124 ) * aqt_scale ) ) , ( event . x + ( ( - 5.455 ) * aqt_scale ) ) , ( event . y + ( ( - 0.247 ) * aqt_scale ) ) , ( event . x + ( ( - 7.088 ) * aqt_scale ) ) , ( event . y + ( 0.331 * aqt_scale ) ) , ( event . x + ( ( - 7.726 ) * aqt_scale ) ) , ( event . y + ( 1.147 * aqt_scale ) ) , ( event . x + ( ( - 7.726 ) * aqt_scale ) ) , ( event . y + ( 3.418 * aqt_scale ) ) , fill = 'black' , outline = 'black' , stipple = 'gray25' , tags = '_shape:aqt5' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . _radio_selection . get ( ) == FREEFORM_POLYGON ) : #NEWLINE# #INDENT# vertex_size = 2 #NEWLINE# self . _cursor_shape = self . _target_canvas . create_oval ( ( event . x - vertex_size ) , ( event . y - vertex_size ) , ( event . x + vertex_size ) , ( event . y + vertex_size ) , fill = 'black' , tags = '_shape:vertex' ) #NEWLINE# if ( len ( self . _freeform_vertices_points ) > 0 ) : #NEWLINE# #INDENT# last_point = self . _freeform_vertices_points [ ( - 1 ) ] #NEWLINE# self . _freeform_temp_line_id = self . _target_canvas . create_line ( last_point , event . x , event . y , dash = ( 4 , 4 ) , tags = '_shape:freeform_edge' )