Re: [PyKDE] KTrader woes?

2003-09-10 Thread Jim Bublitz
On Wednesday September 10 2003 17:45, Sundance wrote: > I heard Jim Bublitz said: > I assume that it is not expected to work outside a > KApplication, then? Maybe there should be a way to raise an > exception rather than crash when this is called outside a > KApplication...? You'd have to talk t

Re: [PyKDE] KTrader woes?

2003-09-10 Thread Sundance
I heard Jim Bublitz said: > It returns a 7 item list here (exact same code as above in a > KApplication). Ah. The 'in a KApplication' part may actually be the crucial point. :) > Can you provide a *short*, complete example > program that segfaults on this? Already did. 0:) #!/bin/env python fr

Re: [PyKDE] KTrader woes?

2003-09-10 Thread Jim Bublitz
On Wednesday September 10 2003 12:23, Sundance wrote: > I'm prodding at the under-the-hood niftiness that makes KDE's > beauty and strength, using the Python bindings, but so far > I've not had much success, I am sorry to report. > For example, this code: > from kio import * > offer = KTrader.sel

Re: [PyKDE] KTrader woes?

2003-09-10 Thread Simon Edwards
On Wednesday 10 September 2003 21:23, Sundance wrote: > I'm prodding at the under-the-hood niftiness that makes KDE's beauty and > strength, using the Python bindings, but so far I've not had much > success, I am sorry to report. > > For example, this code: > > from kio import * > offer = KTrad

[PyKDE] KTrader woes?

2003-09-10 Thread Sundance
Hiya, I'm prodding at the under-the-hood niftiness that makes KDE's beauty and strength, using the Python bindings, but so far I've not had much success, I am sorry to report. For example, this code: from kio import * offer = KTrader.self().query("text/html") ... causes Python to segfault. I

Re: [PyKDE] enum arguments in sip

2003-09-10 Thread Jim Bublitz
On Wednesday September 10 2003 00:30, Patrick Stinson wrote: > I've been using sip to generate python bindings for my lib, > but ran into a problem with passing an enum to a member > method. > sip file: > -- > public: > enum ModuleType > { > Module, > Producer, >

[PyKDE] enum arguments in sip

2003-09-10 Thread Patrick Stinson
I've been using sip to generate python bindings for my lib, but ran into a problem with passing an enum to a member method. sip file: -- public: enum ModuleType { Module, Producer, Consumer }; static void AddModule(PK_Module *, ModuleType); header file: