Re: [PyKDE] namespaces in sip

2003-10-15 Thread Gerard Vermeulen
On Wed, 15 Oct 2003 13:46:49 -0800 Patrick Stinson <[EMAIL PROTECTED]> wrote: [ .. ] > > I'm working on modifying my sip project to include a lot of classes all > contained in the same C++ namespace. What is the correct way to organize the > sip files? Do all classes in the namespace have to be

Re: [PyKDE] namespaces in sip

2003-10-15 Thread Jim Bublitz
On Wednesday October 15 2003 14:46, Patrick Stinson wrote: > a.h > -- > namespace PK > { > class A {}; > } > > b.h > > namespace PK > { > class B{}; > } > > pkmod.sip > --- > %Module PK > %Include a

Re: [PyKDE] kdevelop: c++,pyqt...sip?

2003-10-15 Thread Jim Bublitz
On Wednesday October 15 2003 14:50, Patrick Stinson wrote: > Gideon has PyQt projects, and C++ projects. > If someone doesn't write a c++ sip-bindings glue project for > KDevelop soon, I will. Not sure exactly what you mean here - what specifically do you want to do? Script KDevelop, debug bindi

[PyKDE] Removing tabs from QTabWidget

2003-10-15 Thread Trevor Phillips
What is the best way to remove (and delete) all pages/tabs under a QTabWidget? I'm creating the content of a set of tabs dynamically, and within the run of the app, I also need to be able to recreate the same output. ie; Deleting all tabs, and adding in the new revised ones. At the moment I'm s

[PyKDE] kdevelop: c++,pyqt...sip?

2003-10-15 Thread Patrick Stinson
Gideon has PyQt projects, and C++ projects. If someone doesn't write a c++ sip-bindings glue project for KDevelop soon, I will. -P ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] namespaces in sip

2003-10-15 Thread Patrick Stinson
a.h -- namespace PK { class A {}; } b.h namespace PK { class B{}; } pkmod.sip --- %Module PK %Include a.sip %Include b.sip a.sip - /* same as a.h */ b.sip --

Re: [PyKDE] Trouble binding code with SIP

2003-10-15 Thread Patrick Stinson
This may be more of a question for Phil. a.h -- namespace PK { class A {}; } b.h namespace PK { class B{}; } pkmod.sip --- %Module PK %Include a.sip %Include b.sip a.sip ---

Re: [PyKDE] Segv debugging

2003-10-15 Thread Derek Fountain
On Thursday 16 October 2003 11:47, Phil Thompson wrote: > # The SIP v4 module is called sip. > import libsip as sip > > sip.settracemask(0xff) > > ...you can change the mask at any time. See the SIP_TRACE_* values in sip.h > to see the detail of which trace messages correspond to which bit of the >

Re: [PyKDE] Segv debugging

2003-10-15 Thread Phil Thompson
On Thursday 16 October 2003 4:21 am, Derek Fountain wrote: > When getting a segv from a PyQt script, is there a way of getting and using > a core dump such that it might provide a clue as to what I've done wrong? > What steps do developers take when faced with a segv? Getting a core dump depends o

[PyKDE] Segv debugging

2003-10-15 Thread Derek Fountain
When getting a segv from a PyQt script, is there a way of getting and using a core dump such that it might provide a clue as to what I've done wrong? What steps do developers take when faced with a segv? -- > eatapple core dump ___ PyKDE mailing list

[PyKDE] [SOLVED]+[PATCH] Re: problem with icon image handling in designer

2003-10-15 Thread Hans-Peter Jansen
Hi Phil, I got around this with the pyuic -embed option. Hrmf. Obviously, it produces a module, which can be included within a Python: comment. Studying this module revealed a list based lookup of the images, which involves a linear search. What do you think about this patch, which tries to do t

Re: [PyKDE] QTable and background color.

