[Kde-bindings] PyKDE4: Solid.Networking
Thomas Olsen
tanghus at gmail.com
Tue Oct 6 21:20:33 UTC 2009
On 6/10-2009 22:32 Thomas Olsen <tanghus at gmail.com> wrote:
> Hi
>
> 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.
>
print dir(Solid.Networking)
Gives:
['Connected', 'Connecting', 'Disconnecting', 'Managed', 'ManagementPolicy',
'Manual', 'OnNextStatusChange', 'Status', 'Unconnected', 'Unknown',
'__class__', '__delattr__', '__dict__', '__doc__', '__format__',
'__getattribute__', '__hash__', '__init__', '__module__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
'__str__', '__subclasshook__', '__weakref__', 'status']
So I guess it's not implemented in PyKDE4.3 yet?
--
Best Regards / Med venlig hilsen
Thomas Olsen
More information about the Kde-bindings
mailing list