Re: [PyQt] Problem with exception translation

2010-09-14 Thread Hans Meine
On Tuesday 14 September 2010 14:46:27 Phil Thompson wrote: > There is no problem with telling lies to SIP, but you have to be > consistent with those lies. In this case you should add #include > to Foo's %TypeHeaderCode block. I see, thanks. Have a nice day, Hans __

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Phil Thompson
On Tue, 14 Sep 2010 12:21:40 +0200, Hans Meine wrote: > On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote: >> wrote: >> > Anyhow, now I found the /Default/ annotation, which is exactly what I >> > want. However, I get compile errors from the generated code; obviously, >> > the above %Type

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Hans Meine
On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote: > wrote: > > Anyhow, now I found the /Default/ annotation, which is exactly what I > > want. However, I get compile errors from the generated code; obviously, > > the above %TypeHeaderCode is not inserted into every file using the above >

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Phil Thompson
On Thu, 9 Sep 2010 15:59:04 +0200, Hans Meine wrote: > Hi, > > I have had many problems with exception translation. First of all, it > seems > to be an undocumented fact that the exception translation is overwritten > by > %MethodCode blocks (i.e. not wrapped around them). > > Second, even af

[PyQt] Problem with exception translation

2010-09-09 Thread Hans Meine
Hi, I have had many problems with exception translation. First of all, it seems to be an undocumented fact that the exception translation is overwritten by %MethodCode blocks (i.e. not wrapped around them). Second, even after enabling exception translation by passing -e and describing my exce