[PyQt] Bug in QFileDialog

2010-12-03 Thread Vicent Mas
Hi, the attached script shows a bug in QFileDialog. If on a given dialog you call setLabelText(QFileDialog.Accept, text) and then you call setFileMode(FileMode) then the label is not set and the default label is used. If you call setFileMode(FileMode) first and then you call

Re: [PyQt] Python 3 import error

2010-12-03 Thread Thorsten Kampe
I just wanted to say that the amount of knowledgeable, fast help I received here yesterday was incredible. In this thread I experienced about six or so different problems porting a script to Python 3 and each one of that was immediately solved showing immense knowledge not just about PyQt

Re: [PyQt] Bug in QFileDialog

2010-12-03 Thread Vicent Mas
On 2010-12-03 Vicent Mas uve...@gmail.com said: Hi, the attached script shows a bug in QFileDialog. If on a given dialog you call setLabelText(QFileDialog.Accept, text) and then you call setFileMode(FileMode) then the label is not set and the default label is used. If you call

[PyQt] Translations failing when not using self for the instance

2010-12-03 Thread Thorsten Kampe
Hi, when using other names for the self idiom referring to the current instance (like inst for example - see [1]), the application is not correctly translated. If I open the generated ts file in Qt Linguist it shows two contexts (MainWindow and inst) instead of just one (MainWindow) when

[PyQt] Application not hiding from taskbar

2010-12-03 Thread Mikael Modin
Hi, I'm trying to implement minimize-to-tray but my application refuses to hide from taskbar. I've distilled the problematic code down to this little snippet, attached .ui-file. import sys, os from PyQt4 import uic from PyQt4.QtGui import QMainWindow, QApplication class MyClass(QMainWindow):

Re: [PyQt] Translations failing when not using self for the instance

2010-12-03 Thread Hans-Peter Jansen
On Friday 03 December 2010, 12:36:44 Thorsten Kampe wrote: Hi, when using other names for the self idiom referring to the current instance (like inst for example - see [1]), the application is not correctly translated. If I open the generated ts file in Qt Linguist it shows two contexts

Re: [PyQt] QVariant API 2 and QtGui.QGraphicsProxyWidget.itemChange()

2010-12-03 Thread Phil Thompson
On Wed, 1 Dec 2010 08:37:05 -0600, Aron Bierbaum aronbierb...@gmail.com wrote: I believe that we have found a bug with the conversion of QVariant objects in the QGraphicsProxyWidget.itemChange() method when using the API 2 version. The issue seems to be related to the fact that when we try to

[PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)

2010-12-03 Thread KONTRA, Gergely
Hi all! I suspect QSqlTableModel.rowCount cannot return numbers above 256. For this finding could somebody please write me a mini-example of the QSqlTableModel.beforeInsert? Look, this outputs 256 for me (python 3.1.2, pyqt 4.8.1, XP SP3) And can somebody tell me why this code is this

[PyQt] QSqlTableModel.beforeInsert signal (new style signal/slot)

2010-12-03 Thread KONTRA, Gergely
Hi! I am trying to connect the beforeInsert signal of a QSqlTableModel, and having some problems. I've found this similar thread: http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg20117.html However, I am using pyqt with py3k, so I prefer the new style signal and slots, but I

[PyQt] QSqlTableModel without view

