[Kde-bindings] PyKDE4: Solid.Networking

Simon Edwards simon at simonzone.com
Sat Oct 10 13:14:19 UTC 2009


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,

-- 
Simon Edwards             | KDE-NL, Guidance tools, Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."



More information about the Kde-bindings mailing list