Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Programming languages > Problems with kdecore...
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 24th October 09:09
elke hohls
External User
 
Posts: 1
Default 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().latin1()
factory = KLibLoader().factory (strOffer)
if factory :
args = QStringList()
args.append("in shell")
html = factory.create ( self, 'naaaame',
"KParts::ReadOnlyPart", args )

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

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


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666