Re: [gDesklets] Access objects from classes



On 07/11/2007, Lauri Kainulainen <lauri sokkelo net> wrote:
>
> If this is the case, would it be best to introduce a method like
> "getElementsOfType( typename )" to Dsp class? So developers would do
> something like this:
>
> for label in Dsp.getElementsOfType('label'):
>      # do something with the label element
>
> Is that what you're looking for?
>

  That's right! I'll do a method then.

Many thanks Lauri for your help.

>

-- 
http://www.advogato.org/person/mgonzalez/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]