[PyQt] Build a windows exe from a gui+database application
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 What can i do to get a working exe ? Do anybody has a working setup.py to use with py2exe ? Would be easiest with another tool ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Can't connect to mysql on Windows
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 behavior ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Can't connect to mysql on Windows
2009/11/26, Phil Thompson : > On Thu, 26 Nov 2009 10:59:21 -0300, Mario Daniel Carugno > 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: >> >> "Qt (with database support for MySQL, PostgreSQL, SQLite3 and ODBC)" >> >> But my program do not connect using QMYSQL or QMYSQL3 drivers (with >> QODBC3 runs fine) >> Looking at C:\Python25\Lib\site-packages\PyQt4\plugins\sqldrivers >> there's no library for mysql >> Thats why my program do not connect, i guess. >> >> So, do pyqt4.4.3 have mysql support or not ? > > To be honest, I can't remember. > >> Do i have to compile that driver ? > > ...and Qt and PyQt. > > Phil > Thank you for the fast response Phil Do you know if the version for python2.6 has that driver compiled ? Compiling Qt, PyQt and QMysql seems too much to get just a driver... Does anybody have a compiled qmysql driver (for XP) to send me please ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Can't connect to mysql on Windows
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 runs fine) Looking at C:\Python25\Lib\site-packages\PyQt4\plugins\sqldrivers there's no library for mysql Thats why my program do not connect, i guess. So, do pyqt4.4.3 have mysql support or not ? Do i have to compile that driver ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??
2009/9/5 Andreas Pakulat : > 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 and display it, in order to know what happened: >> >> query = QSqlQuery() >> query.prepare("insert inta table (name) values ('myname')") # note >> that 'inta' is an error >> query.exec_() >> if query.isActive() == False: >> print "ERRSQL " + str(g_session.db.lastError().text()) >> >> And this do not work ! It is not displaying any text. >> To get it work, i must get the error string BEFORE the execution of the >> query !! >> >> query = QSqlQuery() >> query.prepare("insert inta table (name) values ('myname')") # i made >> an erroneous sql >> query.exec_() >> errorstr = str(query.lastError().text()) >> if query.isActive() == False: >> print "ERRSQL " + errorstr >> >> Is that behavior normal ?? > > Yes. > >> How can PyQt get the error's text BEFORE executing the sql statement ? > > It doesn't. The errors is fetched _after_ executing the sql statement > because you're executing the sql statement in the line that calls > exec_(). If you look at the API docs it pretty clearly states that > this method executes the prepared sql statement. > > The reason the error can be fetched at this point already is because > there's a syntax error in your SQL, thats usually checked very very > early during statement execution, hence after the exec_() call the error > is already set. > > If you'd have a long-running query (huge resultset from a select) and > that throws some kind of error way after it was started you'd probably > get the error only after isActive returns false. > So it means that sometimes i must get error strings before exec_() and sometimes i have to do it after exec_() ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??
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. > Aren't you calling the QSqlDatabase's query method here? Yes, I've tried with the QSqlDatabase object too, but it's the same. ** To Scott ** > I only use query.prepare() on rare occasions when I need to use > addBindValue() to achieve automagic character escaping That's the way i've started, but the data comes from user input, and I don't know when it will need to be escaped, so i must use addBind everywhere. Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QSql lastError() must be called BEFORE exec_() ??
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 (name) values ('myname')") # note that 'inta' is an error query.exec_() if query.isActive() == False: print "ERRSQL " + str(g_session.db.lastError().text()) And this do not work ! It is not displaying any text. To get it work, i must get the error string BEFORE the execution of the query !! query = QSqlQuery() query.prepare("insert inta table (name) values ('myname')") # i made an erroneous sql query.exec_() errorstr = str(query.lastError().text()) if query.isActive() == False: print "ERRSQL " + errorstr Is that behavior normal ?? How can PyQt get the error's text BEFORE executing the sql statement ? This is very strange for me, don't you think ? It toke to me a long time to figure out how that works, because it don't seems to be logic. I mean, it's supposed that errors can be catched AFTER the execution of a statement, not BEFORE. Well, i just would like to hear why this works that way, if someone can explain it properly. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Re: missing sql drivers
2009/8/18 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 error: > > QSqlDatabase: QODBC driver not loaded > QSqlDatabase: available drivers: > QSqlDatabase::prepare: database not open > > It seems that the PyQt installation has no sql drivers, but it's the > same installation that works in the other computers. Besides i've > checked out \Python25\Lib\site-packages\PyQt4\plugins\sqldrivers and > there are DLLs (qsqlodbc4.dll and others). > > The path is ok, the ODBC source is configured. > The application shows the GUI, but it don't find any sql driver. > > Some idea about what could be wrong ? > Fixed by uninstalling everything, deleting the python25 directory, and reinstalling everything again... I'll never understand why this ugly method always works ;-) Regards ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] missing sql drivers
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 error: QSqlDatabase: QODBC driver not loaded QSqlDatabase: available drivers: QSqlDatabase::prepare: database not open It seems that the PyQt installation has no sql drivers, but it's the same installation that works in the other computers. Besides i've checked out \Python25\Lib\site-packages\PyQt4\plugins\sqldrivers and there are DLLs (qsqlodbc4.dll and others). The path is ok, the ODBC source is configured. The application shows the GUI, but it don't find any sql driver. Some idea about what could be wrong ? Thanks === >>> Mario D Carugno <<< === ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Re: Very slow Eric editor on large files
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 mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] memory can't be "read"
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 seen this error before, i think it's a common issue on windows. Do anybody know how to solve it ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] unsupported buffer type
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 be a mysql error ? Has someone faced it ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QTableWidgetItem editingFinished
2009/7/6 simozack : > It works exactly like the QLineEdit, because the widget it calls IS a > QLineEdit (really not always: if it is a number it calls a QSpinBox or > a QDoubleSpinBox, if it is a date a QDateEdit or a QDateTimeEdit > etc...). > > The widget is returned by the function QTableWidget.itemDelegate(). > Thank you for help. Do that mean that i must create a model to handle that ? I'm a newbie yet, it sounds very difficult to me. Anyway, I guess i need to learn more on that topic, thank you Simozack ! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QTableWidgetItem editingFinished
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 save changes to storage system. Is there some signal emited for that ? Something wich works like editingFinished for Line Inputs, but i can't find something like that for Table Widget Items. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] python vs qt4 datatypes
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 seems to bring a lot of datatype convertions, thus in that case i could choose mysqldb, which uses python datatypes. Is that approach better than use all from PyQT ? I feel that python datatypes has more and better methods and functions, and that processing data in native types is always better. What approach could i take to solve this ? I'm locked with this. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] using myodbc
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 want a ready to use binary driver. The ODBC driver is compiled in qt for windows, so all i want to know is if i can use it to connect with the odbc-mysql driver (myodbc) on windows, and access mysql via odbc. Please, i need help on this, better from people who have done this in practice and saw it working. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] trap ESC in mapper editing
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 ESC, i'm not in editing mode anymore, so i need to enable that buttons back. How i detect the moment when i press ESC in a mapper form ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] press ESC while editing mapper
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'. When i'm editing and press the ESC key, the editing finishes and changes are reverted. Thats OK, but when i press ESC, i want the same functionality of the 'rollback' method, not just revert and quit edit mode. So, while i'm editing, i need to connect the ESC key to the 'rollback' method. And disconnect it after done. Is this possible ? How can i get it ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] reference to container widget
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 ? To the Form, Framework is not a parent. But it's a container. Suppose that Framework has a widget named 'labelModuleName', how can i write in that widget, but from the Form class ? This is the imaginay pseudocode: class Form: def __init__(self): self.CONTAINER.labelModuleName.setText("Form Module") ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Eric4 buggy
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 version 4.3 Always the same thing And eric was buggy in early versions too, sometimes it closes itself, for instance. Why is eric so buggy ? Do anybody know some 'stable' version of eric ? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] mysql driver on windows
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 compile the plugin for mysql support, but i don't know how hard is it. I see many people asking for help with that, so it seems to be hard to get it working. What would be better ? Use PyQt DB support and compile the mysql driver for windows ? or forget about it and use just mysqldb ? Thank you all ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] derive from a designer widget
2009/3/13, Andreas Pakulat : > > 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 another is something different than > adding a widget to a parent widget. What about this ? #!/bin/env python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class Frame(QDialog): def __init__(self): QDialog.__init__(self) pass class GUI(Frame): def __init__(self): Frame.__init__(self) b = QLabel("HOLA") l = QVBoxLayout() l.addWidget(b) self.setLayout(l) if __name__ == "__main__": app = QApplication(sys.argv) ui = GUI() ui.show() app.exec_() This snippet creates a Frame and a widget as a subclass of it. This is enough to make the widget appear into the Frame I want to achieve that, but with Frame being a compound widget with its central area, and that area being the default 'container' to hold derived widgets. I note that one problem with this using designer, is that designer creates widgets subclassing 'object' instead of 'QWidget' or 'QDialog'. With the main form derived from 'object' i can't make the above subclassing example. Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] derive from a designer widget
2009/3/12 Mario Daniel Carugno : > 2009/3/12 Andreas Pakulat : >>> Thank you Andreas, i'll try it. Just in case, do you have some example >>> of that ? >> >> Its pretty easy (from the top of my head, so might not work right away, but >> you should get the idea) >> >> class MyMainWindow(QMainWindow): >> def __init__(self,parent): >> QMainWindow.__init__(self,parent) >> self.ui = Ui_MainWindow() >> self.ui.setupUi(this) >> >> class MyCustomMainWindow(MyMainWindow): >> def __init__(self,parent): >> MyMainWindow.__init__(self,parent) >> self.mybutton = QPushButton(self.ui.centralFrame) >> > > Great ! Thank you very much > I've tried the example, and that's not exactly what i need. But it helped me to get a better idea of what i want. Ok, i want to design a 'main window' with navigation buttons and a central area. Then i design a separate widget 'data' (the records to show) to put in the main window's central area. But how to put it there and 'integrate' both ? That's the hard point. 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 ? Well, this is the same case, execpt that i want the child to appear into a *specific* widget of its parent. BTW, Andreas, your example helped me a lot, thank you. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] derive from a designer widget
2009/3/12 Andreas Pakulat : >> Thank you Andreas, i'll try it. Just in case, do you have some example >> of that ? > > Its pretty easy (from the top of my head, so might not work right away, but > you should get the idea) > > class MyMainWindow(QMainWindow): > def __init__(self,parent): > QMainWindow.__init__(self,parent) > self.ui = Ui_MainWindow() > self.ui.setupUi(this) > > class MyCustomMainWindow(MyMainWindow): > def __init__(self,parent): > MyMainWindow.__init__(self,parent) > self.mybutton = QPushButton(self.ui.centralFrame) > Great ! Thank you very much ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] derive from a designer widget
2009/3/11 Andreas Pakulat : > 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 remember i could derive my widget from another one made with >> designer, but that is >> not possible in QT4. That the behaviour i want. > > You can still do the same thing, except that you'll additionally need a > python class subclassing QMainWindow that loads the ui from the designer > form. Then you can create subclasses from that and set the central > widget. If the form is a member of your base class you can also access > it and all widgets from the subclass. > Thank you Andreas, i'll try it. Just in case, do you have some example of that ? Regards ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] derive from a designer widget
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 and so on. I need then to 'mix' both widgets, or add the data widget into the generic frame. Damn it, i couldn't express it better >:-[ In QT3 remember i could derive my widget from another one made with designer, but that is not possible in QT4. That the behaviour i want. I want to access the widgets in the parent (the generic main window) and the widgets in the inner area, as they belongs to the same object. Sorry, english is not my tongue and this is hard to explain for me. The idea is to design a generic main window that could be reused, and just add a custom widget in the middle of it, but integrating the widgets of both in the program. Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] ODBC/MySql driver
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 and windows only changing the line where specify the driver to use ? Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Embed widget in a container
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 Customers, a module for Products, another for Invoicing and so on. Now, i want that each module have it's own gui. I design each module's gui independently and could be run alone. But i also want to design a main frame, with a menu to load each module into its central area. Clear at this point ? So, i need to load dinamically a module's gui into the central area of the main workspace. I want that kind of modularity in my app, but i don't know what to read or what topics must i search to get that knowledge. Please could give some background on this, or tell me what to read or search ? Thank you so much Mario ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] mem error in windows
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") db.setPassword("mypassw") if not db.open(): txt = db.lastError().text() print unicode(txt) sys.exit() qry = QtSql.QSqlQuery() qry.exec_( "select id from mytable where id = 20" ) if qry.next(): a = qry.value(0).toInt() print a I run it and executes (it prints the value of a) but then the following error appears: the instruction at "0x00ea2acf" referenced memory at "0x01013f20". The memory could not be "read". What's the problem ? Any idea ? Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] mysql in pyqt4 for windows
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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QMYSQL3 driver on Windows
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 ? Please, don't tell me i have to compile all qt3 in windows :-/ Thanks ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] no printers in QPrinter.setup()
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 configure something else ? Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] signal autoconnect with eric4
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 this don't work ? Thank you ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] eric3 and designer-qt4
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 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] DataTable layout problem
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 it from pyqt, i have the following warnings: "An error ocurred when accesing the datatable" And it seems to be a layout problem because if i break the form's layout, it works. I was googling but do not find any help. I'm new to pyqt and i like it a lot, so i hope this would be an obvious and known mistake. Thank you all Mario ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt