You can pass this into a Python function called from the Python shell,
otherwise "top" is not defined. If you happen to have a popup object to
hand (which normally you would not, unless you also had top) then you can
usually do "top = popup.parent" (this might not be always true, but is for
99% of popups). The argServer takes care of this kind of detail for you.
So you either have to use the argServer mechanism or run stuff from the
Python shell and use top. Hope that makes sense.
Wayne
On Fri, 21 Apr 2006, Christoph Brockmann wrote:
>
> For some reason, I can't pass
> top.popups['edit_peak_list'].table.currentObjects which (seems to be
> roughly the equivalent of argServer.getCurrentPeaks() ) into a python
> function.
>
> Christoph
>
> --
> --------------------------------------------------------------------
> Dr. Christoph Brockmann
> Leibnitz-Institut fuer Molekulare Pharmakologie (FMP)
> Robert Roessle Str. 10
> D-13125 BERLIN, Germany
> phone: +49-30-94793-223
> email: [log in to unmask]
> --------------------------------------------------------------------
>
|