Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-backports > by-pkgid > 5a28ce08f20e322d24ac159a4334c346 > files > 2397

python-enthought-mayavi2-2.2.0-1mdv2008.1.x86_64.rpm

""" A view containing a blue panel! """


# Enthought library imports.
from enthought.envisage.workbench.api import View


class BlueView(View):
    """ A view containing a blue panel! """

    ###########################################################################
    # 'View' interface.
    ###########################################################################

    def create_control(self, parent):
        """ Creates the toolkit-specific control that represents the view.

        'parent' is the toolkit-specific control that is the view's parent.

        """

        import wx
        
        panel = wx.Panel(parent, -1)
        panel.SetBackgroundColour('blue')

        return panel

#### EOF ######################################################################