#NEWLINE# def show_menu( self ) : #NEWLINE# #INDENT# menu = win32gui . CreatePopupMenu ( ) #NEWLINE# self . create_menu ( pos , self . menu_options ) #NEWLINE# pos = win32gui . GetCursorPos ( ) #NEWLINE# win32gui . SetForegroundWindow ( self . hwnd ) #NEWLINE# win32gui . TrackPopupMenu ( menu , win32con . TPM_LEFTALIGN , pos [ 0 ] , pos [ 1 ] , 0 , self . hwnd , None ) #NEWLINE# win32gui . PostMessage ( self . hwnd , win32con . WM_NULL , 0 , 0 )