def __init__ ( self, parent, bitmap, selected = None, handler = None,
                         padding = 10 ):
        wx.Window.__init__( self, parent, -1,
                            size = wx.Size( bitmap.GetWidth()  + padding,
                                            bitmap.GetHeight() + padding ) )
        self._bitmap      = bitmap
        self._selected    = selected
        self._handler     = handler
        self._mouse_over  = False
        self._button_down = False

        # Set up the 'paint' event handler:
        wx.EVT_PAINT( self, self._on_paint )

        # Set up mouse event handlers:
        wx.EVT_LEFT_DOWN(    self, self._on_left_down )
        wx.EVT_LEFT_UP(      self, self._on_left_up )
        wx.EVT_ENTER_WINDOW( self, self._on_enter )
        wx.EVT_LEAVE_WINDOW( self, self._on_leave )

    #---------------------------------------------------------------------------
    #  Gets/Sets the current selection state of the image:
    #---------------------------------------------------------------------------
Return a string with the definition of this field.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/image_control.py/ImageControl.__init__--crossover with--dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/ProtoType.Definition