Problems with kdecore...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Elke Hohls

    #1

    Problems with kdecore...

    When I run my Application it crashes at the following part:

    - [ code ] --------------------------------------------------------
    from kdecore import KLibLoader, KLibFactory

    def myApp (self):
    # ...

    offer = KTrader.self(). query("text/html")
    # the offer can handle HTML - so try loading the library
    strOffer = offer[0].library().lati n1()
    factory = KLibLoader().fa ctory (strOffer)
    if factory :
    args = QStringList()
    args.append("in shell")
    html = factory.create ( self, 'naaaame',
    "KParts::ReadOn lyPart", args )

    -----------------------------------------------------------------

    ... I tried it with an without arguments - everytime it crashes by trying
    "factory.create " with the answer:
    KCrash: Application 'myApp.py' crashing...
Working...