From kde-devel Wed Jan 21 01:47:37 2015 From: "dangbinghoo () gmail ! com" Date: Wed, 21 Jan 2015 01:47:37 +0000 To: kde-devel Subject: Access all the Kate-part method and properties in python. Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=142180489132603 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============6174500808288702366==" --===============6174500808288702366== Content-Type: multipart/alternative; boundary=047d7b33d9747a0076050d1fbd55 --047d7b33d9747a0076050d1fbd55 Content-Type: text/plain; charset=UTF-8 Hi all, I'm programing in python to use kate part as my main editor component in an IDE project. But I had problems using the api. I can get an editor with the following code: class EditorViewBase(QSplitter): def __init__(self, parent=None): QSplitter.__init__(self) self.__editor = KTextEditor.EditorChooser.editor() self.doc = self.__editor.createDocument(self) self.edit = self.doc.createView(self) however, I want to toggle the line-number on, and also fold-mark and bookmarks and get the edit,copy,paste event handler and so on. I found there's a abstract interface in cpp code: KTextEditor::ConfigInterface, *BUT* I don't know how to access the interface in python. I mean I want to access all the properties with Kate. Please can anybody help me ? Thanks very much! Best Regard, Binghoo Dang --047d7b33d9747a0076050d1fbd55 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I'm programing in p= ython to use kate part as my main editor component in an IDE project. But I= had problems using the api.

I = can get an editor with the following code:

class EditorViewBase(QSplitter):
def __init__(self, parent=3DNone):
QSplitter.__init__(self)
self.__editor =3D KTextEditor.EditorChooser.editor()
self.doc =3D self.__editor.createDocument(self)=
self.edit =3D self.doc.createView(self)

ho= wever, I want to toggle the line-number on, and also fold-mark and bookmark= s and get the edit,copy,paste event handler and so on.

I found there's a abstract interface in cpp code: KTextEditor:= :ConfigInterface,
BUT I don't know how to access the interface in python. I mean I want= to
access all the properties with Kate.

= Please can anybody help me ?

Thanks very much!

Be= st Regard,

Binghoo Dang
--047d7b33d9747a0076050d1fbd55-- --===============6174500808288702366== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============6174500808288702366==--