[PyQt] Build a windows exe from a gui+database application

2010-05-29 Thread Mario Daniel Carugno
Hi there I'm trying py2exe to build an .exe for windows XP, from a PyQt4 with database (mysql) access. After follow all steps, resolve problems by googling, i end with a exe that works, but when i run a module that connects with mysql, i get the error: Driver not loaded Driver not loaded

[PyQt] Can't connect to mysql on Windows

2009-11-26 Thread Mario Daniel Carugno
Hi there, I've downloaded the latest pyqt for python 2.5 (PyQt-Py2.5-gpl-4.4.3-1.exe) The notes says that this binary package has support for MySql: Qt (with database support for MySQL, PostgreSQL, SQLite3 and ODBC) But my program do not connect using QMYSQL or QMYSQL3 drivers (with QODBC3

Re: [PyQt] Can't connect to mysql on Windows

2009-11-26 Thread Mario Daniel Carugno
2009/11/26, Phil Thompson p...@riverbankcomputing.com: On Thu, 26 Nov 2009 10:59:21 -0300, Mario Daniel Carugno carug...@gmail.com wrote: Hi there, I've downloaded the latest pyqt for python 2.5 (PyQt-Py2.5-gpl-4.4.3-1.exe) The notes says that this binary package has support for MySql

Re: [PyQt] Can't connect to mysql on Windows

2009-11-26 Thread Mario Daniel Carugno
I've installed Python2.6 and PyQt-Py2.6 Running the same program that works with PyQt-Py2.5, now using QMYSQL driver, I've got the following error: connection 'qt_sql_default_connection' is still in use, all queries will cease to work Any idea ? PD: Sorry Phil, it was that gmail's replying

Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??

2009-09-05 Thread Mario Daniel Carugno
Thanks for replies. First i'd like to make sure if that''s the normal behavior or not. Can you confirm please ? ** To David ** Here you get the error string after execution! Sorry, the order of the lines is: errorstr = str(query.lastError().text()) query.exec_() But the problem is there.

Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??

2009-09-05 Thread Mario Daniel Carugno
2009/9/5 Andreas Pakulat ap...@gmx.de: On 04.09.09 17:23:32, Mario Daniel Carugno wrote: Hi list, i'm coding my first PyQt4-Sql application, and i can't understand a strange behavior. I'll write a snippet of code with an erroneous Sql syntax, and i hope then to catch the error text

[PyQt] QSql lastError() must be called BEFORE exec_() ??

2009-09-04 Thread Mario Daniel Carugno
Hi list, i'm coding my first PyQt4-Sql application, and i can't understand a strange behavior. I'll write a snippet of code with an erroneous Sql syntax, and i hope then to catch the error text and display it, in order to know what happened: query = QSqlQuery() query.prepare(insert inta table

[PyQt] Re: missing sql drivers

2009-08-19 Thread Mario Daniel Carugno
2009/8/18 Mario Daniel Carugno carug...@gmail.com: Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows. That release has sql support, and i use the ODBC driver. I know it works since i use this same release in another Windows machines. But in this particular computer, when i run

[PyQt] missing sql drivers

2009-08-18 Thread Mario Daniel Carugno
Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows. That release has sql support, and i use the ODBC driver. I know it works since i use this same release in another Windows machines. But in this particular computer, when i run the same code that works in the others, i get the following

Re: [PyQt] Re: Very slow Eric editor on large files

2009-07-22 Thread Mario Daniel Carugno
I guess Eric is a complex application, and Python is not the best option to write applications to run fast (Eric is written in Python as you probably know). I don't like Eric for that reason. Use kate or a better editor, VIM ;-) Good luck === Mario D Carugno ===

[PyQt] memory can't be read

2009-07-10 Thread Mario Daniel Carugno
Hello, i was trying to run a pyqt application on windows. It works, but when i close it, the following error appears: The instruction at 0x018f9098 references memory at 0x00a8c448. The memory can't be read The message could be not exact in english since i'm translating it from spanish. I've

[PyQt] unsupported buffer type

2009-07-07 Thread Mario Daniel Carugno
Hi there, i have a little problem with my PyQt development. It uses MySQL. Under Linux, everything is fine. Under Windows... the first query it tries gives an error like this: # using unsupported buffer type: 253 I'm using the latest pyqt binary for windows with Python 2.6 and Mysql 5.0. Could

[PyQt] QTableWidgetItem editingFinished

2009-07-06 Thread Mario Daniel Carugno
Hi list, i have a little problem here. I setup a QTableWidget with editable items. When i press ENTER or doubleclick on an item, it becomes editable. After edit, when i press ENTER again, editing ends. I need to trap that last event. I need to do something when user press ENTER after editing, to

[PyQt] python vs qt4 datatypes

2009-06-24 Thread Mario Daniel Carugno
Hi there I'm starting with a pyqt development, a database application (what original). I can't decide which datatypes and sql library to use. I mean, is it better to use python datatypes (str, int, bool) or qt4 datatypes (qstring, ...) ? If i use python datatypes, using pyqt4-sql to access data

[PyQt] using myodbc

2009-04-17 Thread Mario Daniel Carugno
Hi there, i'm developing a mysql based application and pyqt. The qt version is 4.3 or higher On linux, there is no problem. I have the compiled mysql driver. Now, if i want to run it on windows, i know that i can compile qt with mysql support. But i don't want to compile the qt lib on windows. I

[PyQt] press ESC while editing mapper

2009-03-19 Thread Mario Daniel Carugno
Hi there I'm doing a dialog with a sql data form and it's OK/Cancel buttons. The data is managed with model/mapper I connect the button's cancel.clicked() signal to a method that reverts changes, quits editing mode, and do more things like enabling some widgets back. Call that method 'rollback'.

