Re: [PyQt] (no subject)

2012-05-26 Thread Sibylle Koczian
Am 22.05.2012 00:15, schrieb Erik Janssens: you could give Camelot a try ... http://www.python-camelot.com/ Is Camelot usable with Python 3? I can't find out for sure from the website, but I suspect it's not (Windows installer only for Python 2.7). Thank you, Sibylle

[PyQt] QStandardItemModel: problems with non-string data

2012-07-04 Thread Sibylle Koczian
Hello, I want to show records containing a numeric field and a date field in a QTableView connected to a QStandardItemModel. The numeric field: if that gets its value from a floating point literal, this value is displayed in the view. If the value comes from a database table the view column

[PyQt] Model/view: values of type Decimal not shown

2012-07-26 Thread Sibylle Koczian
Hello, I don't know how to get numeric data from my model to my GUI, if they aren't floats but decimal.Decimal. In the following example the last column of the view and the last QLineEdit of the form both stay empty. The model data are printed to the console and it can be seen that the model

[PyKDE] Python und GUI-Toolkits

2004-06-02 Thread Sibylle Koczian
.3.1-36.5, running under SuSE Linux 9.1. I hear SIPv4 should solve both problems, but I don't see how that update can get round the fact of the circular reference. Koczian Dr. Sibylle Koczian Universitaetsbibliothek, Abt. Naturwiss. D-86135 Augsburg Tel.:

[PyKDE] QListbox: SetColumnMode(int)

2004-06-30 Thread Sibylle Koczian
nd I suspect the problem might lie here. Using PyQt 3.12, sip 4.0, Python 2.3.3 on SuSE Linux 9.1. How can I set the number of columns in a listbox to a fixed value greater than 1? Thank you, Koczian Dr. Sibylle Koczian Universitaetsbibliothek, Abt. Naturwiss. D-86135 Augsburg Tel.: (0821

[PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-20 Thread Sibylle Koczian
2.6, PyQt 4.4.4. Thank you for help, Sibylle -- Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread Sibylle Koczian
"Mads Ipsen" schrieb: > Sibylle Koczian wrote: > > Hello, > > > > I've got a dialog with a QLineEdit and a QPushButton. The QLineEdit is > > connected to a method which takes its text and appends it to a > > QTextBrowser (that's taken

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-23 Thread Sibylle Koczian
Mads Ipsen schrieb: > projetmbc wrote: >> Mads Ipsen a écrit : >>> If you change 'QDialog' to 'QWidget' the problem disappears. But I >>> have no idea why. Anybody? >>> >>> Best regards, >>> >>> Mads >> In the first example proposed that did not work, you can see that the >> button has the focus ev

[PyQt] Re: Pressing enter in QLineEdit clicks QPushButton?

2009-06-24 Thread Sibylle Koczian
> Message: 1 > Date: Tue, 23 Jun 2009 14:41:20 +0200 > From: "V. Armando Sol?" > Subject: Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton? > To: Mads Ipsen > Cc: Sibylle Koczian ,PyQt-Liste > > > Mads Ipsen wrote: >> rom the manual

[PyQt] Subclassing QSqlQueryModel, making one column checkable

2009-08-16 Thread Sibylle Koczian
role=QtCore.Qt.EditRole): ##if index.column() == 1 and role == QtCore.Qt.CheckStateRole: ##chk = value.toBool() ##if chk: ##??? (check item, but how?) Thank you for all hints, Sibylle -- Sibylle Koczian ___

[PyQt] PyQt4.QtCore not a valid Win32 application - with windows installer

2010-01-03 Thread Sibylle Koczian
w saying Python 3.1. "doesn't seem to be installed" - but it's there, in C:\Python31, and afterwards it was found without manual intervention. What's the matter here? Thank you, Sibylle -- Dr. Sibylle Koczian

Re: [PyQt] PyQt4.QtCore not a valid Win32 application - with windowsinstaller

2010-01-10 Thread Sibylle Koczian
Hello, I posted this a week ago, but didn't get any answer at all. So I'm trying again, because I really would like to use PyQt again, and I'd definitely prefer the Windows installer, if at all possible. Sibylle Koczian schrieb: Hello, trying to import PyQt4.QtCore I ge

[PyKDE] "sender" info in Python slot

2006-11-09 Thread Sibylle Koczian
bility, but is there a simpler way? Using PyQt 4 with Python 2.4. Thank you, Koczian -- Dr. Sibylle Koczian Fasanenstrasse 12 D-82293 Mittelstetten ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Re: "sender" info in Python slot

2006-11-11 Thread Sibylle Koczian
Hello, I'm choosing this post to answer, because it contains the other possibilities. Jeremy Sanders wrote: > > On Thu, 9 Nov 2006, Andreas Pakulat wrote: > > > On 09.11.06 16:43:00, Sibylle Koczian wrote: > >> hopefully the subject line isn't too misleading.

[PyKDE] Re: "sender" info in Python slot

2006-11-12 Thread Sibylle Koczian
ing it down should help, thanks for the tip. In the meantime I got a python translation of the "ButtonWidget" example in the C++ docs to run, there I'd made quite a simple error. Sibylle -- Dr. Sibylle Koczian Fasanenstrasse 12 D-82293 Mittelstetten ___

[PyKDE] Small database application - best way?

2006-11-19 Thread Sibylle Koczian
Hello, I'm trying to migrate a small database application originally written in Delphi 6.0 to Python. It's for my own use, so it needs a GUI only for some parts. For these parts I'd like to use PyQt, but at the moment I don't really see my way. The first problem I'm trying to solve: The main wind

Re: [PyKDE] Small database application - best way?

2006-11-27 Thread Sibylle Koczian
Very sorry: that should have gone to the list! Koczian "David Boddie" <[EMAIL PROTECTED]> schrieb: > On 21 Nov 2006 10:29 GMT, Sibylle Koczian wrote: > >"David Boddie" <[EMAIL PROTECTED]> schrieb: > > >> Have you put the QTableView in a layou

Re: [PyKDE] Small database application - best way?

2006-11-28 Thread Sibylle Koczian
"Matt Newell" <[EMAIL PROTECTED]> schrieb: > On Monday 27 November 2006 00:50, Sibylle Koczian wrote: > snipped... > > Double clicking, pressing F2 or Enter in a cell in one of the editable > > columns doesn't select the text of this cell, as it does in

[PyKDE] Model-View application: view not updated

2006-12-15 Thread Sibylle Koczian
Hello, I'm slowly progressing with my small database application, which means that I've got a new question. In its present state the application contains a QTableView with a model subclassed from QAbstractTableModel. I used the sqlcursorview.py example from the EuroPython 2006 examples and extend

Re: [PyKDE] Model-View application: view not updated

2006-12-16 Thread Sibylle Koczian
"Andreas Pakulat" <[EMAIL PROTECTED]> schrieb: > On 15.12.06 16:17:21, Sibylle Koczian wrote: > > The problem is with the cancel button: the changed records are only > > changed back after the window lost focus - the view isn't updated > > directly after

Re: [PyKDE] Model-View application: view not updated

2006-12-17 Thread Sibylle Koczian
, as far as I can see (Synaptic says "PostgreSQL, MySQL, SQLite"). Qt4's configure: that would be the configure step as in "configure / make / make install", right? At the moment I'm playing with a SQLite database containing part of my data. So I could try out the SQL mo

Re: [PyKDE] Model-View application: view not updated

2006-12-19 Thread Sibylle Koczian
ill take time. I've learnt the basics years ago, but then I got a Delphi 1 Demo CD and that was that (Python came much later). Sibylle -- Dr. Sibylle Koczian Fasanenstraße 12 D-82293 Mittelstetten ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QLayout parent

2007-01-28 Thread Sibylle Koczian
dLayout. The documentation says "addChildLayout is called from addLayout" - and I suppose addLayout does more than just this call. Trying your example with this change worked for me, at all events. HTH, Sibylle -- Dr. Sibylle Koczian Fasa

Re: [PyKDE] PyQt4 windowIcon

2007-03-04 Thread Sibylle Koczian
Tina I schrieb: "pyuic4" produces this line in my 'gui file': MainWindow.setWindowIcon(QtGui.QIcon("../log.png")) The icon is stored in the same directory as the application it self. I guess I'm missing something, I just don't have any idea what. So if somebody could provide me with a

[PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Sibylle Koczian
emoveDatabase, but that doesn't change anything. What's wrong? Or what additional info should I give? Using qt-4.3.1, PyQt4-4.3.1, Python 2.5.1, Gentoo Linux. Thanks for every hint, Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-12 Thread Sibylle Koczian
ataTable to start with. And I've not used PyQt3 beyond a little playing around with the tutorial. > Am Sonntag, 11. November 2007 schrieb Sibylle Koczian: > > Hello, > > > > I'm trying to write a very small database application, but I can't get > >

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-14 Thread Sibylle Koczian
Am Montag, 12. November 2007 20:55:20 schrieb Hans-Peter Jansen: > Am Montag, 12. November 2007 schrieb Sibylle Koczian: > > So I looked around and saw that I had this: > > > > def main(args): > > app = QtGui.QApplication(args) > > if not vi

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-18 Thread Sibylle Koczian
Am Mittwoch, 14. November 2007 16:13:43 schrieb Sibylle Koczian: > > I will try to find out more: can I put part of the code into main(), but > not all of it? Can I use such a function, if I don't call it "main()"? And > I will certainly use another database backend (f

[PyQt] How to use QButtonGroup?

2007-11-25 Thread Sibylle Koczian
QGroupBox and the QButtonGroup. I have to put each of my radio buttons into the box _and_ into the buttongroup. Right, or did I overlook something? Thank you, Koczian -- Dr. Sibylle Koczian Fasanenstraße 12 82293 Mittelstetten ___ PyQt mailing li

Re: [PyQt] QDataWidgetMapper

2007-11-27 Thread Sibylle Koczian
eEdit controls using a QDataWidgetMapper. That works. Could it be that you can't mix controls using a model directly and controls using a QDataWidgetMapper in the same window? Looks very strange. Just replacing one riddle by a new one, I'm afraid. -- Dr. Sibylle Koczian

Re: [PyQt] How to use QButtonGroup?

2007-11-27 Thread Sibylle Koczian
Am Sonntag, 25. November 2007 23:58:52 schrieb David Boddie: > On Sun Nov 25 14:05:39 GMT 2007, Sibylle Koczian wrote: > > I'm reading the documentation about QButtonGroup and QGroupBox and I > > don't quite understand the relationship between them. > > I think the

Re: [PyQt] QDataWidgetMapper

2007-11-27 Thread Sibylle Koczian
Am Dienstag, 27. November 2007 20:02:51 schrieb Sibylle Koczian: > > I'm just playing with the QDataWidgetMapper myself, so I looked at your > project and tried some changes. Changing the model to a QStandardItemModel, > QSqlQueryModel, QSqlTableModel (with a SQLite memory &

Re: [PyQt] QDataWidgetMapper

2007-12-02 Thread Sibylle Koczian
Hello, Daniel, Am Montag, 26. November 2007 13:59:52 schrieb Daniel Lundqvist: > Hey, > > I've been struggling to get the above to work correctly. I've looked > around but haven't found a solution to my problem yet. > > The issue I'm having is I can't get the mapper to update the widgets at > all.

Re: [PyQt] QDataWidgetMapper

2007-12-03 Thread Sibylle Koczian
Am Montag, 3. Dezember 2007 08:45:43 schrieben Sie: > On Sun, 2007-12-02 at 12:00 +0100, Sibylle Koczian wrote: > > Did you solve your problem? I've tried several variations, but the only > > one that did help was putting your data into a QStandardItemModel. > > Yes,

[PyQt] How to call pyuic4 from Eric?

2007-12-11 Thread Sibylle Koczian
d I subscribe to the Eric mailing list for such questions? Thank you, Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] How to call pyuic4 from Eric?

2007-12-12 Thread Sibylle Koczian
Am Mittwoch, 12. Dezember 2007 08:46:48 schrieb jul: > Hi, > In the project browser, select the form tab and you should directly > compile ui files by selecting "Compile form" in the contextual menu. > This will add a "you_form_name.py" in Python source files browser. > ++ > Jul. > Thanks to you

Re: [PyQt] qtable data source

2007-12-23 Thread Sibylle Koczian
Am Sonntag, 23. Dezember 2007 06:50:44 schrieb nishith datta: > hi all, > I wish to show the output of my sql query in a table. > I am unable to do that. > Can someone point out some resource / example or documentation to help me > out. thanks in advance http://doc.trolltech.com/4.0/sql.htm

[PyQt] QSqlQuery: one parameter in two different places?

2008-01-01 Thread Sibylle Koczian
ry.exec() the update works as expected. Can't I use the same parameter name in two different places of the query, if I want to use the same value twice? Thank you, Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QSqlQuery: one parameter in two different places?

2008-01-02 Thread Sibylle Koczian
which is correct) lastQuery: UPDATE ausgaben SET abrech_datum = :a_datum WHERE abrech_datum IS NULL AND ausg_datum < :b_datum executedQuery: UPDATE ausgaben SET abrech_datum = ? WHERE abrech_datum IS NULL AND ausg_datum < ? Again '?' in place of values fo

[PyQt] QDateEdit keeps me strictly in current month

2008-01-02 Thread Sibylle Koczian
#x27;).arg(newdate)) if __name__ == '__main__': app = QApplication(sys.argv) form = TestDateDlg() form.show() app.exec_() -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt book: problem with database example

2008-01-09 Thread Sibylle Koczian
ion' is still in use, all queries will cease to work." I have had this message in my own programs - it went away, when I didn't define a "main" funktion, but put its content directly under "if __name__ == '__main__':". But I never understood why t

[PyQt] QSqlQuery / Firebird: alternating two prepared queries

2008-01-23 Thread Sibylle Koczian
7;total_value) VALUES (:po_number, :cust_no, ' ':sales_rep, ':total_value)') new_custno = QVariant() for data in newData: # Transaction use 1 #QSqlDatabase.database().transaction() if data.startswith('C'):

Re: [PyQt] Creating an action with a "verbose" signal

2008-01-25 Thread Sibylle Koczian
ct to a lambda function that calls blubb with the action as an > argument. > or import functools ... connect to functools.partial(blubb, filename) -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] How to communicate with mysql?

2008-01-27 Thread Sibylle Koczian
database "test" exist? And is Qt configured with MySQL support? Or did you perhaps call these methods before you had created a QApplication or a QCoreApplication object? That won't work and the error messages aren't very helpful for

