[PyKDE] PyKDE without KApplication

Mike Tammerman mtammerman at gmail.com
Thu Jun 30 17:00:28 BST 2005


Mostly it creates a segfault, the basic one is

---
from qt import *
from kdeprint import *
import sys

a = QApplication(sys.argv)
KPrinter()
---

Mike

On 6/30/05, Andreas Pakulat <apaku at gmx.de> wrote:
> On 30.Jun 2005 - 17:33:34, Mike Tammerman wrote:
> > Is there a way to instantiate pykde classes using QApplication instead
> > KApplication.
> 
> I think so, at least most. For instance KMainWindow is derived from
> QMainWindow and thus it should be possible to use
> 
> QApplication.setMainWidget
> 
> Instead of KApplication. And also you should be able to use a KDE widget
> wherever a QWidget can be used. Note: I did not test this myself, these
> are only assumptions based on the information about the classes from the
> kde docs.
> 
> Andreas
> 
> --
> Your business will go through a period of considerable expansion.
> 
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>




More information about the PyQt mailing list