[PyQt] QSqlTableModel and submitAll

2010-12-11 Thread Michele Petrazzo - Unipex
Hi all, I have a piece of code where I connect a sqlite db to a QSqlDatabase, I pass it to QSqlTableModel set it to a qtableview. The db has some foreign keys / unique feature that are honored by the sqlite command line correctly. All works except that the I save the modified table with the

[PyQt] pylupdate4 bug?

2009-11-14 Thread Michele Petrazzo - Unipex
Hi, just discovered that pylupdate4 has a problem with empty docstring. If I forgot to write at least one character inside the docstring space, pylupdate4 stops to look for new string translation. class Main(Qtclass): def __init__(self): def test(self): simple docstring

Re: [PyQt] Re: [Eric] Linguist question

2009-11-11 Thread Michele Petrazzo - Unipex
Detlev Offenbach wrote: Hi, Hi, sorry for this month of run. I'm now here for say that I continuing to dive into this problem. pylupdate4 show me some errors that lupdate not show. something like gui/main.py:419: Unterminated string and on that line I have Emit the signal on selection, so

[PyQt] Re: [Eric] Linguist question

2009-10-03 Thread Michele Petrazzo - Unipex
(since I think that it's a pyqt question/problem I cc to pyqt ml) Detlev Offenbach wrote: Hi, Hi, I think that I'm finally going crazy with the qt linguistic... I just update pyqt to 4.5.4 and qt 4.5.2 (the last on debian unstable repo) for see if was the file version the problem but it's the

Re: [PyQt] Connect and signal question

2009-09-23 Thread Michele Petrazzo - Unipex
Phil Thompson wrote: Assuming you have a recent version then use the new connection syntax... 4.4 on debian lenny or squeeze self.my_rb.toggled.connect(self._evt_my_rb) I think that I need at least 4.5 because it doesn't work. I'll wait for a debian update. Phil Thanks, Michele

[PyQt] Connect and signal question

2009-09-23 Thread Michele Petrazzo - Unipex
Hi all, I'm trying to use qt/pyqt for the first time and I found the first problems... I see that when I connect a signal to a widget, if I create a wrong signal, qt don't say me that I'm wrong let me crazing to find why qt don't call my callback... So, there is a method for say to qt to warning

[PyQt] pyuic4 gridlayout problem

2009-09-12 Thread Michele Petrazzo - Unipex
Hi list, I just create a form with qtdesigner with a gridlayout, put two widgets inside and set the property layoutRowStretch to 0,1 (default 0,0) Now I'm trying to transform it to the python code with pyuic4, but there is a problem because pyuic4 forgot to translate the RowStretch value. Doing a