Registered Member
|
Hi
I simply want to write a python program that copy a file to another location. I try with:
|
Administrator
|
Does your python application have a instance of QCoreApplication, QApplication or KApplication? ( note that it needs to have been started, ie. exec() called on it )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
No it doesn't have them. I learned on IRC that there are these needs, but I don't know how to use it.
On internet I didn't find any sort of information about that, with the exception of some examples, but nothing useful for my situation. Maybe with api.kde.org online I can find a solution, but now I don't have any ideas this is my first program that use Qt and KDE libraries I'm a completely newbie edit: api.kde.org is now online |
Administrator
|
Please see http://techbase.kde.org/Development/Lan ... ng_PyKDE_4 for help in preparing KApplication.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
ok thanks solved with that code:
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]