[PyQt] some bugs in opengl examples

2009-05-26 Thread Francis Cho
Hello, I found some bugs in opengl examples. 1. Wrong conversion of the original C++ code. It is in grabber.py. I changed as following to get the correct behavior. FROM def resizeGL(self, height, width): TO def resizeGL(self, width, height): Before changing the code like the above, the openg

Re: [PyQt] Next Releases

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 13:19:46 -0700, Kovid Goyal wrote: > pyuic4 doesn't have support for the QWizardPage class, as demonstrated by > the > attached .ui file. Fixed in tonight's snapshot - thanks. Phil ___ PyQt mailing listPyQt@riverbankcomputing.co

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
For your point of view but none for mine. Indeed I'd like examples which are very small. Why don't you give this kind of example ? Best regards. Christophe Detlev Offenbach a écrit : Hi, the simple example is eric. ;-) Detlev On Dienstag, 26. Mai 2009, projetmbc wrote: That's very co

Re: [PyQt] Next Releases

2009-05-26 Thread Kovid Goyal
pyuic4 doesn't have support for the QWizardPage class, as demonstrated by the attached .ui file. Kovid. On Tue, May 26, 2009 at 09:21:38AM +0100, Phil Thompson wrote: > I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the > end of the week based on the current snapshots. > >

Re: [PyQt] Next Releases

2009-05-26 Thread Gerard Vermeulen
On Tue, 26 May 2009 09:21:38 +0100 Phil Thompson wrote: > I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at > the end of the week based on the current snapshots. > > If there is something you think is missing or broken then now would > be a good time to remind me. > > Phil >

Re: [PyQt] SIP: missing PyType_Ready

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 17:21:28 + (UTC), Kevin Watters wrote: > I was using an extension that traverses the GC heap, and it crashed when it > got to the sipVariableDescr_Type object, because it never gets initialized > via PyType_Ready. > > The fix is easy; just an extra PyType_Ready for sipVari

[PyQt] SIP: missing PyType_Ready

2009-05-26 Thread Kevin Watters
I was using an extension that traverses the GC heap, and it crashed when it got to the sipVariableDescr_Type object, because it never gets initialized via PyType_Ready. The fix is easy; just an extra PyType_Ready for sipVariableDescr_Type in the PyMODINIT_FUNC in siplib.c Thanks! - Kevin __

Re: [PyQt] Next Releases

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 19:02:21 +0200, Detlev Offenbach wrote: > On Dienstag, 26. Mai 2009, Phil Thompson wrote: >> On Tue, 26 May 2009 18:39:20 +0200, Detlev Offenbach >> >> wrote: >> > On Dienstag, 26. Mai 2009, Phil Thompson wrote: >> >> I plan to release new versions of SIP, PyQt3, PyQt4 and QSc

Re: [PyQt] Next Releases

2009-05-26 Thread Detlev Offenbach
On Dienstag, 26. Mai 2009, Phil Thompson wrote: > On Tue, 26 May 2009 18:39:20 +0200, Detlev Offenbach > > wrote: > > On Dienstag, 26. Mai 2009, Phil Thompson wrote: > >> I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at > > the > > >> end of the week based on the current snaps

Re: [PyQt] Next Releases

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 18:39:20 +0200, Detlev Offenbach wrote: > On Dienstag, 26. Mai 2009, Phil Thompson wrote: >> I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the >> end of the week based on the current snapshots. >> >> If there is something you think is missing or broken t

Re: [PyQt] Next Releases

2009-05-26 Thread Detlev Offenbach
On Dienstag, 26. Mai 2009, Phil Thompson wrote: > I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the > end of the week based on the current snapshots. > > If there is something you think is missing or broken then now would be a > good time to remind me. > > Phil > ___

Re: [PyQt] Next Releases

2009-05-26 Thread Detlev Offenbach
Hi, the simple example is eric. ;-) Detlev On Dienstag, 26. Mai 2009, projetmbc wrote: > That's very cool. I hope that there will be a simple example showing how > to use it. > > Christophe. > > Phil Thompson a écrit : > > On Tue, 26 May 2009 11:48:52 +0200, projetmbc > > > > > > wrote: > >> He

