Re: [gDesklets] Access objects from classes
- From: Lauri Kainulainen <lauri sokkelo net>
- To: Mario Gonzalez <gonzalemario gmail com>
- Cc: gdesklets-list gnome org
- Subject: Re: [gDesklets] Access objects from classes
- Date: Wed, 07 Nov 2007 16:21:33 +0200
Mario Gonzalez wrote:
Inside every Starter.py there is a tuple called containers, it saves
all displays so I've found how to access to the Display content in
that way. For example:
However if I've got an image and I modified its uri the image doesn't
change but the content of the variable changes :(
This is out of the top of my head (can't check the code now as I'm at
work), but I think we're lacking a notification about a changed attribute.
When you call methods through the display files the elements are wrapped
to make sure that input is valid and that the screen is updated after
When you do the same through the core, you just end up changing a value.
This won't affect the display until it is refreshed.
One solution would be to give containers a method like
setAttribute(attrName, value) that does the change of value and
refreshes the view.
Any other ideas, anyone?
_____University of Art and Design Helsinki
___+35840 722 5101
] [Thread Prev