Re: [PyQt] Call a window from other parent window

2007-10-17 Thread Michael Towers
A couple of (also untested) tweaks? Mark Summerfield wrote: On 2007-10-16, Sergio Jovani Guzmán wrote: Hi all! I am learning PyQt and I have a question. I have two classes, one for each widget: == class Main(QMainWindow): def __init__(self): QMainWi

[PyQt] PyKDE4 guide/tutorial

2007-10-17 Thread Arne Babenhauserheide
Hi, Is there a guide for PyKDE4? Google didn't get me far, here... I don't yet know KDE programming. Should I try to get into PyKDE4 nontheless? http://websvn.kde.org/tags/KDE/3.94/kdebindings/python/pykde4/README?view=markup Besides: I'm learning Python at the moment. Best wishes, Arne -

Re: [PyQt] QSqlQueryModel write subclass

2007-10-17 Thread Linos
I am goin crazy with this problem, i have tested with qsqltablemodel subclassing and it works ok if a dont write the insertRows method in the subclass: (model) class SkudaSqlTableModel(QSqlTableModel): def __init__(self, dbcursor=None): super(SkudaSqlTableModel, self).__init__() (QD

Re: [PyQt] PyKDE4 guide/tutorial

2007-10-17 Thread Hans-Peter Jansen
Hi Arne, Am Mittwoch, 17. Oktober 2007 11:03 schrieb Arne Babenhauserheide: > Hi, > > Is there a guide for PyKDE4? Google didn't get me far, here... > > I don't yet know KDE programming. Should I try to get into PyKDE4 > nontheless? > > http://websvn.kde.org/tags/KDE/3.94/kdebindings/python/pykde4

[PyQt] Adding methods to C++-created objects

2007-10-17 Thread Giovanni Bajo
Hello, I get random crashes from code like this one: class MyDelegate(QItemDelegate): def createEditor(self, *args): ed = QItemDelegate.createEditor(self, *args) ed.foo = bar # adding stuff to python instance ed.foo2 = lambda: bar return ed def setModelD

Re: [PyQt] Adding methods to C++-created objects

2007-10-17 Thread Phil Thompson
On Wednesday 17 October 2007, Giovanni Bajo wrote: > Hello, > > I get random crashes from code like this one: > > class MyDelegate(QItemDelegate): > def createEditor(self, *args): > ed = QItemDelegate.createEditor(self, *args) > ed.foo = bar # adding stuff to python instance

Re: [PyQt] Adding methods to C++-created objects

2007-10-17 Thread Giovanni Bajo
On Wed, 2007-10-17 at 18:18 +0100, Phil Thompson wrote: > > class MyDelegate(QItemDelegate): > > def createEditor(self, *args): > > ed = QItemDelegate.createEditor(self, *args) > > ed.foo = bar # adding stuff to python instance > > ed.foo2 = lambda: bar > >

Re: [PyQt] Qt 4.4

2007-10-17 Thread Matt Chambers
Andreas Pakulat wrote: On 16.10.07 12:02:04, Matt Chambers wrote: Has anyone tested the latest snapshots with Qt 4.4? No, and Phil usually doesn't support Qt snapshots, only releases. Andreas Yeah, lets start early! I want to get in some early testing with 4.4, the other 4.x ver

Re: [PyQt] Qt 4.4

2007-10-17 Thread Giovanni Bajo
On Wed, 2007-10-17 at 16:15 -0700, Matt Chambers wrote: > > No, and Phil usually doesn't support Qt snapshots, only releases. > > > > Andreas > > > > > Yeah, lets start early! I want to get in some early testing with 4.4, > the other 4.x versions are extremely slow to draw to the screen > co

[PyQt] Disabling a key event

2007-10-17 Thread Gustavo A. Díaz
Hi! What i want to do this time, is to disable a key event in my app. For example i want to avoid closing the app by pressing ALT + F4: def keyPressEvent(self, event): if event.key() == QtCore.Qt.Key_F4 and (event.modifiers() & QtCore.Qt.AltModifier): # DO Nothing. How