def set_icon ( self, icon = None ):
        from pyface.image_resource import ImageResource

        if not isinstance( icon, ImageResource ):
            icon = ImageResource( 'frame.ico' )
        self.control.SetIcon( icon.create_icon() )

    #---------------------------------------------------------------------------
    #  Adds a status bar to the dialog:
    #---------------------------------------------------------------------------
Check that hosting service bug URLs don't contain %s.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/ui_base.py/BaseDialog.set_icon--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/validation.py/validate_bug_tracker_base_hosting_url