[PyQt] SIP 4.8.2 And Snow Leopard

2009-09-04 Thread Thomas Mansencal
Hello, I'm trying to Build SIP 4.8.2 on Snow Leopard to update all my PyQt Installation and I'm encountering an error during the Make. Here is the Configure part : Lilith:sip-4.8.2 KelSolaar$ python configure.py This is SIP 4.8.2 for Python 2.6.2 on darwin. The SIP code generator will be

Re: [PyQt] A simple way to add another column to QComboBox?

2009-09-04 Thread David Boddie
On Thu Sep 3 22:00:52 BST 2009, Adam W. wrote: I have a standard QComboBox displaying about 25 text based items right now, left aligned. What I want to do is display a bool status for the same items and have it right aligned in the child list box (preferably display in the list view only

Re: [PyQt] PyQt, GStreamer gobject MainLoop

2009-09-04 Thread David Boddie
On Thu Sep 3 19:35:55 BST 2009, Baz Walter wrote: Pedro Algarvio wrote: I've been google'ing to find some good examples on how to get PyQt and GStreamer's(gobject) main loops working together. it seems to be pretty straightforward. below is a simple audio player adapted from some examples

[PyQt] PyQt on OSX Snow Leopard notes

2009-09-04 Thread William Kyngesburye
For those trying this, here's what I found so far: - gcc compiles 64bit by default now, which will cause problems with the 32bit-only Qt (unless you are using Qt Cocoa). Configure SIP universal so you get a 32bit SIP (the extra PPC code is harmless, except that PyQt will take longer to

Re: [PyQt] PyQt, GStreamer gobject MainLoop

2009-09-04 Thread Baz Walter
David Boddie wrote: On Thu Sep 3 19:35:55 BST 2009, Baz Walter wrote: Pedro Algarvio wrote: I've been google'ing to find some good examples on how to get PyQt and GStreamer's(gobject) main loops working together. it seems to be pretty straightforward. below is a simple audio player adapted

[PyQt] Adapting a QTableWidget to display an arbitrary QSqlQuery result set

2009-09-04 Thread Bernard Van Der Stichele
Hi All, I'm just starting out with PyQt. I have a simple app which allows the user to enter execute select queries against any arbitrary table/s in a database. I want to display the results in a sortable grid, such as a QTableWidget. The question is how do I go about re-sizing the table based

[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

Re: [PyQt] A simple way to add another column to QComboBox?

2009-09-04 Thread Adam W.
Thanks for the response. I have also tried replacing the listview with a tableview, and have not like the results too much.  For instance, I could never figure out how to hide the headers. In your example code the view.header().hide() function returns AttributeError: 'QTableView' object has no

Re: [PyQt] A simple way to add another column to QComboBox?

2009-09-04 Thread David Boddie
On Fri Sep 4 22:52:39 BST 2009, Adam W. wrote: I have also tried replacing the listview with a tableview, and have not like the results too much. For instance, I could never figure out how to hide the headers. In your example code the view.header().hide() function returns AttributeError:

[PyQt] A simple question about signals and slots

2009-09-04 Thread William
Hi! I have what I hope is a simple question about signals and slots. As I understand it, if events aren't acted upon, then they propogate upwards. But suppose you have something like this: A / \ B C Where B and C are children of A. How does B send a signal to C? I'd like to

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

2009-09-04 Thread David Boddie
On Fri Sep 4 21:23:32 BST 2009, 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

Re: [PyQt] Adapting a QTableWidget to display an arbitrary QSqlQuery result set

2009-09-04 Thread David Boddie
On Fri Sep 4 19:54:29 BST 2009, Bernard Van Der Stichele wrote: I have a simple app which allows the user to enter execute select queries against any arbitrary table/s in a database. I want to display the results in a sortable grid, such as a QTableWidget. The question is how do I go about

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread Phil Thompson
On Fri, 4 Sep 2009 15:38:23 -0700 (PDT), William abecedarian314...@yahoo.com wrote: Hi! I have what I hope is a simple question about signals and slots. As I understand it, if events aren't acted upon, then they propogate upwards. But suppose you have something like this: A / \

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread Adam W.
I keep forgetting to CC the newsgroup... Anyway, I think you're still melting the two terms together. what I'm asking is if there's a mechanism in pyqt to emit an event in B What you want to do is connect the signal from B to slot C, and signal C to slot B in the namespace of A, not in the

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread William
Phil you are correct--thanks--life is much easier than I thought! From: Phil Thompson p...@riverbankcomputing.com To: William abecedarian314...@yahoo.com Cc: pyqt@riverbankcomputing.com Sent: Friday, September 4, 2009 7:36:10 PM Subject: Re: [PyQt] A simple

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread William
Adam and Phil, thanks for your time. I think I almost understand--but, I still have some confusion. Adam, if I follow your suggestion, then parents must really know their children well in order for signalling to work. Which can be the case sometimes. But, what I would like is: B generates

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread Adam W.
So, the question is, whether or not there's a common bus/dispatcher in which B can put some information and whoever wants to be triggered by it, can? If you have an event in B, the only thing that can handle it is B, and if not B, then A gets a shot at it, I don't know how you plan on getting

Re: [PyQt] A simple question about signals and slots

2009-09-04 Thread David Boddie
On Sat Sep 5 01:42:59 BST 2009, William wrote: But, if I generate an EVENT (sorry for the language sloppiness earlier) B, it will go up to A and disappear, unless I propagate it down to the leaves (which could be dangerous). So, the question is, whether or not there's a common

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

2009-09-04 Thread Scott Frankel
On Sep 4, 2009, at 1:23 PM, 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