Re: [PyQt] simple charts with PyQT

2010-11-08 Thread bar tomas
he generated chart is in >> fact a .png-image, which can be easily loaded into a QPixMap e.g.. (Adds the >> requirement of an internet connection though.) >> >> On Fri, Nov 5, 2010 at 13:08, Vincent Vande Vyvre >> wrote: >>> >>> Le 05/11/10 12:46, b

[PyQt] simple charts with PyQT

2010-11-05 Thread bar tomas
Hi, I was just wondering if someone could advise me on the simplest way of integrating a few simple charts (pie chart, time series chart, etc) into my PyQT application. Are there any chart widget libraries accessible through PyQT? Can they be used through QT Designer? Is it easier to just paint the

[PyQt] Synchronization of QDataWidgetMapper index of new row with respect to QSqlTableModel sort criteria

2010-07-12 Thread bar tomas
Hi, I'm using a QDataWidgetMapper to map the fields in a database table to the fields in a form. The QSqlRelationalTableModel model associated to my QDataWidgetMapper has a sort criteria on the basis of an integer field. My problem is how to set the correct index of the QDataWidgetMapper when a ne

[PyQt] How to retrieve number of fields of a query from QSqlQuery object

2010-03-24 Thread bar tomas
Hi, QSqlQuery's size method gives the number of rows retrieved with a query. But is there some way to get the number of fields (columns) of that query? Many thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mai

[PyQt] QDataWidgetMapper null values/ beforeInsert problem

2010-03-06 Thread bar tomas
Hi, I'm using a QDataWidgetMapper to map the fields in a database table to the fields in a form. If a field in the form is left empty I would like a null value to be inserted in the database field. However, empty fields are given a 0 value for numeric fields and an empty string value for text fiel

Re: [PyQt] Problem displaying images in QLabel (Newbie)

2010-03-01 Thread bar tomas
some example code, only supernatural powered humans can help you :-). >> > >> > On Wed, Feb 24, 2010 at 4:11 PM, bar tomas wrote: >> >> >> >> Hi, >> >> I'm programming in PyQt using the Eric4 IDE and QtDesigner. >> >> I'

Re: [PyQt] Problem displaying images in QLabel (Newbie)

2010-02-28 Thread bar tomas
patience. On Thu, Feb 25, 2010 at 3:00 PM, Nick Gaens wrote: > I'm guessing it has to do with the .png file not being found, but without > some example code, only supernatural powered humans can help you :-). > > On Wed, Feb 24, 2010 at 4:11 PM, bar tomas wrote: >> >> H

[PyQt] Problem displaying images in QLabel (Newbie)

2010-02-24 Thread bar tomas
Hi, I'm programming in PyQt using the Eric4 IDE and QtDesigner. I've created a QLabel containing a png image that displays fine when previewing the form in QtDesigner, but when I execute my python program from Eric, the image is not visible. Do you know what I'm doing wrong? Many thanks. _

[PyQt] Bug QSqlRelationalTableModel? Database numeric NULL fields reported as zero

2010-01-21 Thread bar tomas
Hi, I've noticed that QSqlRelationalTableModel reports numeric null fields as zero. I wonder if this is a bug. What is the simplest way to change this behaviour to set NULL values to blank instead of zero when they are displayed? Many thanks. ___ PyQt

Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
Many thanks. it works now. On Thu, Jan 21, 2010 at 3:09 PM, Phil Thompson wrote: > On Thu, 21 Jan 2010 15:05:56 +0000, bar tomas wrote: >> Many thanks for your help. I've corrected the code following your >> suggestion, but the test method still does not get called, althoug

Re: [PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
ot;), self.test) def test(self, record): print "test" I was wondering, it is the QSqlRelationalTableModel object that emits the beforeInsert signal, or have I got that wrong? Thanks again On Thu, Jan 21, 2010 at 1:43 PM, Phil Thompson wrote: > On Thu, 21 Jan 2010 13:38:45 +0

[PyQt] Problem using signal beforeInsert

2010-01-21 Thread bar tomas
Hi, I've created a QDataWidgetMapper that uses a QSqlRelationalTableModel to edit the records of database table. I've tried using the signal beforeInsert to do some validation before the data is submitted to the database but I have a problem intercepting the signal (the slot method test just neve

[PyQt] MYSQL driver problem

2010-01-01 Thread bar tomas
Hi, I installed the PyQt 4.6 for Python 2.6 binary bundle for windows. I'm also using Mysql 5.1. I can connect to a Mysql database with PyQt. But when trying to execute a query I get the following error message (captured through lastError()) Using unsupported buffer type: 12 (parameter: 3) I am