KTextEditor Namespace Reference
from PyKDE4.ktexteditor.KTextEditor import *
Detailed Description
Namespace for the KDE Text Editor Interfaces. These interfaces provide easy access to editor parts for the applications embedding them. At the moment they are at least supported by both the Kate Part and the Yzis Part.
Class Index
Functions | |
KTextEditor.Plugin | createPlugin (KSharedPtr |
KTextEditor.Editor | editor (QString libname) |
Function Documentation
KTextEditor.Plugin createPlugin | ( | KSharedPtr |
service, | |
QObject | parent | |||
) |
Create a plugin represented by service with parent object parent. To get the KService object you usually use KServiceTypeTrader. Example
KService.List list = KServiceTypeTrader.self()->query("KTextEditor/Plugin"); foreach(const KService.Ptr &service, list) { // do something with service }
- Returns:
- the plugin or NULL if it could not be loaded
KTextEditor.Editor editor | ( | QString | libname | |
) |
Helper function for the EditorChooser. Usually you do not have to use this function. Instead, use KTextEditor.EditorChooser.editor().
- Parameters:
-
libname library name, for example "katepart"
- Returns:
- the Editor object on success, otherwise NULL
- See also:
- KTextEditor.EditorChooser.editor()