[PyQt] trap ESC in mapper editing

2009-03-19 Thread Mario Daniel Carugno
I'm isolating my problem with mapper. When i setup a mapper, the ESC key reverts changes in the edited widgets. That's ok, but i need to trap that situation. I need to do more than revert changes when i press ESC. For instance, before going into editing mode i disable some buttons. When i press

[PyQt] reference to container widget

2009-03-18 Thread Mario Daniel Carugno
Hi, given this code: ... child = Form() app = Framework(child) ... Ok, Form is a grid of data, and Framework includes it with addWidget. class Framework: def __init__(self, child): ... self.layout.addWidget(child) Now, can i reference a Framework's widget from a Form's instance

[PyQt] Eric4 buggy

2009-03-16 Thread Mario Daniel Carugno
Hi, i'm trying eric4 and seems too buggy. Now i configure options, but every time i start Eric, configuration is lost and i get the dialog: eric4 has not been configured yet. The configuration dialog will be started I tried with version 4.1 from debian testing, but also i've downloaded the last

[PyQt] mysql driver on windows

2009-03-15 Thread Mario Daniel Carugno
Hi, i'm developing a pyqt application and need to decide if i'll use pyqt's database support or mysqldb. The point is that the application must be abel to run in Linux and Windows, and connect to mysql. In linux, no problems. But in windows the odbc plugin don't works with mysql. I know i can

Re: [PyQt] derive from a designer widget

2009-03-13 Thread Mario Daniel Carugno
2009/3/13, Andreas Pakulat ap...@gmx.de: I want that it could be as simple as derivating the 'data' class from the 'main window' class. I've read that derivating a widget from another one, makes that widget to appear inside it's parent, right ? No thats wrong. Deriving one class from

[PyQt] derive from a designer widget

2009-03-11 Thread Mario Daniel Carugno
Hi, i'm using pytq4 + designer4. I want to design a generic main window with common buttons (next, previous, new, edit, ...) with a central area for data. That central area could be a frame. But i want to design widgets to fill that frame independently. One widget for products, other for customers

Re: [PyQt] derive from a designer widget

2009-03-11 Thread Mario Daniel Carugno
2009/3/11 Andreas Pakulat ap...@gmx.de: On 11.03.09 16:55:11, Mario Daniel Carugno wrote: Hi, i'm using pytq4 + designer4. I want to design a generic main window with common buttons (next, previous, new, edit, ...) with a central area for data. That central area could be a frame. In QT3

[PyQt] ODBC/MySql driver

2009-03-09 Thread Mario Daniel Carugno
Hi there, i'm developing an application under Linux, where i can use the mysql driver. But if i want that app to run in Windows too, there PyQt do not have (compiled) that driver but the ODBC. So, if i'd write only simple SQL queries, not using specific db functions, could that app run in linux

[PyQt] Embed widget in a container

2009-02-27 Thread Mario Daniel Carugno
Hi, i'm new in this list and new to pyqt too. I'm trying to develop my first gui application, and have some questions. I hope to make the correct questions. Please tell me if i'm going wrong. Well, i want to develop a tipical bussiness app, and think to divide all in modules. A module for

[PyQt] mem error in windows

2008-03-06 Thread Mario Daniel Carugno
Hi, i've installed pyqt4 + python2.5 in windows, and wrote a small script to test ODBC access to a MySQL table. The script is: from PyQt4 import QtSql import sys db = QtSql.QSqlDatabase.addDatabase(QODBC) db.setDatabaseName(dnsMySQL) db.setHostName(localhost) db.setUserName(myuser)

[PyQt] mysql in pyqt4 for windows

2008-03-05 Thread Mario Daniel Carugno
I've downloaded the pyqt4 binary package for windows, and comes with sql drivers for odbc and sqlite3. I need the mysql driver. Can it be installed easy or do i have to compile qt libs ? How can i get it ? Thank you ___ PyQt mailing list

[PyQt] no printers in QPrinter.setup()

2008-03-02 Thread Mario Daniel Carugno
Hi, i have a problem with printers. When i run QPrinter.setup() no printers are listed in the dialog. But with KDE printer dialogs, they are there. I use it in Debian Etch, but even worse, in another machine with Debian Etch, QPrinter.setup() shows the printers ! Do i have to install or

[PyQt] QMYSQL3 driver on Windows

2008-03-02 Thread Mario Daniel Carugno
Hi, i was looking for a pyqt3 for windows binary package, and i found it. I've installed and works. I can run my pyqt3 programs developed in linux. But in the windows version seems to have no database drivers. I need the QMYSQL3 or at least QODBC3 for the windows version. So, how can i get them ?

[PyQt] signal autoconnect with eric4

2008-02-06 Thread Mario Daniel Carugno
Hi, now i know that with eric4 i must use the 'Generate Dialog Code' instead of subclassing. I use this and check the option to generate a function for a 'button clicked' event, and then i put some print inside of that function to see if it works, but nothing happen when i click the button. Why

[PyQt] eric3 and designer-qt4

2008-02-05 Thread Mario Daniel Carugno
Hi there, i'm trying eric3 with designer-qt4. I develop some dialog with designer, and compile it from eric3, but i can't subclass it. The option is grayed, why ? Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] DataTable layout problem

2008-01-29 Thread Mario Daniel Carugno
Hi there, mi name is Mario and i'm starting with pyqt3. Until now everything was quite easy en clear, but i'm with a problem i can't solve. I use designer to draw an interface with a DataTable. I make the connection and works fine in the designer's preview. I can see table's data. But when i run