Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-04 Thread Ville M. Vainio
On Thu, Mar 4, 2010 at 4:51 AM, Jason H wrote: > Undoubtedly, that would work for showing the widget. And yes, I've done that > much. Unless something has changed recently,  I eventually have to call > app.exec_(), which would block until last window has closed... You shouldn't need to call app

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-04 Thread V. Armando Solé
Jason H wrote: I am working on the new Qt/Kinetic stuff and one thing I would really like to have is an interactive GUI for it. Ideally, I'd have something like the interactive interpreter, which when I type x=QGrahpicsTextItem(...) and add it to the scene, it appears in the scene. Then I can do t

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-04 Thread Phil Thompson
On Wed, 3 Mar 2010 18:51:35 -0800 (PST), Jason H wrote: > Undoubtedly, that would work for showing the widget. And yes, I've done > that much. Unless something has changed recently, I eventually have to > call app.exec_(), which would block until last window has closed... > > I seems the previou

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-04 Thread Ville M. Vainio
On Thu, Mar 4, 2010 at 10:29 AM, "V. Armando Solé" wrote: > When you start ipython as "ipython -q4thread" you have what you seem to be > looking for. Perhaps it is worth to take That feature of ipython is deprecated, even with ipython you should just use the normal inputhook hack. -- Ville M.

[PyQt] Next Releases of PyQt, SIP, QScintilla

2010-03-04 Thread Phil Thompson
I intend to make bug-fix releases of PyQt, SIP and QScintilla some time next week. If there is anything you think should be fixed beforehand then now is the time to remind me. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbank

[PyQt] Add Icon Sub Menu

2010-03-04 Thread AON LAZIO
-- Forwarded message -- From: AON LAZIO Date: Fri, Jan 8, 2010 at 9:19 AM Subject: Add Icon Sub Menu To: pyqt@riverbankcomputing.com Hi,PyQt colleages, Anybody know How to make Icon Submenu like the attached file I send? It kind of has a little arrow next to the icon an

[PyQt] Tab completion in a TextEdit or a QsciEditor

2010-03-04 Thread projetmbc
Hello, I would like to add a tab-completion in TextEdit or/and in "Qscintilla TextEdit". What I mean is something that when you type "riv" will propose in a combobox a list like ["river", "riverbank"], and when the user chooses one of the word, then "riv" become the word choosen. Is there s

[PyQt] SIP API v2 at compile time?

2010-03-04 Thread Jugdish
Is there any way to compile SIP so that it uses v2 of its API for things like QString, QVariant, QDate, etc.? I would rather not do: import sip sip.setapi('QString', 2) at runtime because I can not always guarantee that PyQt4 hasn't been imported before I am able to make the above call. Instead,

Re: [PyQt] SIP API v2 at compile time?

2010-03-04 Thread Phil Thompson
On Thu, 4 Mar 2010 15:57:59 +, Jugdish wrote: > Is there any way to compile SIP so that it uses v2 of its API for things > like QString, QVariant, QDate, etc.? > I would rather not do: > > import sip > sip.setapi('QString', 2) > > at runtime because I can not always guarantee that PyQt4 hasn

[PyQt] sip parsing errors

2010-03-04 Thread Stéphane Laurière
Hello everyone, When trying to generate the sip files corresponding to some KDE classes whose bindings are not included into PyKDE4 yet, using the twine tool [1], I get some parsing errors on the following tokens among others: - %API - /API=QString: - 2/; Here's an error example on the first one

Re: [PyQt] sip parsing errors

2010-03-04 Thread Phil Thompson
On Thu, 04 Mar 2010 19:10:50 +0100, Stéphane Laurière wrote: > Hello everyone, > > When trying to generate the sip files corresponding to some KDE classes > whose bindings are not included into PyKDE4 yet, using the twine tool > [1], I get some parsing errors on the following tokens among others:

Re: [PyQt] sip parsing errors

2010-03-04 Thread Stéphane Laurière
[...] Are you absolutely sure you are using SIP v4.10? It seems that the error is actually thrown by the sipparser and siplexer Python modules of twine, not by sip itself. I got some feedback from Simon, author of twine: the version of twine that is available online is now obsolete [1], so I gu

[PyQt] Bug report: crash when using QSytemTrayIcon

2010-03-04 Thread Kiwi
Hi, I'm totally new to PyQt programming. While I was writing a very simple app for the system tray I think I found a bug. Here is a simple testcase: # -*- coding: utf-8 -*- import sys from PyQt4 import QtGui, QtCore app = QtGui.QApplication(sys.argv) tray = QtGui.QSystemTrayIcon() def a(): pass

[PyQt] Get a list of selected rows in a QTableWidget

2010-03-04 Thread starglider develop
Hi, how can I get a list of all selected rows in a QTableWidget. I try to play with selectedIndexes() but don't know how to convert in rows index. Thank you in advance for your help. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverba

Re: [PyQt] Get a list of selected rows in a QTableWidget

2010-03-04 Thread Russell Valentine
rows=[] for idx in self.table.selectedIndexes() rows.append(idx.row()) starglider develop wrote: Hi, how can I get a list of all selected rows in a QTableWidget. I try to play with selectedIndexes() but don't know how to convert in rows index. Thank you in advance for your help.

[PyQt] QTreeWidget setItemWidget dissapears after drag & drop

2010-03-04 Thread Taylor Carrasco
I'm trying to keep a widget put into a QTreeWidgetItem after a reparent (drag and drop) using QTreeWidget.setItemWidget() But the result, if you compile the following code - is that the widget inside the QTreeWidgetItem disappears. Any idea why? What code would fix this (repopulate the QTreeWidget

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-04 Thread Jason H
Hah, I guess I am showing my old VB colors :-) This is freaking awesome! - Original Message From: Phil Thompson To: Jason H Cc: PyQt Sent: Thu, March 4, 2010 3:58:56 AM Subject: Re: [PyQt] Is there a way to run the interp AND a gui? On Wed, 3 Mar 2010 18:51:35 -0800 (PST), Jason

Re: [PyQt] Get a list of selected rows in a QTableWidget

2010-03-04 Thread Andreas Pakulat
On 04.03.10 17:52:01, Russell Valentine wrote: > rows=[] > for idx in self.table.selectedIndexes() > rows.append(idx.row()) Better would be using self.table.selectionModel().selectedRows(), the above can add duplicates to your list of rows if multiple columns are selected. Andreas -- Acce