On Tuesday, October 12, 2010 03:25:04 pm Jim Byrnes wrote: > I have a dPageFrame with 2 tabs. I need to do a different search > depending upon which tab I am viewing. How do I get an identifier/value > to pass to an if statement to select the proper search. > > Thanks, Jim
I like something like the following pageFrame = pgf = dabo.ui.dPageFrame(self) pgf.RegID='FormPF' pgf.appendPage(pgCls=GridPanel, caption="Web Registered ") pgf.appendPage(pgCls=StudentPanel, caption="Student ") Now I can do something like; if isinstance(self.FormPF.SelectedPage, GridPanel): do something You get the idea. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
