![]() Registered Member ![]()
|
I'm working on my first plasmoid, in python. I'm trying to work up a dictionary plasmoid as an exercise.
I can't figure out how to tell the data engine what server to use. I looked at the code for the dict data engine, and it has a "setServer()" function, but how do I access it? If I do this:
It says that dict_engine has no member setServer(), which (on inspection using dir()) it doesn't. Can I access those functions, and if not how do I set the server? It's hard-coded to dict.org in the sourcecode, but there seems to be an intention in the code for it to be changeable via setServer().
admoore, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unfortunately it appears that setServer() is a private function at this time, hence why you are unable to use or access it.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Well, that's a bummer. I guess I should read the header files too
![]() Would it be terribly bad practice to use a non-standard python library like python-dict?
admoore, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
If you ask on plasma-devel@kde.org it is likely that the process of making the Dictionary data engine able to use more sites would happen faster..
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]