2003-10-15 Thread David Sathiaraj
Gianluca: I scripted out a small code snippet to do what you were trying and I am getting consitent results. You can use the attached code to check if you are doing something different. Regards, David #!/usr/bin/python import sys from qt import * from qttable import * class MyTableItem(QTableIte

Re: [PyKDE] event filters

2003-10-15 Thread Phil Thompson
On Wednesday 15 October 2003 6:52 pm, Toby Dickenson wrote: > On Wednesday 15 October 2003 18:14, Phil Thompson wrote: > > See what happens if you comment out the event() method. > > No different :-( > > Thats how it started out, only I wanted confirmation I was sending the > event right. It works

Re: [PyKDE] event filters

2003-10-15 Thread Toby Dickenson
On Wednesday 15 October 2003 18:14, Phil Thompson wrote: > See what happens if you comment out the event() method. No different :-( Thats how it started out, only I wanted confirmation I was sending the event right. -- Toby Dickenson ___ PyKDE mail

Re: [PyKDE] event filters

2003-10-15 Thread Phil Thompson
On Wednesday 15 October 2003 5:54 pm, Toby Dickenson wrote: > On Wednesday 15 October 2003 17:46, Phil Thompson wrote: > > On Wednesday 15 October 2003 5:40 pm, Toby Dickenson wrote: > > > Im not seeing event filters work how I expected. In the following > > > script I am seeing the 'event' line bu

Re: [PyKDE] event filters

2003-10-15 Thread Toby Dickenson
On Wednesday 15 October 2003 17:46, Phil Thompson wrote: > On Wednesday 15 October 2003 5:40 pm, Toby Dickenson wrote: > > Im not seeing event filters work how I expected. In the following script > > I am seeing the 'event' line but *never* the 'filter' line. PyQt 3.8, qt > > 3.1.2, on windows and

Re: [PyKDE] event filters

2003-10-15 Thread Phil Thompson
On Wednesday 15 October 2003 5:40 pm, Toby Dickenson wrote: > Im not seeing event filters work how I expected. In the following script I > am seeing the 'event' line but *never* the 'filter' line. PyQt 3.8, qt > 3.1.2, on windows and X. > > Any ideas? Thanks in advance. > > > from qt import * > > c

[PyKDE] event filters

2003-10-15 Thread Toby Dickenson
Im not seeing event filters work how I expected. In the following script I am seeing the 'event' line but *never* the 'filter' line. PyQt 3.8, qt 3.1.2, on windows and X. Any ideas? Thanks in advance. from qt import * class F(QObject): def eventFilter(self,ob,ev): print 'filter',o

[PyKDE] problem with icon image handling in designer

2003-10-15 Thread Hans-Peter Jansen
Hi, I'm trying to make use of an init() function, defined in designer, in order to feed the default mime image factory with some images. I want to circumvent designers image inlining function, since it fails to handle transparency correctly, bloats ui/py files, and is generally unflexible. On

Re: [PyKDE] GUI interface changes after exec_loop()

2003-10-15 Thread Trevor Phillips
On Wednesday 15 October 2003 16:31, Trevor Phillips wrote: > > I've successfully got it creating the tabs and their content dynamically, > but only if I do it before entering exec_loop. Any changes I do after that > point don't seem to take effect. > > Is there something easy I'm missing, to force

[PyKDE] GUI interface changes after exec_loop()

2003-10-15 Thread Trevor Phillips
Greetings! I'm new to Python, and new to Qt app development, and I think I've picked a tricky app as my first attempt. ^_^ I'm endeavouring to generate, as part of this app, a group of tabs, where the number of tabs, their labels, and their content is dynamically generated (from a DB pull no le

Re: [PyKDE] QStyleFactory and setStyle

2003-10-15 Thread Phil Thompson
On Wednesday 15 October 2003 3:13 am, Tuvi, Selim wrote: > Before I report it to Trolltech I wanted to get your feedback on this > problem. I have a preference option in my application to set the style. > When the application initially loads it reads the style preference from the > configuration