#NEWLINE# def toggle_tag_editor( self ) : #NEWLINE# #INDENT# if ( self . _tag_popup_state . get ( ) == True ) : #NEWLINE# #INDENT# x = ( self . _tags_button . winfo_x ( ) + ( self . _tags_button . winfo_width ( ) / 2 ) ) #NEWLINE# y = ( self . _tags_button . winfo_y ( ) + ( self . _tags_button . winfo_height ( ) * 1.5 ) ) #NEWLINE# self . _tag_editor . show ( self . _target_canvas . gettags ( self . _selected_region ) , x , y ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _tag_editor . hide ( )