Re: [PyQt] How to update an QAbstactTableModel

2009-12-09 Thread Felix Schmidt
des...@verizon.net schrieb: Simon Hibbs simon.hi...@gmail.com writes: I've written a stock portfolio tracker in pyqt4. The main window which is a QAbstractTableModel has an Update button. When I click it, the program gets new stock prices and updates the data in the table. My problem is

[PyQt] Question about popup menu

2009-12-09 Thread Nadav Chernin
Hello, i'm new for PyQt I created QTableWidget and some cells in it are DoubleSpins ( i used setCellWidget method) Now i created pop-up menu by overloading: def contextMenuEvent(self, event): The problem that my custom popup menu created only when user make right-click over the Table, but

Re: [PyQt] Freezes and crashes with signal autoconnection

2009-12-09 Thread Phil Thompson
On Tue, 8 Dec 2009 14:10:50 -0800 (PST), Christian Roche christian.roche...@gmail.com wrote: Hi Phil, thanks for the detailed explanation, although I have to admit I have a bit of a hard time following through.. Anyway... Phil Thompson-5 wrote: I've already suggested that you should

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Richard Esplin
Your confusion is understandable, especially with the recent Qt licensing changes made by Nokia. However, the licensing changes make it much less expensive to use PyQt to produce proprietary applications. The key thing to understand is that you need a separate license for each tool in your

RE: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Adriano Gagliardi
Sorry to butt in, but from your explanation then as long as you make no changes to the Qt source code itself i.e. you use it as given, and you purchase a PyQt licence you are then able to sell your PyQt-based software? Adriano === Adriano Gagliardi MEng PhD

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Hans-Peter Jansen
On Wednesday 09 December 2009, 16:49:49 Adriano Gagliardi wrote: Sorry to butt in, but from your explanation then as long as you make no changes to the Qt source code itself i.e. you use it as given, and you purchase a PyQt licence you are then able to sell your PyQt-based software? Yes.

[PyQt] QGraphicsGridLayout

2009-12-09 Thread Aron Bierbaum
I have been trying to use the QGraphicsGridLayout but I am running into problems when I try to have a QGraphicsWidget span multiple columns. The basic problem is that if I try to span a large widget in the second row under four smaller widgets in the top row, the widgets in the top row are not

Re: [PyQt] QGraphicsGridLayout

2009-12-09 Thread Nick Gaens
Aron Bierbaum wrote: I have been trying to use the QGraphicsGridLayout but I am running into problems when I try to have a QGraphicsWidget span multiple columns. The basic problem is that if I try to span a large widget in the second row under four smaller widgets in the top row, the widgets in

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread John
On Wednesday 09 December 2009 08:22:25 am Hans-Peter Jansen wrote: On Wednesday 09 December 2009, 16:49:49 Adriano Gagliardi wrote: Sorry to butt in, but from your explanation then as long as you make no changes to the Qt source code itself i.e. you use it as given, and you purchase a PyQt

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Phil Thompson
On Wed, 9 Dec 2009 09:57:40 -0800, John jfabi...@yolo.com wrote: On Wednesday 09 December 2009 08:22:25 am Hans-Peter Jansen wrote: On Wednesday 09 December 2009, 16:49:49 Adriano Gagliardi wrote: Sorry to butt in, but from your explanation then as long as you make no changes to the Qt

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Prashant Saxena
Thanks for your kind reply. My application is purely python+PyQt based. I can buy a PyQt commercial license and release the application on all platforms supported by PyQt. Releasing mean the .pyc files plus necessary PyQt files(.lib,.dll,.so etc.) required. AFAIK this would do the job. Correct

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Hans-Peter Jansen
On Wednesday 09 December 2009, 19:40:25 Prashant Saxena wrote: Thanks for your kind reply. My application is purely python+PyQt based. I can buy a PyQt commercial license and release the application on all platforms supported by PyQt. Releasing mean the .pyc files plus necessary PyQt

Re: [PyQt] PyQt Licensing Issue

2009-12-09 Thread Phil Thompson
On Wed, 9 Dec 2009 21:49:57 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 09 December 2009, 19:40:25 Prashant Saxena wrote: Thanks for your kind reply. My application is purely python+PyQt based. I can buy a PyQt commercial license and release the application on all platforms

[PyQt] Re: TextEdit background color

2009-12-09 Thread Lee Harr
I use TextEdit widget, and i want that it's background color will black (for example) I tried to use TextEdit.setTextBackgroundColor but only background of text painted by black color. How can i color all TextEdit area by any color? I have a QTextEdit subclass with black background,

Re: [PyQt] How to update an QAbstactTableModel

2009-12-09 Thread despen
Felix Schmidt fschm...@bihl-wiedemann.de writes: [1]des...@verizon.net schrieb: Simon Hibbs [2]simon.hi...@gmail.com writes: I've written a stock portfolio tracker in pyqt4. The main window which is a QAbstractTableModel has an Update button. When I click it, the program gets new stock

[PyQt] a small bug in SIP, when using it for C libraries

2009-12-09 Thread Ravi kumar
Hello, I was trying out the tutorial of SIP from http://www.riverbankcomputing.co.uk/static/Docs/sip4/using.html. When i tried the C++ example there, it worked fine. But when i tried the C example it gave errors. I searched for the error, in generated file sipwordWord.c, in array_Word function,

[PyQt] a small bug in SIP, when using it for C libraries (sorry for previous post, its message was scrubbed)

2009-12-09 Thread Ravi kumar
Hello, I was trying out the tutorial of SIP from http://www.riverbankcomputing.co.uk/static/Docs/sip4/using.html. When i tried the C++ example there, it worked fine. But when i tried the C example it gave errors. I searched for the error, in generated file sipwordWord.c, in array_Word function,

Re: [PyQt] QGraphicsGridLayout

2009-12-09 Thread Aron Bierbaum
What do you mean? Did you not get an attachment? Does it not run for you? The example that was attached shows four small rectangles in the first row of a grid layout and one large rectangle in the second row. Maybe you are just seeing something fundamentally wrong that I am missing. -Aron P.S. I