[PyQt] SIP wrapping template call

2011-09-23 Thread Pankaj Singh
In the C++ code that I'm exporting to python, I have the following call in the header file. template Following this, PropertyManager is being used in other class definitions. How do I wrap this in a sip file? Thanks and Regards Pankaj Singh ___ PyQt m

[PyQt] DynamicUILoader().loadUi crash only when inside a decorated function?

2011-09-23 Thread Christopher Evans
I am wrapping a tool in a decorator which just sends a mail with some info on throw, however, the UIC module doesn't seem to like this. File "J:\data\Production\TechArt\Builds\Latest\Tools\CryMayaTools\CryRigging\rigTools\rigTools.py", line 29, in __init__ self.ui = uic.loadUi(uiPath) File "J:\dat

Re: [PyQt] subclassing QSqlTableModel

2011-09-23 Thread Pavel Brych
Hi Paolo, you must return your flags like this: def flags(self, index): return QSqlTableModel.flags(self, index) Otherwise your method returns None. Pavel Dne 23.9.2011 13:28, pa...@paolodestefani.it napsal(a): > I'm using python 3.2 and pyqt 4.8.5 on windows 7 32bit > I'm trying t

[PyQt] subclassing QSqlTableModel

2011-09-23 Thread paolo
I'm using python 3.2 and pyqt 4.8.5 on windows 7 32bit I'm trying to understand how subclassing QSqlTableModel works and i don't understand why this code fail: class StaffModel(QSqlTableModel): def __init__(self, parent): QSqlTableModel.__init__(self, parent) self.setTable("sta

[PyQt] Drag icons in QFileDialog

2011-09-23 Thread Mads Ipsen
Hi, I have reverse engineered the QFileDialog class so it can be used as a file browser. Now I'd like to be able to access the underlying machinery in such a way that I can control the displayed drag icons when e.g. a file with the .py extension is being dragged. Any clues to where I should

[PyQt] Fwd: Re: highlighting different language in one document

2011-09-23 Thread Vincent Vande Vyvre
Message original Sujet: Re: [PyQt] highlighting different language in one document DateĀ : Fri, 23 Sep 2011 09:40:58 +0200 DeĀ : Vincent Vand