![]() Registered Member ![]()
|
hi, i have successfully created a katepart and added it’s widget to a window.
now i want to know how to…
here the code i used so far on the part. it’s in python, but c++ answers are welcome.
|
![]() KDE Developer ![]()
|
KatePart implements the KTextEditor interfaces
http://api.kde.org/4.x-api/kdelibs-apid ... index.html Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
thank you, but i don’t know how to access this functionality, since
and nothing of these implements it. there seems to be a problem with casting. python is dynamically typed, so how do i convince it that sced.widget() is indeed a katepart? |
![]() KDE Developer ![]()
|
I don't think that the widget is a KatePart, at least it isn't in C++
In C++ one would cast sced to KatePart* Since Python does duck typing, maybe you can just call KatePart of KTextInterface methods on sced? Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
nope, but i was told yesterday evening that KTextEdit != KTextEditor. The latter is the Katepart i was searching for:
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]