def dialog_view(self):
        view = self.trait_view()
        icon = self._icon_path + os.sep + 'images' + os.sep \
                            + self.icon
        view.icon = ImageResource(icon)
        view.title = "Edit%s: %s" % (self.type, self.name)
        view.buttons = ['OK', 'Cancel']
        return view
Returns a view with an icon and a title.
dataset/ETHPy150Open enthought/mayavi/mayavi/core/base.py/Base.dialog_view