Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Giovanni Bajo
On lun, 2009-03-02 at 11:12 -0800, Brent Villalobos wrote: > Brian Kelley wrote: > > When you start another mainwindow (or top level widget for that > > matter) you don’t need to call exec_ or make another QApplication. > > That's good. Along those same lines does Qt provide a way of querying >

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread David Boddie
On Mon Mar 2 19:12:00 GMT 2009, Brent Villalobos wrote: > Brian Kelley wrote: > > When you start another mainwindow (or top level widget for that > > matter) you don’t need to call exec_ or make another QApplication. > > That's good. Along those same lines does Qt provide a way of querying > whethe

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Brian Kelley
I am unaware of one. It seems safer to re-organize your code a bit. I tend to have a lot of functional objects, widgets/mainwindows seperated into modules and then I compose them into applications under a single Qapplication, but you may have reasons for doing otherwise. Brian On 3/2/09 2:1

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Detlev Offenbach
On Montag, 2. März 2009, Phil Thompson wrote: > On Mon, 2 Mar 2009 19:31:26 +0100, Detlev Offenbach > > wrote: > > On Montag, 2. März 2009, Phil Thompson wrote: > >> On Mon, 2 Mar 2009 18:33:01 +0100, Detlev Offenbach > >> > >> wrote: > >> > On Montag, 2. März 2009, Phil Thompson wrote: > >> >> O

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Brent Villalobos
Brian Kelley wrote: When you start another mainwindow (or top level widget for that matter) you don’t need to call exec_ or make another QApplication. That's good. Along those same lines does Qt provide a way of querying whether a QApplication loop is already running so you can avoid making a

Re: [PyQt] Packaging a PyQt app in GNU/Linux

2009-03-02 Thread Saúl Ibarra
Hi and thanks for your answer! :) > Depends on the goal. The "correct" way to package an app on Linux is to > make a distribution-dependent package (.deb/.rpm mostly). > That's right, I'm about to build a deb package, but I'm not sure if yust having my app directory copied somewhere is "the right

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Phil Thompson
On Mon, 2 Mar 2009 19:31:26 +0100, Detlev Offenbach wrote: > On Montag, 2. März 2009, Phil Thompson wrote: >> On Mon, 2 Mar 2009 18:33:01 +0100, Detlev Offenbach >> >> wrote: >> > On Montag, 2. März 2009, Phil Thompson wrote: >> >> On Mon, 2 Mar 2009 18:19:57 +0100, Detlev Offenbach >> >> >> >>

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Brian Kelley
When you start another mainwindow (or top level widget for that matter) you don't need to call exec_ or make another QApplication. The way I normally import things like this is the following: Foo.py class MainWindow()... ... def Start(): m = MainWindow() m.show() if __name__ == "__mai

[PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Brent Villalobos
I have a pyqt application that imports and runs another pyqt application. I am not launching the second application in its own process, but I'm just relying on python's module importing architecture. Both applications seems to run fine without any problems, but I'm seeing this warning message

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Detlev Offenbach
On Montag, 2. März 2009, Phil Thompson wrote: > On Mon, 2 Mar 2009 18:33:01 +0100, Detlev Offenbach > > wrote: > > On Montag, 2. März 2009, Phil Thompson wrote: > >> On Mon, 2 Mar 2009 18:19:57 +0100, Detlev Offenbach > >> > >> wrote: > >> > Hi, > >> > > >> > I am trying to write a subclass of QN

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Phil Thompson
On Mon, 2 Mar 2009 18:33:01 +0100, Detlev Offenbach wrote: > On Montag, 2. März 2009, Phil Thompson wrote: >> On Mon, 2 Mar 2009 18:19:57 +0100, Detlev Offenbach >> >> wrote: >> > Hi, >> > >> > I am trying to write a subclass of QNetworkReply. This subclass needs >> > to >> > have >> > it's own v

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Detlev Offenbach
On Montag, 2. März 2009, Phil Thompson wrote: > On Mon, 2 Mar 2009 18:19:57 +0100, Detlev Offenbach > > wrote: > > Hi, > > > > I am trying to write a subclass of QNetworkReply. This subclass needs to > > have > > it's own variant of the readData protected method. However, it seems, > > that > > >

Re: [PyQt] Subclassing QNetworkReply

2009-03-02 Thread Phil Thompson
On Mon, 2 Mar 2009 18:19:57 +0100, Detlev Offenbach wrote: > Hi, > > I am trying to write a subclass of QNetworkReply. This subclass needs to > have > it's own variant of the readData protected method. However, it seems, that > this method doesn't work correctly. How do I have to do this correc

[PyQt] Subclassing QNetworkReply

2009-03-02 Thread Detlev Offenbach
Hi, I am trying to write a subclass of QNetworkReply. This subclass needs to have it's own variant of the readData protected method. However, it seems, that this method doesn't work correctly. How do I have to do this correctly. My code is shown below. -- class HelpNetworkReply(QNe

Re: [PyQt] Embed widget in a container

2009-03-02 Thread Gustavo A . Díaz
You could use QStackedWidget for that, if how i use in my application. I have a QMainWindow and a QStackedWidget which i load the modules GUIs of my application. Here you could digg the code of my opensource application: svn co svn://svn.tuxfamily.org/svnroot/opencoffee/opencoffee opencoffee Che

[PyQt] RCC, data and py2exe

2009-03-02 Thread Filip Gruszczyński
I am trying to build an executable for windows for PyQt project. Everything seems to work except for data stored by pyrcc4. There are no images I used for icons and I have no idea why this happens. Have anyone encountered similar problem and managed to overcome it? -- Filip Gruszczyński

Re: [PyQt] example

2009-03-02 Thread Brian Kelley
If you are using a ListWidget, you can add a checkbox as follows: item = QtGui.QListWidgetItem(text) item.setCheckState(QtCore.Qt.Checked) item.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEditable

Re: [PyQt] QTableWidget no editable

2009-03-02 Thread Sergio Daniel Gomez
chrysl666 escribió: please how to meake a QTableWidget cell no Editable ? thanks for help me ! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputin

Re: [PyQt] QTableWidget no editable

2009-03-02 Thread Brian Kelley
Before you add a QTableWidgetItem to a cell, call the setFlags function on the item without the ItemIsEditable flag. For editable: item.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsEnabled ) For not editable; item.setFlags( QtCore.Qt.ItemIsSelectable | Qt

[PyQt] QTableWidget no editable

2009-03-02 Thread chrysl666
please how to meake a QTableWidget cell no Editable ? thanks for help me ! ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: Re: Any Large PyQt Projects?

2009-03-02 Thread Gustavo A . Díaz
When the project became more popular or more people joins to help me (since i am the only one developing it right now..) I will try to translate the site in English too, so the user could chose. 2009/3/1 Arthur Pemberton > On Sun, Mar 1, 2009 at 2:41 PM, Gustavo A. Díaz > wrote: > > Hi. > > > >

Re: [PyQt] pdf print

2009-03-02 Thread Håvard Gulldahl
Hi Nahuel, list, On Thu, Feb 26, 2009 at 10:41 PM, Nahuel Defossé wrote: > Hi > I've created pdf output in a StringIO file which I'd like to print in my PyQt4 > app. Should I save it and send it to the system default reader? or could I > automate this task? Is it possible to pirnt the file direc

[PyQt] New-style Signal/Slot Connections Implemented

2009-03-02 Thread Phil Thompson
For those who want to play... Current SIP and PyQt4 snapshots implement the new-style API for connecting, disconnecting and emitting signals described in the Roadmap. I've updated the 14 tutorial examples to use it, I'll get around to the other examples later on. Also, the restrictions on the use