Re: [gDesklets] Access objects from classes
- From: "Mario Gonzalez" <gonzalemario gmail com>
- To: "Lauri Kainulainen" <lauri sokkelo net>
- Cc: gdesklets-list gnome org
- Subject: Re: [gDesklets] Access objects from classes
- Date: Wed, 7 Nov 2007 15:29:04 -0300
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]