Logo Search packages:      
Sourcecode: mayavi version File versions  Download package

def MayaVi-1.4::Modules::Axes::Axes::change_color (   self,
  event = None 

Called when the user changes the color of the actor.

Reimplemented from MayaVi-1.4::Base::Objects::Module.

Definition at line 236 of file Axes.py.

00236                                        :
        debug ("In Axes::change_color ()")
        clr = self.axes.GetProperty ().GetColor ()
        init_clr = "#%02x%02x%02x"%(clr[0]*255, clr[1]*255, clr[2]*255)
        color = tkColorChooser.askcolor (title="Change axes color", 
        if color[1] is not None:
            clr = Common.tk_2_vtk_color (color[0])
            self.axes.GetProperty ().SetColor (*clr)
            self.renwin.Render ()
            self.renwin.Render ()

Generated by  Doxygen 1.6.0   Back to index