Seite 1 von 1

KLibLoader.factory ..."KCrash: ..."

Verfasst: Freitag 26. August 2005, 07:45
von speedee
I can't use KLibLoader - everytime it crashed!

def MyDef (self):
offer = KTrader.self().query("text/html")
# my offer can handle HTML and is a part.
# get the library and load that
strOffer = offer[0].library().latin1()
factory = KLibLoader().factory (strOffer)
if factory :
html = factory.create ()

... I tried it with and without arguments - the only answer I got was:
"KCrash: Application 'MyApp.py' crashing..

code...

Verfasst: Freitag 26. August 2005, 07:47
von Gast
sorry, the code again:

Code: Alles auswählen

def MyDef (self):
    offer = KTrader.self().query("text/html")
    # my offer can handle HTML and is a part.
    # get the library and load that
    strOffer = offer[0].library().latin1()
    factory = KLibLoader().factory (strOffer)
    if factory :
        html = factory.create ()