[PyQt] Read-only QSqlRelationalTableModel

2009-08-23 Thread Brian Zambrano
Is there a way to create a read-only QSqlRelationalTableModel? >From the docs, I'm thinking that I need to create my own subclass of QSqlQueryModel which follow the relationships that I need. Thanks, BZ ___ PyQt mailing listPyQt@riverbankcomputing.c

[PyQt] QSqlTableModel.submitAll() problems with milliseconds and PostgreSQL time field

2009-08-23 Thread Chris Mayo
If I create a PostgreSQL database 'test' and execute the following: CREATE TABLE timetest ( t time ); INSERT INTO timetest VALUES ('0:0:0'); run the following Python: from PyQt4.QtCore import * from PyQt4.QtSql import * db = QSqlDatabase.addDatabase("QPSQL") db.setHostName("localhost") db.setDa

Re: [PyQt] Vim session in a pyqt window?

2009-08-23 Thread Marcell Mars
you could run most of the console applications using: a) http://doc.trolltech.com/4.5/qx11embedcontainer.html b) http://pyqt4-extrawidgets.googlecode.com/files/qtermwidget-0.1.2.tar.gz On Fri, Aug 21, 2009 at 6:25 PM, wrote: > Hello list. Would it be very difficult to run a vim session (the cons

Re: [PyQt] linguist skipping a line and missing context

2009-08-23 Thread Phil Thompson
On Sat, 22 Aug 2009 14:51:59 -0400, Paul Rouleau wrote: > I report a weird behavior of linguist for a .ts file generated with > pylupdate4. > > The python source code is > > begin code of test.py > #!/usr/bin/python > # -*- coding: utf8 -*- > > import functools > from PyQt4 import QtG