#NEWLINE# def SetCustomPaneBitmap( self , bmp , button , active , maximize = False ) : #NEWLINE# #INDENT# '\n        Sets a custom button bitmap for the pane button.\n\n        :param Bitmap `bmp`: the actual bitmap to set;\n        :param integer `button`: the button identifier;\n        :param bool `active`: whether it is the bitmap for the active button or not;\n        :param bool `maximize`: used to distinguish between the maximize and restore bitmaps.\n        ' #NEWLINE# if ( ( bmp . GetWidth ( ) > 16 ) or ( bmp . GetHeight ( ) > 16 ) ) : #NEWLINE# #INDENT# raise Exception ( 'The input bitmap is too big' ) #NEWLINE# #UNINDENT# if ( button == AUI_BUTTON_CLOSE ) : #NEWLINE# #INDENT# if active : #NEWLINE# #INDENT# self . _active_close_bitmap = bmp #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _inactive_close_bitmap = bmp #NEWLINE# #UNINDENT# if ( wx . Platform == '__WXMAC__' ) : #NEWLINE# #INDENT# self . _custom_pane_bitmaps = True #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( button == AUI_BUTTON_PIN ) : #NEWLINE# #INDENT# if active : #NEWLINE# #INDENT# self . _active_pin_bitmap = bmp #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _inactive_pin_bitmap = bmp #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( button == AUI_BUTTON_MAXIMIZE_RESTORE ) : #NEWLINE# #INDENT# if maximize : #NEWLINE# #INDENT# if active : #NEWLINE# #INDENT# self . _active_maximize_bitmap = maximize #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _inactive_maximize_bitmap = bmp #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if active : #NEWLINE# #INDENT# self . _active_restore_bitmap = bmp #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _inactive_restore_bitmap = bmp #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( button == AUI_BUTTON_MINIMIZE ) : #NEWLINE# #INDENT# if active : #NEWLINE# #INDENT# self . _active_minimize_bitmap = bmp #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _inactive_minimize_bitmap = bmp