[PyQt] QTableView - insert e.g. another view in a cell?? Is that possible??

2009-05-26 Thread Danny Schneider
Hi folks, it's my first mail here, because I'm on searching the internet the last 2days for that problem... Is there any possibility to put another widget or another view into a cell of a QTableView? My data sets for showing in the GUI should assigned to 2 columns, where the first column is a

Re: [PyQt] Storing a QFlags in a QSettings

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 15:29:11 +0200, Jerome Vuarand wrote: > Hi, > > I'm currently trying to modify an existing PyQt app so that it stores > the windowState of its main window when it exits. The information is > retrieved with the QWidget::windowState method, and restored with the > QWidget::setWi

[PyQt] Storing a QFlags in a QSettings

2009-05-26 Thread Jerome Vuarand
Hi, I'm currently trying to modify an existing PyQt app so that it stores the windowState of its main window when it exits. The information is retrieved with the QWidget::windowState method, and restored with the QWidget::setWindowState method. The state itself it an object of type WindowStates, w

Re: [PyQt] Do not avto convert python date to QVariant

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 16:49:10 +0700, Alexandr N Zamaraev wrote: > [code] > from PyQt4 import QtCore > import datetime > > def show(d, QtType): >print 'pytype:', d >v = QtCore.QVariant(d) >print 'from variant:', str(QtCore.QVariant(d).toString()) >print 'from qttype:', str(QtCore.QV

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
That's very cool. I hope that there will be a simple example showing how to use it. Christophe. Phil Thompson a écrit : On Tue, 26 May 2009 11:48:52 +0200, projetmbc wrote: Hello, I would like to know if the patch of Eric Software which allows to use pygments with QScintilla will be wit

Re: [PyQt] Next Releases

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 11:48:52 +0200, projetmbc wrote: > Hello, > I would like to know if the patch of Eric Software which allows to use > pygments with QScintilla will be with this new release. Yes. Phil ___ PyQt mailing listPyQt@riverbankcomputing

Re: [PyQt] Crash in TableView cell edit

2009-05-26 Thread Phil Thompson
On Tue, 26 May 2009 16:33:51 +0700, Alexandr N Zamaraev wrote: > [code=python] > from PyQt4 import QtCore, QtGui > > class EditorFactory(QtGui.QItemEditorFactory): >pass > > def createTv(): >tv = QtGui.QTableView() >model = QtGui.QStandardItemModel(4, 2, tv) >tv.setModel(model) >

[PyQt] Re: Crash in TableView cell edit

2009-05-26 Thread Alberto Berti
You have to keep your editor factory alive outside the scope of the createTv() method from PyQt4 import QtCore, QtGui class EditorFactory(QtGui.QItemEditorFactory): pass def createTv(): tv = QtGui.QTableView() model = QtGui.QStandardItemModel(4, 2, tv) tv.setModel(model) delegate =

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
Hello, I would like to know if the patch of Eric Software which allows to use pygments with QScintilla will be with this new release. Best regards. Christophe Phil Thompson a écrit : I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the end of the week based on the curre

[PyQt] Do not avto convert python date to QVariant

2009-05-26 Thread Alexandr N Zamaraev
[code] from PyQt4 import QtCore import datetime def show(d, QtType): print 'pytype:', d v = QtCore.QVariant(d) print 'from variant:', str(QtCore.QVariant(d).toString()) print 'from qttype:', str(QtCore.QVariant(QtType(d)).toString()) show(datetime.date.today(), QtCore.QDate) print show(d

[PyQt] Crash in TableView cell edit

2009-05-26 Thread Alexandr N Zamaraev
[code=python] from PyQt4 import QtCore, QtGui class EditorFactory(QtGui.QItemEditorFactory): pass def createTv(): tv = QtGui.QTableView() model = QtGui.QStandardItemModel(4, 2, tv) tv.setModel(model) delegate = QtGui.QStyledItemDelegate(tv) delegate.setItemEditorFactory(EditorFactor

[PyQt] Next Releases

2009-05-26 Thread Phil Thompson
I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the end of the week based on the current snapshots. If there is something you think is missing or broken then now would be a good time to remind me. Phil ___ PyQt mailing listPyQt