Re: [PyQt] data widget mapper not committing

2008-09-01 Thread simone
function return the error as string print "Error on committing: %s" % (model.lastError().text()) else: print "Everything is ok!" In some cases, for example if you delete some records, you need to use the model.submit() function instead. -- Simone Chiacchier

[PyQt] Minimum window size

2008-08-29 Thread simone
ue on that problem? I would like to post the .ui file, but that's 129Kb of size and I don't know If it's accepted. I'm using Qt 4.3.3 OS edition on WinXP. TIA -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/

Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread simone
ment like what you need? -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QComboBox with history

2008-07-03 Thread simone
xChanged(self, index): print self.ComboBox.itemData(index).toString() Normally this works for me... :) -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ PyQt mailing listPyQt@ri

Re: [PyQt] QComboBox with history

2008-07-03 Thread simone
the setItemData() method to store the information needed and the findData method to find an item or an index with needed data. More information on the QComboBox Class Reference. -- Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http

[PyQt] Bug on SqlRelationalTableModel?

2008-06-25 Thread simone
| Else | 2 | -- Unexpected - In the database the values are different as expected. The database engine is Sqlite, PyQt 4.3.3, Python 2.5.2 on Windows XP SP3. What could it be? :) -- Simone Chiacchiera con i tuoi amici in te

Re: [PyQt] launch a dialog from main window

2008-06-06 Thread simone
e 'app' is not defined" On the __init__ of the Main class, of course. Ciao! Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ PyQt mailing listPyQt@ri

Re: [PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread simone
#x27;t know how to do it. Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread simone
a ',' key press event when I hit the '.' in the numeric pad? If yes, have you some code to post? :D Thanks, Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ Py

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-12 Thread Simone
Mark Summerfield ha scritto: On 2008-04-11, Simone Zaccarin wrote: I'm trying to create a custom QSqlRelationalDelegate. In the database, the date field is in text form '-MM-dd'. I have to show that string in a QSqlTable in the form 'dd-MM-'. If that'

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Simone
Simone Zaccarin ha scritto: My only problem is that I construct the UI via QtDesigner. Is there a way to "overwrite" the table added via Designer without being a PyQt4 expert? Sorry, I misunderstood the message... :) The QSqlRelationalTableModel is added by code... :) Simone Chiac

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Simone Zaccarin
My only problem is that I construct the UI via QtDesigner. Is there a way to "overwrite" the table added via Designer without being a PyQt4 expert? :D Simone - Messaggio originale - Da: Mark Summerfield <[EMAIL PROTECTED]> A: pyqt@riverbankcomputing.com Cc: Simone

[PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Simone Zaccarin
painter.translate(option.rect.x(), option.rect.y()) document.drawContents(painter) painter.restore() else: QSqlRelationalDelegate.paint(self, painter, option, index) I'm on WinXp SP2, PyQt 4.3.3 and Python 2.5.2. Thanks, Simone Inviato da Yahoo! Mail. La c

Re: [PyQt] Nullable foreign keys

2008-04-03 Thread Simone
ESCRIPTION text, FK_TO_TABLE_2 integer; TABLE_2: ID integer primary key autoincrement, DESCRIPTION text; The inserted rows are: TABLE_2: insert into TABLE_2(ID) values (-1); TABLE_1: insert into TABLE_1(ID, FK_TO_TABLE_2) values (-1, -1); HTH! Simone Chiacchiera con i tuoi amici in tempo reale! http

Re: [PyQt] Simple ls -1 /home to QComboBox example

2008-03-07 Thread Simone
ed to something to do with a qstring, but I'm at a loss. Perhaps the os.walk(mypath) function in python? This function returns a list of files or directory and interating over that list you can add the items in the combobox. HTH, Simone Chiacchiera con i tuoi amici in tempo reale! http://it

Re: [PyQt] How to get the list of widgets names in a form

2008-03-07 Thread Simone
elf. For example: self.widgets = [] label1 = QLabel(self) # other stuff... self.widgets.append(label1) line_edit1 = QLineEdit(self) # other stuff... self.widgets.append(line_edit1) for widget in widgets: name = widget.objectName() Simone Chiacchiera con i tuoi amici in tempo reale! htt

Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Simone
to the status of table. Do you have the permission to read the table? Which database are you using? Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ PyQt mailing listPyQt

Re: [PyQt] QSqlQueryModel works but QSqlTableModel doesn't work

2008-03-04 Thread Simone
) #returns 0 self.ui.tvOpcionesReglas.setModel(self.tb) self.ui.tvOpcionesReglas.show() #only show the column names Stupid question: is there any records on the table? Simone Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger

Re: [PyQt] QSqlRelationalModel and setFilter

2008-03-01 Thread Simone
Simone ha scritto: The relations, also, are right because in the rest of the program I'm writing, I have a QTableView that shows correctly the description of the foreing key. I answer to myself: it's my error (any doubt? :D ) Simply the filter field has a duplicate name (the same

[PyQt] QSqlRelationalModel and setFilter

2008-02-27 Thread Simone
he result of this query is 1 as expected. Note that the filter is in a field that hasn't any external relations with other table. The relations, also, are right because in the rest of the program I'm writing, I have a QTableView that shows correctly the description of the foreing key. I&#

[PyKDE] Documentation

2005-11-01 Thread Simone Zaccarin
rding the sql functions and widgets. Thank you, Simone ___ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de

Re: [review] [PyKDE] bug report

2003-12-15 Thread Simone Piunno
1137 %End > Which distribution/version are you using? I'm on Mandrake 9.2 When I've more time I'll try rebuilding everything from source, anyway it would be nice to understand exactly where the problem is, so that I can send feedback to Mandrake people. Thank you again Simone

[PyKDE] bug report

2003-12-12 Thread Simone Piunno
Hi guys, Building PyKDE 3.8 on linux2. Python version is 2.3 Python parent directory is /usr/lib/python2.3 Python library directory is /usr/lib/python2.3/config Python include directory is /usr/include/python2.3 Home directory is /home/simone sip code generator path (sip) is /usr/local/bin