[PyQt] [PyKDE] KTextEditor interface classes
paul at giannaros.org
Fri Aug 29 23:02:04 BST 2008
KTextEditor works with an interface class -- implementors of the
KTextEditor::View and KTextEditor::Document, with the subclasses also inheriting
from any interfaces that they choose to support. This is a problem --
I can't see
a way to cast to the required type.
Even though I can check at run-time whether my view implements an interface
with something like:
>>> document = Kate.application().documentManager().documents()
>>> view = document.activeView()
I cannot use anything to cast to the appropriate type to get at the
by the interface.
Is there a solution to this problem?
More information about the PyQt