> Date: Sun, 28 Dec 2008 21:59:56 -0600 > From: [email protected] > To: [email protected] > Subject: Re: [Emc-developers] stepconf advanced page patch again > > I don't have time to look at your patch right now, but here's a hint. > > On the pages that can go more than one place, you have to hook up a > signal in glade and then define a handler in py to make it go to the > correct page. > > Example handler: > def on_spindle_back(self, *args): > self.on_spindle_next() > if self.data.axes != 1: > self.widgets.druid1.set_page(self.widgets.zaxis) > else: > self.widgets.druid1.set_page(self.widgets.aaxis) > return True > > Corresponding line in glade file: > <signal name="back" handler="on_spindle_back" .../> > > I'm not sure what it looks like in the glade gui, but I know there's a > whole tab for signals. > Jeff Thanks for replying. Yes I did make a handler and such, It just doesn't always end up at the right page for some reason. One question in your snip of code, why do you call spindle_next() in the spindle_back handler. I'm going to look again with a fresh head ! I hope you like the new page, I actualy have a better one that allows you to load CL and edit a ladder program from stepconf. Chris Morley _________________________________________________________________
------------------------------------------------------------------------------
_______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
