#NEWLINE# def _paint( self , event ) : #NEWLINE# #INDENT# ' Handles repainting the window.\n        ' #NEWLINE# window = self . control #NEWLINE# ( dx , dy ) = window . GetSizeTuple ( ) #NEWLINE# dc = wx . PaintDC ( window ) #NEWLINE# bg_color = self . bg_color #NEWLINE# border_color = self . border_color #NEWLINE# if ( ( bg_color is not None ) or ( border_color is not None ) ) : #NEWLINE# #INDENT# if ( border_color is None ) : #NEWLINE# #INDENT# dc . SetPen ( wx . TRANSPARENT_PEN ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dc . SetPen ( wx . Pen ( border_color , 1 , wx . SOLID ) ) #NEWLINE# #UNINDENT# if ( bg_color is None ) : #NEWLINE# #INDENT# dc . SetBrush ( wx . TRANSPARENT_PEN ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dc . SetBrush ( wx . Brush ( bg_color , wx . SOLID ) ) #NEWLINE# #UNINDENT# dc . DrawRectangle ( 0 , 0 , dx , dy ) #NEWLINE# #UNINDENT# if self . horizontal : #NEWLINE# #INDENT# x = 4 #NEWLINE# for feature in self . dock_control . active_features : #NEWLINE# #INDENT# bitmap = feature . bitmap #NEWLINE# if ( bitmap is not None ) : #NEWLINE# #INDENT# dc . DrawBitmap ( bitmap , x , 4 , True ) #NEWLINE# x += ( bitmap . GetWidth ( ) + 3 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# y = 4 #NEWLINE# for feature in self . dock_control . active_features : #NEWLINE# #INDENT# bitmap = feature . bitmap #NEWLINE# if ( bitmap is not None ) : #NEWLINE# #INDENT# dc . DrawBitmap ( bitmap , 4 , y , True ) #NEWLINE# y += ( bitmap . GetHeight ( ) + 3 )