Re: abstract layer question

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.anygui.devel
Message-ID <[email protected]>
In article <[email protected]>, Magnus Lie Hetland
<[email protected]> writes
.......
>> How should I achieve the same kind of thing in 0.2.
>
>This sort of thing is still handled by the Attrib class (which has
>been rewritten quite a bit). If there is a setter method available (as
>defined by anygui.Utils.getSetter) then that will be called instead of
>the generic set(). set() is basically a rawSet() (which updates
>self.state) followed by a push() (which pushes thing through to the
>wrapper).
>
>So... To make a long story short, what you have to do is simply:
>
>  def setRange(self, range):
>      assert range[0]<range[1], "reversed or zero range"
>      self.set(range=range)
>
.....
thanks, I assumed we needed a setRange, but was a bit confused as to
where it went. Presumably in this scheme I need a setRange on the
wrapper class as well to allow it to know that range has changed.
-- 
Robin Becker


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.