[PyQt] View made updatable by trigger - no update in QTableView

2008-01-28 Thread Sibylle Koczian
app = QtGui.QApplication(sys.argv) if not connection_fb.createConnection(): sys.exit(1) editor = TableEditor("phone_list") editor.show() sys.exit(app.exec_()) What is wrong? I will try to reproduce the problem on SQLITE, but that may take a little time. Thank you, Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] problem in

2008-02-09 Thread Sibylle Koczian
;%s' > """ % chosen) > Why not use prepare and bindValue? -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Standard font in PyQt applications (Eric included)

2008-02-13 Thread Sibylle Koczian
can have happened? Which information would be useful? No change of fonts in other applications, including KDE itself. Regards, Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Standard font in PyQt applications (Eric included)

2008-02-14 Thread Sibylle Koczian
hen you can set > fonts for all qt4 apps. > Many thanks, that did it. Sibylle -- Dr. Sibylle Koczian ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QSqlTableModel: how to check the UPDATE statement inside the model?

2008-03-11 Thread Sibylle Koczian
any error messages, but no updates either. INSERT works as expected. If I could execute the UPDATE statement used by the model in the command line client, I might find out what happens - a bug in my trigger is quite probable. But for this I have to know this statement. Can anybody help me?

Re: [PyQt] QSqlTableModel: how to check the UPDATE statement inside the model?

2008-03-17 Thread Sibylle Koczian
Am Dienstag, 11. März 2008 23:11:31 schrieb Hans-Peter Jansen: > Am Dienstag, 11. März 2008 schrieb Sibylle Koczian: > > Hello, > > > > somewhere in the QSqlTableModel code there must be SQL statements for > > UPDATE, INSERT and DELETE, to make the model editable. Righ

[PyQt] Win 7, 64 bit, latest PyQt installer: importing QtGui fails

2013-04-01 Thread Sibylle Koczian
Hello, I've just installed the latest PyQt4 with this installer: http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe Installation seemed to work normally, but now I can't import QtGui: Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC

Re: [PyQt] Win 7, 64 bit, latest PyQt installer: importing QtGui fails

2013-04-01 Thread Sibylle Koczian
Am 01.04.2013 13:43, schrieb Sibylle Koczian: Hello, I've just installed the latest PyQt4 with this installer: http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe Installation seemed to work normally, but now I can't import QtGui: Py

Re: [PyQt] Win 7, 64 bit, latest PyQt installer: importing QtGui fails

2013-04-03 Thread Sibylle Koczian
Am 02.04.2013 10:31, schrieb Phil Thompson: As I have said, I (and presumably most other people) cannot reproduce the problem. One possibility is a missing DLL - try installing a DLL dependency checker to see if that identifies it. Thank you, yes, it did. Installing the DirectX9 end user runt

Re: [PyQt] Camelot 13.04.13 released

2013-04-16 Thread Sibylle Koczian
Am 12.04.2013 12:03, schrieb Erik Janssens: Hello, Camelot 13.04.13 has been released. Camelot provides components to build business applications on top SQLAlchemy and PyQt. For screenshots, see : http://www.python-camelot.com/ An overview of the changes can be found here : http://www.pytho