#NEWLINE# def __init__( self , parent , wid = ( - 1 ) , pos = wx . DefaultPosition , size = wx . DefaultSize , style = wx . FULL_REPAINT_ON_RESIZE , **traits ) : #NEWLINE# #INDENT# super ( DockWindow , self ) . __init__ ( ** traits ) #NEWLINE# self . control = control = wx . Window ( parent , wid , pos , size , style ) #NEWLINE# control . owner = self #NEWLINE# wx . EVT_PAINT ( control , self . _paint ) #NEWLINE# wx . EVT_SIZE ( control , self . _size ) #NEWLINE# wx . EVT_LEFT_DOWN ( control , self . _left_down ) #NEWLINE# wx . EVT_LEFT_UP ( control , self . _left_up ) #NEWLINE# wx . EVT_LEFT_DCLICK ( control , self . _left_dclick ) #NEWLINE# wx . EVT_RIGHT_DOWN ( control , self . _right_down ) #NEWLINE# wx . EVT_RIGHT_UP ( control , self . right_up ) #NEWLINE# wx . EVT_MOTION ( control , self . _mouse_move ) #NEWLINE# wx . EVT_LEAVE_WINDOW ( control , self . _mouse_leave ) #NEWLINE# control . SetDropTarget ( PythonDropTarget ( self ) ) #NEWLINE# if self . theme . use_theme_color : #NEWLINE# #INDENT# color = self . theme . tab . image_slice . bg_color #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# color = SystemMetrics ( ) . dialog_background_color #NEWLINE# color = wx . Colour ( ( color [ 0 ] * 255 ) , ( color [ 1 ] * 255 ) , ( color [ 2 ] * 255 ) ) #NEWLINE# #UNINDENT# self . control . SetBackgroundColour ( color )