[visionegg] Re: Removing *all* Controllers from a Presentation

  • From: Mark Halko <mhalko@xxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Mon, 30 May 2005 14:33:34 -0400

Tony,

I did this slightly differently by deriving my own class from the presentation class:

class NewPresentation(VisionEgg.FlowControl.Presentation):
    def remove_all_controllers(self) :
        if len(self.controllers) > 0 :
            for i in self.controllers :
                del i
            self.controllers = []
        self.num_frame_controllers = 0

I think this is also does what you're attempting to do. (without having to edit the visionegg core files).

Mark

On May 30, 2005, at 12:02 PM, Tony Arkles wrote:

Awww... I didn't properly highlight the changes I made. The "if" line directly above the highlighted area got changed too.

Tony


====================================== The Vision Egg mailing list Archives: //www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html


====================================== The Vision Egg mailing list Archives: //www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html

Other related posts: