[Kde-bindings] PyKDE4: Solid.Networking

Thomas Olsen tanghus at gmail.com
Sat Oct 10 13:43:52 UTC 2009


On Saturday 10 October 2009 15:14:19 Simon Edwards wrote:
> Hi,
> 
> Thomas Olsen wrote:
> > Just started figuring out how Solid works and I'm already stuck.
> >
> > This small snippet returns 'True' when I'm connected and 'False' when
> > disconnected just as expected:
> >
> >   self.is_connected = (Solid.Networking.status() == \
> > 	Solid.Networking.Connected) == True
> >   print self.is_connected
> >
> > But the following yields an exception:
> >
> >   print str(Solid.Networking.notifier())
> >
> > AttributeError: type object 'Networking' has no attribute 'notifier'
> >
> > According to http://api.kde.org/pykde-4.3-api/solid/Solid.Networking.html
> > Solid.Networking has both a status and a notifier method.
> >
> > Beware that the last time I coded for KDE/Qt nobody worried about
> > namespaces so it might be that I'm just mixing things up.
> 
> I remember this notifier being a problem a while ago. The 'solution'
> here was to ignore it. I can have another attempt at including it in the
> bindings.
> 
> cheers,
> 

That was kinda of my "solution" too ;-) Even though it would be great if it 
got included.

Thanks for the reply.

-- 
Best Regards / Med venlig hilsen

  Thomas Olsen




More information about the Kde-bindings mailing list