""" 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 ######################################################################