Re: question

"Joseph A. Knapka" <[email protected]>
Newsgroups gmane.comp.python.anygui.devel
Message-ID <[email protected]>
Samuele Pedroni wrote:
> 
> From: Joseph A. Knapka <[email protected]>
> > Samuele Pedroni wrote:
> > >
> > > Yes, this stuff need some rethinking.
> > >
> > > For the moment I think it allows to write:
> > >
> > >    isDummy(self.widget.parent)
> >
> > But if self.widget is None, a perfectly reasonable possibility,
> 
> but the whole point of DummyWidget is not to have that happen

Yes, you're right, I did the wrong thing with noWidget()
(I wasn't familiar with the Null pattern at the time, so
the purpose of DummyWidget was a bit mysterious to me).
Wrapper.widget should always exist, and either be a DummyWidget
or a native widget. But I'm not sure that invariant is
enforced - when I first tried to make tkgui and wxgui
work with the new API, assuming wrapper.widget exists
caused lots of AttributeErrors. Maybe that issue is fixed
now?

-- Joe
  "I'd rather chew my leg off than maintain Java code, which
   sucks, 'cause I have a lot of Java code to maintain and
   the leg surgery is starting to get expensive." - Me


-------------------------------------------------------
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.