2010-12-03 Thread KONTRA, Gergely
[sorry for the posting more messages, but I figured out now, that my subscription address was wrong, and I got no error message from the list, that my messages will not appear :(] Hi! I am a novice pyqt developer. I will develop a pyqt program, which will periodically will get measurement data,

Re: [PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)

2010-12-03 Thread Wolfgang Rohdewald
On Freitag 03 Dezember 2010, KONTRA, Gergely wrote: Hi all! I suspect QSqlTableModel.rowCount cannot return numbers above 256. rowCount is not the number of rows in the table but in the model, AFAIK. Use fetchMore() to load more. And can somebody tell me why this code is this painfully

Re: [PyQt] QSqlTableModel.beforeInsert signal (new style signal/slot)

2010-12-03 Thread Phil Thompson
On Fri, 3 Dec 2010 15:46:55 +0100, KONTRA, Gergely pihent...@gmail.com wrote: Hi! I am trying to connect the beforeInsert signal of a QSqlTableModel, and having some problems. I've found this similar thread: http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg20117.html However,

Re: [PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)

2010-12-03 Thread KONTRA, Gergely
On Fri, Dec 3, 2010 at 15:56, Wolfgang Rohdewald wolfg...@rohdewald.dewrote: On Freitag 03 Dezember 2010, KONTRA, Gergely wrote: Hi all! I suspect QSqlTableModel.rowCount cannot return numbers above 256. rowCount is not the number of rows in the table but in the model, AFAIK. Use

Re: [PyQt] QSqlTableModel.beforeInsert signal (new style signal/slot)

2010-12-03 Thread KONTRA, Gergely
On Fri, Dec 3, 2010 at 16:06, Phil Thompson p...@riverbankcomputing.comwrote: On Fri, 3 Dec 2010 15:46:55 +0100, KONTRA, Gergely pihent...@gmail.com wrote: Hi! I am trying to connect the beforeInsert signal of a QSqlTableModel, and having some problems. I've found this similar

Re: [PyQt] QSqlTableModel.beforeInsert signal (new style signal/slot)

2010-12-03 Thread Phil Thompson
On Fri, 3 Dec 2010 17:19:00 +0100, KONTRA, Gergely pihent...@gmail.com wrote: On Fri, Dec 3, 2010 at 16:06, Phil Thompson p...@riverbankcomputing.comwrote: On Fri, 3 Dec 2010 15:46:55 +0100, KONTRA, Gergely pihent...@gmail.com wrote: Hi! I am trying to connect the beforeInsert signal

Re: [PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)

2010-12-03 Thread Andreas Pakulat
On 03.12.10 17:13:31, KONTRA, Gergely wrote: On Fri, Dec 3, 2010 at 15:56, Wolfgang Rohdewald wolfg...@rohdewald.dewrote: On Freitag 03 Dezember 2010, KONTRA, Gergely wrote: Hi all! I suspect QSqlTableModel.rowCount cannot return numbers above 256. rowCount is not the number

Re: [PyQt] QSqlTableModel.rowCount bug? (and still need infor for beforeInsert)

2010-12-03 Thread Wolfgang Rohdewald
On Freitag 03 Dezember 2010, Andreas Pakulat wrote: It also doesn't mention that its based on QSqlQueryModel::rowCount(). That one however does explain what it returns in its API docs. So it seems like your DB is at fault, as its not able to return the complete size of the query. You are

[PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

2010-12-03 Thread Daniel Goertzen
While running cx_freeze with an installation of PyQt-Py3.1-gpl-4.8.1-1, I got the following error: File C:\Python31\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py, line 17 except Exception, e: ^ SyntaxError: invalid syntax make: *** [freeze] Error 1 Changing the

Re: [PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

2010-12-03 Thread Hans-Peter Jansen
On Friday 03 December 2010, 21:47:06 Daniel Goertzen wrote: While running cx_freeze with an installation of PyQt-Py3.1-gpl-4.8.1-1, I got the following error: File C:\Python31\lib\site-packages\PyQt4\uic\port_v2\load_plugin.py, ^^^ line 17

Re: [PyQt] bug: Python 2 exception in PyQt-Py3.1-gpl-4.8.1-1

2010-12-03 Thread Daniel Goertzen
Ah, sounds like a cx_freeze problem them. Other than that issue, cx_freeze appeared to work fine. The pyInstaller homepage says that it only supports up to python 2.7. Since I'm using 3.1, I didn't even try it. Thanks, Dan. On Fri, Dec 3, 2010 at 4:21 PM, Hans-Peter Jansen h...@urpla.net