[PyQt] Fwd: threading and qt warnings

2007-09-06 Thread Darren Dale
Hello, I am writing some code to allow a pyqt4 program to be run with ipython in a separate thread. Using python-2.5.1, qt-4.3.1 and pyqt-4.3, I get the following warning messages at each timeout: QSocketNotifier: Can only be used with threads started with QThread QApplication::exec: Must be

Re: [PyQt] Fwd: threading and qt warnings

2007-09-07 Thread Darren Dale
On Friday 07 September 2007 04:09:02 am Phil Thompson wrote: On Thursday 06 September 2007, Darren Dale wrote: Hello, I am writing some code to allow a pyqt4 program to be run with ipython in a separate thread. Using python-2.5.1, qt-4.3.1 and pyqt-4.3, I get the following warning

[PyQt] Question about QTimer and QThreads

2007-10-28 Thread Darren Dale
I am trying to understand how to run a second event loop using a qthread. The Qt docs indicate this is possible, but I haven't found any examples. I have a simple example that I think should work, but doesn't. When I run my thread's exec_(), it blocks. The actual application I am writing calls

Re: [PyQt] Question about QTimer and QThreads

2007-10-28 Thread Darren Dale
On Sunday 28 October 2007 06:39:27 pm Ingmar Steen wrote: On 10/28/07, Darren Dale [EMAIL PROTECTED] wrote: I am trying to understand how to run a second event loop using a qthread. The Qt docs indicate this is possible, but I haven't found any examples. I have a simple example that I think

Re: [PyQt] Question about QTimer and QThreads

2007-10-29 Thread Darren Dale
On Monday 29 October 2007 04:15:45 am Andreas Pakulat wrote: On 28.10.07 18:31:25, Darren Dale wrote: I am trying to understand how to run a second event loop using a qthread. The Qt docs indicate this is possible, but I haven't found any examples. I have a simple example that I think

Re: [PyQt] Question about indexing a QAbstractItemModel

2007-12-13 Thread Darren Dale
On Thursday 13 December 2007 09:10:24 am Darren Dale wrote: I am trying to figure out how to append an item to a model derived from QAbstractItemModel, and have the appended item appear expanded by default, but I don't understand how to work with QModelIndex. Could someone suggest how

[PyQt] Event loop is already running warning message

2008-02-05 Thread Darren Dale
Hello, A while back I inquired about some warning messages that appear in a threaded application at each timeout, which was addressed in a subsequent PyQt4 release: http://thread.gmane.org/gmane.comp.python.pyqt-pykde/9800/focus=9803 A similar problem occurs with QCoreApplication, it can be

Re: [PyQt] Event loop is already running warning message

2008-02-07 Thread Darren Dale
On Thursday 07 February 2008 07:14:41 am Phil Thompson wrote: On Tuesday 05 February 2008, Darren Dale wrote: Hello, A while back I inquired about some warning messages that appear in a threaded application at each timeout, which was addressed in a subsequent PyQt4 release: http

[PyQt] how to prevent QFileDialog.getSaveFileName from overwriting

2008-02-15 Thread Darren Dale
I am using QFileDialog.getSaveFileName: from PyQt4 import QtGui a = QtGui.QApplication([]) f = QtGui.QFileDialog.getSaveFileName(None, 'Open File', '.') print f If I select an existing file and select save, another dialog automatically pops up asking if I want to replace it. If I select no,

[PyQt] saving/restoring geometry

2008-03-10 Thread Darren Dale
Could anyone suggest how to save and restore the size and position of a dock widget and an mdi subwindow? Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] saving/restoring geometry

2008-03-11 Thread Darren Dale
On Monday 10 March 2008 05:03:59 pm Darren Dale wrote: Could anyone suggest how to save and restore the size and position of a dock widget and an mdi subwindow? I found the answer to my dock question by looking through the eric4 source code: use QSettings and QMainWindow.saveState

Re: [PyQt] error building PyKDE 4.0.2-1 - QTDIR not respected

2008-04-03 Thread Darren Dale
On Monday 24 March 2008 12:43:34 pm Jim Bublitz wrote: On Monday 24 March 2008 07:31, Giacomo Lacava wrote: Hi, I can't build PyKDE 4.0.2-1, even though KDE 4.0.2 is installed. It seems it cannot find the Qt include files, even though QTDIR is set to a symbolic link

[PyQt] resizing floating dockwidgets

2008-04-17 Thread Darren Dale
Does anyone if it is possible (and if so, how) to configure a dock widget so it can be resized when it is detached from the main window? Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] configuring pykde4, error

2008-05-14 Thread Darren Dale
I am working on compiling pykde4-4.0.2-1. I have installed qt-4.4_rc1 (I know the final version is out, gentoo hasnt included it yet in their package manager) sip-4.7.5, qscintilla-2.2, and PyQt4-4.4. When I run configure.py, I get an error: Generating the C++ source for the kdecore module...

Re: [PyQt] configuring pykde4, error

2008-05-14 Thread Darren Dale
On Wednesday 14 May 2008 01:58:37 pm Jim Bublitz wrote: On Wednesday 14 May 2008 10:27, Darren Dale wrote: I am working on compiling pykde4-4.0.2-1. I have installed qt-4.4_rc1 (I know the final version is out, gentoo hasnt included it yet in their package manager) sip-4.7.5, qscintilla-2.2

Re: [PyQt] configuring pykde4, error

2008-05-14 Thread Darren Dale
On Wednesday 14 May 2008 04:14:43 pm Jim Bublitz wrote: On Wednesday 14 May 2008 12:09, Darren Dale wrote: On Wednesday 14 May 2008 01:58:37 pm Jim Bublitz wrote: On Wednesday 14 May 2008 10:27, Darren Dale wrote: However, now when I run make I get an error that I am unable to diagnose

Re: [PyQt] configuring pykde4, error

2008-05-15 Thread Darren Dale
On Wednesday 14 May 2008 06:54:57 pm Jim Bublitz wrote: On Wednesday 14 May 2008 13:54, Darren Dale wrote: On Wednesday 14 May 2008 04:14:43 pm Jim Bublitz wrote: On Wednesday 14 May 2008 12:09, Darren Dale wrote: On Wednesday 14 May 2008 01:58:37 pm Jim Bublitz wrote: On Wednesday

Re: [PyQt] configuring pykde4, error

2008-05-15 Thread Darren Dale
On Thursday 15 May 2008 08:26:35 am Darren Dale wrote: On Wednesday 14 May 2008 06:54:57 pm Jim Bublitz wrote: What would help is if a) you could post a copy of the info at the beginning of configure.py's run - where it thinks everything is. It should be finding the Qt directories from your

Re: [PyQt] configuring pykde4, error

2008-05-20 Thread Darren Dale
Hi Jim, On Thu, May 15, 2008 at 6:02 PM, Jim Bublitz [EMAIL PROTECTED] wrote: I think I must have a different version of configure.py than you are expecting. I'm using the one that comes with pykde-4.0.2-1 at the riverbankcomputing website. It doesnt have a variable called

Re: [PyQt] configuring pykde4, error

2008-05-21 Thread Darren Dale
On Tuesday 20 May 2008 03:29:14 pm Jim Bublitz wrote: On Tuesday 20 May 2008 10:47, Darren Dale wrote: At that point, I get another can't use default assignment operator error: I'm not sure what's causing that error, which seems to be the basic problem (other than having an updated

[PyQt] eric4 segfault after upgrading to SIP-4.7.6/PyQT4-4.4.2

2008-05-21 Thread Darren Dale
This morning I updated SIP to version 4.7.6 and PyQt4 to version 4.4.2 on a 64bit gentoo linux system. When I launch eric4, I get a segfault that looks like it is originating from QScintilla: 2008-05-21, 10:31:43

Re: [PyQt] eric4 segfault after upgrading to SIP-4.7.6/PyQT4-4.4.2

2008-05-21 Thread Darren Dale
On Wednesday 21 May 2008 11:17:16 am Detlev Offenbach wrote: Hi, did you regenerate the QScintilla2 Python bindings AFTER updating PyQt4? That is a common error. Oh, thank you. My mistake, I'm sorry for adding noise. ___ PyQt mailing list

Re: [PyQt] Bug - PyQt 4.4.2 and Matplotlib 0.91.2

2008-05-31 Thread Darren Dale
On Friday 30 May 2008 5:22:44 pm Pierre Raybaut wrote: Hi, I found out a performance bug when embedding a Matplotlib 0.91.2 canvas in a PyQt 4.4.2 object: the pan/zoom feature is very slow (with PyQt 4.3.3, and the exact same scripts, pan/zoom is real-time). I am posting this in Matplotlib

Re: [PyQt] Are QThreads compatible with python's threading.RLock?

2008-07-27 Thread Darren Dale
On Saturday 26 July 2008 03:48:53 you wrote: On Fri, 25 Jul 2008 17:41:22 -0400, Darren Dale [EMAIL PROTECTED] wrote: I use a library that provides rudimentary thread safety of its objects and file I/O using threading.RLock from the python standard library. Could anyone tell me

Re: [PyQt] Licensing for PyQt?

2009-01-16 Thread Darren Dale
On Fri, Jan 16, 2009 at 9:03 AM, Phil Thompson p...@riverbankcomputing.comwrote: On Fri, 16 Jan 2009 13:37:47 + (UTC), David F dael...@gmail.com wrote: After the announcement that Qt 4.5 will be released as LGPL, has it been decided if PyQt will do the same? I have seen some

Re: [PyQt] MatplotLib and PyQt

2009-02-07 Thread Darren Dale
On Sat, Feb 7, 2009 at 6:58 PM, projet...@club-internet.fr wrote: Hello, I'm looking for examples of little PyQt applications embending MatplotLib. Here is a good example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html. The matplotlib mailing list is

Re: Re: [PyQt] MatplotLib and PyQt

2009-02-08 Thread Darren Dale
On Sun, Feb 8, 2009 at 11:48 AM, projet...@club-internet.fr wrote: Hello, I'm looking for examples of little PyQt applications embending MatplotLib. Here is a good example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_q

Re: [PyQt] Documentation Style (Was: PyQt4 feature request)

2009-03-07 Thread Darren Dale
On Sat, Mar 7, 2009 at 12:50 PM, Phil Thompson p...@riverbankcomputing.comwrote: On Sat, 7 Mar 2009 18:06:12 +0100, Detlev Offenbach det...@die-offenbachs.de wrote: Hi, please include the PyQt4 documentation as a compressed Qt Help files (*.qch) as well. eric4 will support Qt Help

[PyQt] seeking advice on why this script segfaults

2009-03-10 Thread Darren Dale
Hello, I am trying to create a simple model and view for a simple nested dictionary like d: c1 = {'id':1, 'description':'child 1'} c2 = {'id':2, 'description':'child 2'} d = {'id':0, 'description':'whatever', 'children':[c1, c2]} I have a self-contained, relatively simple script

[PyQt] Re: seeking advice on why this script segfaults

2009-03-10 Thread Darren Dale
On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale dsdal...@gmail.com wrote: Hello, I am trying to create a simple model and view for a simple nested dictionary like d: c1 = {'id':1, 'description':'child 1'} c2 = {'id':2, 'description':'child 2'} d = {'id':0, 'description':'whatever

[PyQt] Re: seeking advice on why this script segfaults

2009-03-11 Thread Darren Dale
On Tue, Mar 10, 2009 at 8:03 PM, Darren Dale dsdal...@gmail.com wrote: On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale dsdal...@gmail.com wrote: Hello, I am trying to create a simple model and view for a simple nested dictionary like d: c1 = {'id':1, 'description':'child 1'} c2

[PyQt] Re: seeking advice on why this script segfaults

2009-03-12 Thread Darren Dale
On Wed, Mar 11, 2009 at 11:56 AM, Darren Dale dsdal...@gmail.com wrote: On Tue, Mar 10, 2009 at 8:03 PM, Darren Dale dsdal...@gmail.com wrote: On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale dsdal...@gmail.com wrote: Hello, I am trying to create a simple model and view for a simple nested

Re: [PyQt] Re: seeking advice on why this script segfaults

2009-03-12 Thread Darren Dale
On Thu, Mar 12, 2009 at 2:57 PM, Arnold Krille arn...@arnoldarts.de wrote: On Thursday 12 March 2009 17:31:40 Darren Dale wrote: If anybody has some example of a working QAbstractItemModel/QTreeView for dynamic data, would you please consider posting it (if its short) or sending it to me

[PyQt] possible regression in PyQt/sip snapshots

2009-03-24 Thread Darren Dale
I have been keeping up to date with the snapshots, and after installing them I try to launch Eric4 and I get a segfault. I think this simple example, adapted from eric4's Debugger/BreakPointModel.py, might illustrate the problem: from PyQt4 import QtCore alignment =

[PyQt] trouble running PyQt-4.5 configure.py with python3

2009-03-25 Thread Darren Dale
This morning I tried to install last nights snapshots on Kubuntu Jaunty for python-3.0.1. python configure.py would get up to the point were this is printed: Type '2' to view the GPL v2 license. Type '3' to view the GPL v3 license. Type 'yes' to accept the terms of the license. Type 'no' to

[PyQt] question about cyclic references with QThread

2009-03-27 Thread Darren Dale
I have a simple question about QThread. The attached simple example illustrates a case where I have a widget that creates and holds a reference to a thread, setting itself as the parent. I need the parent to hold a reference to the thread, so I can interrupt its execution for example. I want to

[PyQt] Re: question about cyclic references with QThread

2009-03-27 Thread Darren Dale
On Fri, Mar 27, 2009 at 10:14 AM, Darren Dale dsdal...@gmail.com wrote: I have a simple question about QThread. The attached simple example illustrates a case where I have a widget that creates and holds a reference to a thread, setting itself as the parent. I need the parent to hold

Re: [PyQt] segfault when using a proxy and SIGNAL( clicked(QModelIndex) )

2009-04-13 Thread Darren Dale
Hi Andreas, On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 14:11:46, Arnold Krille wrote: It is a pointer for internal purposes, that is internal for the model so it can map indexes to the internal data structures. (And yes, that is needed for anything

Re: [PyQt] segfault when using a proxy and SIGNAL( clicked(QModelIndex) )

2009-04-13 Thread Darren Dale
On Mon, Apr 13, 2009 at 3:11 PM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 10:27:56, Darren Dale wrote: On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 14:11:46, Arnold Krille wrote: It is a pointer for internal purposes, that is internal

Re: [PyQt] segfault when using a proxy and SIGNAL( clicked(QModelIndex) )

2009-04-23 Thread Darren Dale
On Mon, Apr 13, 2009 at 3:43 PM, Darren Dale dsdal...@gmail.com wrote: On Mon, Apr 13, 2009 at 3:11 PM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 10:27:56, Darren Dale wrote: On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 14:11:46, Arnold Krille

Re: [PyQt] segfault when using a proxy and SIGNAL( clicked(QModelIndex) )

2009-04-23 Thread Darren Dale
On Thu, Apr 23, 2009 at 12:28 PM, Darren Dale dsdal...@gmail.com wrote: On Mon, Apr 13, 2009 at 3:43 PM, Darren Dale dsdal...@gmail.com wrote: On Mon, Apr 13, 2009 at 3:11 PM, Andreas Pakulat ap...@gmx.de wrote: On 13.04.09 10:27:56, Darren Dale wrote: On Mon, Apr 13, 2009 at 9:58 AM

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-25 Thread Darren Dale
Have you tried constructing a QApplication first? On Sat, Apr 25, 2009 at 8:24 PM, projetmbc projet...@club-internet.frwrote: I've already try that but I have the following message : QWidget: Must construct a QApplication before a QPaintDevice Christophe. Demetrius Cassidy a écrit :

Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-05-04 Thread Darren Dale
On Mon, Apr 20, 2009 at 2:54 PM, Phil Thompson p...@riverbankcomputing.comwrote: On Mon, 20 Apr 2009 08:22:54 +0200, Simon Edwards si...@simonzone.com wrote: Phil Thompson wrote: On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards si...@simonzone.com wrote: Phil Thompson wrote:

Re: [PyQt] PyQt Licensing

2009-05-06 Thread Darren Dale
On Wed, May 6, 2009 at 10:45 AM, Henrik Pauli henrik.pa...@gmail.comwrote: On Wednesday 06 May 2009 13:28:15 Attila Csipa wrote: On Wednesday 06 May 2009 12:30:02 Henrik Pauli wrote: Hmm... I think strictly said, the licensing of the final product and the development model do not have

[PyQt] possible threading/locking bug in PyQt4 snapshots

2009-05-11 Thread Darren Dale
Hello, I have attached a short script that I think demonstrates a bug in the PyQt4 snapshots. I expect the following output on the command line: 0 1 [...] 9998 complete The script runs as expected with PyQt4-4.4.4 on 64bit Kubuntu Jaunty (although I have to invoke ctrl-z to exit the

[PyQt] trouble building PyQt4-x11 20090529 snapshot

2009-06-01 Thread Darren Dale
Hello, This morning I downloaded the 20090529 PyQt4 snapshot, and am having trouble building it on a 64-bit gentoo linux system. I didn't see any SIP snapshots available at the riverbank website, so I am using the 20090525 sip snapshot: g++ -c -pipe -fno-strict-aliasing -O2 -march=k8 -mtune=k8

[PyQt] pyuic4 segfaults with 20090601 snapshots

2009-06-02 Thread Darren Dale
I am using the 20090601 sip and pyqt4 snapshots on a 64-bit kubuntu karmic alpha system. I see segfaults with pyuic4, for example with the attached file using: pyuic4 -o ui_skipmode.py ui_skipmode.ui I don't see the problem using the same snapshots on a 64-bit gentoo system, which also uses

Re: [PyQt] pyuic4 segfaults with 20090601 snapshots

2009-06-02 Thread Darren Dale
On Tue, Jun 2, 2009 at 7:22 PM, Demetrius Cassidy dcassid...@mass.rr.comwrote: I think theres something wrong with the 20090601 build. Build fails on Vista64, and another guy has a problem with the x11 snapshot with the same compiler error. Have you tried earlier builds at all? I didn't

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
Hi Armando, On Wed, Jun 3, 2009 at 9:34 AM, V. Armando Solé s...@esrf.fr wrote: Hello, I think I have fallen into a Qt bug but perhaps I am wrong. According to the (latest) Qt documentation, QAbstractItemModel.createIndex takes a uint32 as the model index internalId, while the internalId()

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:23 AM, V. Armando Solé s...@esrf.fr wrote: Darren Dale wrote: Hi Armando, Relatedly, I think there is a small problem with the PyQt4 documentation for the overloaded QAbstractItemModel.createIndex method. It looks like Qt's documentation for passing a pointer

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:37 AM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jun 3, 2009 at 10:23 AM, V. Armando Solé s...@esrf.fr wrote: Darren Dale wrote: Hi Armando, Relatedly, I think there is a small problem with the PyQt4 documentation for the overloaded

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson p...@riverbankcomputing.comwrote: On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr wrote: Hello, The problem can be solved as shown below. It seems the linux 32 bit implementation gets confused in createIndex(row,

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr wrote: Hello, The problem can be solved as shown below. It seems

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale dsdal...@gmail.com wrote: On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 4:57 PM, Vicente Sole s...@esrf.fr wrote: Quoting Darren Dale: On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote: One last point, however: I think Armando's suggestion of passing the object, and not the object's id(), coupled with Phil's patch

[PyQt] question about resizing behavior

2009-07-02 Thread Darren Dale
Hello, Somebody reported some strange resizing behavior at the matplotlib mailing list. matplotlib has a PyQt4 plot rendering widget, and the script below creates a window containing such a widget and also a scrollbar. If you resize the window's width, the scrollbar often seems to be resized

Re: [PyQt] Re: question about resizing behavior

2009-07-06 Thread Darren Dale
On Fri, Jul 3, 2009 at 3:37 AM, Ole Streicher ole-usenet-s...@gmx.netwrote: Hello Darren, Darren Dale dsdal...@gmail.com writes: Somebody reported some strange resizing behavior at the matplotlib mailing list. The somebody was me :-) Here some additional information: If you printout

Re: [PyQt] Re: question about resizing behavior

2009-07-07 Thread Darren Dale
On Tue, Jul 7, 2009 at 2:50 AM, Ole Streicher ole-usenet-s...@gmx.netwrote: Hi Darren, Darren Dale dsdal...@gmail.com writes: Nice demonstration of the problem Ole. I notice that if, after resizing, I pause briefly before releasing the mouse button, the scroll bar is more likely

Re: [PyQt] Re: question about resizing behavior

2009-07-07 Thread Darren Dale
Hi Ole, On Tue, Jul 7, 2009 at 11:33 AM, Ole Streicher ole-usenet-s...@gmx.netwrote: Hi again, Darren Dale dsdal...@gmail.com writes: Nice demonstration of the problem Ole. I notice that if, after resizing, I pause briefly before releasing the mouse button, the scroll bar is more likely

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzeneckerl...@gmx.at wrote: Sorry for annoying you, but I attatched a new example to this message: I've rewritten the PyQt4-example from the website to draw the Figure in a tab widget. The same happens ;) In your original post, you said: the widget in

[PyQt] question about installation best practices on OS X

2009-10-18 Thread Darren Dale
I just recently started working with OS X, and was wondering if someone could point me to some discussion about best practices for installing Qt and PyQt. For example, today I installed the Qt-4.6 beta dmg, but was surprised that symlinks to tools like designer were not created on the path.

Re: [PyQt] question about installation best practices on OS X

2009-10-19 Thread Darren Dale
python configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin --use-arch=i386 On Oct 18, 2009, at 8:29 PM, Darren Dale wrote: I just recently started working with OS X, and was wondering if someone could point me to some discussion about best practices for installing Qt and PyQt

Re: [PyQt] question about installation best practices on OS X

2009-10-19 Thread Darren Dale
On Mon, Oct 19, 2009 at 6:55 PM, Robert Bobbson rbobb...@yahoo.com wrote: One thing you are going to find out is that Apple isn't the quickest on the draw with updating things like Python.  It's only recently that they made a move to anything near the 2.6 line, so I have long since given up

Re: [PyQt] question about installation best practices on OS X

2009-10-20 Thread Darren Dale
On Tue, Oct 20, 2009 at 10:02 AM, Darren Dale dsdal...@gmail.com wrote: On Mon, Oct 19, 2009 at 9:50 PM, William Kyngesburye wokl...@kyngchaos.com wrote: Hmm, Macports.  It's great for those who want a familiar packagae-manager setup or just don't want to get their fingers dirty compiling

Re: [PyQt] newbie questions...

2009-11-07 Thread Darren Dale
On Thu, Aug 14, 2008 at 3:59 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Tue, 12 Aug 2008 20:31:37 +0100, Chris Withers ch...@simplistix.co.uk wrote: Phil Thompson wrote: That seems weird to put it politely. I would have thought they both had the same interfaces? It's not a

Re: [PyQt] Unable to install on Mac Snow Leopard

2009-11-23 Thread Darren Dale
On Mon, Nov 23, 2009 at 8:25 PM, Kareem Yusuf koyu...@gmail.com wrote: When I try to install PyQt, and run Make I get the following error ... In file included from /Library/Frameworks/QtCore.framework/Headers/qmetatype.h:45,                  from

Re: [PyQt] Unable to install on Mac Snow Leopard

2009-11-25 Thread Darren Dale
On Wed, Nov 25, 2009 at 2:58 AM, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Darren, Il giorno Mon, 23 Nov 2009 21:42:37 -0500 Darren Dale dsdal...@gmail.com ha scritto: On Mon, Nov 23, 2009 at 8:25 PM, Kareem Yusuf koyu...@gmail.com wrote: When I try to install PyQt, and run

Re: [PyQt] Unable to install on Mac Snow Leopard

2009-11-25 Thread Darren Dale
On Wed, Nov 25, 2009 at 11:36 AM, Antonio Valentino antonio.valent...@tiscali.it wrote: Il giorno Wed, 25 Nov 2009 07:31:44 -0500 Darren Dale dsdal...@gmail.com ha scritto: On Wed, Nov 25, 2009 at 2:58 AM, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi Darren, Il giorno Mon

[PyQt] suggestion for installing 64-bit Qt-4.6.0 on Snow Leopard

2009-12-02 Thread Darren Dale
For anyone interested in installing 64-bit qt-4.6.0 on Snow Leopard, it looks like the download at http://qt.nokia.com/downloads is 32-bit. After a bit of digging, I found an alternative installer at http://download.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.0.dmg which installs a 64-bit

Re: [PyQt] PyQt Licensing Issue

2009-12-08 Thread Darren Dale
On Tue, Dec 8, 2009 at 8:14 AM, Giovanni Bajo ra...@develer.com wrote: On Tue, 08 Dec 2009 12:25:15 +, Phil Thompson p...@riverbankcomputing.com wrote: On Tue, 8 Dec 2009 17:46:20 +0530 (IST), Prashant Saxena animator...@yahoo.com wrote: Hi, I am planning to release the beta

Re: [PyQt] Install script for Python applications

2009-12-11 Thread Darren Dale
On Fri, Dec 11, 2009 at 6:11 AM, Lukas Hetzenecker l...@gmx.at wrote: Hello, I've developed a application using Python and PyQt4. What is the best way to make a install.py / setup.py / Makefile for installing this application? It should check if all depencies are found (this should be

Re: [PyQt] Install script for Python applications

2009-12-12 Thread Darren Dale
On Sat, Dec 12, 2009 at 9:52 AM, Lukas Hetzenecker l...@gmx.at wrote: Hello, thank you for your quick answer. But I don't quite understand distutils. Did you read the documentation at http://docs.python.org/distutils/index.html ? At the beginning i have some fundamental questions:  -

Re: [PyQt] Need help installing PyQt on Snow Leopard

2009-12-18 Thread Darren Dale
Hi Bruce, On Fri, Dec 18, 2009 at 4:43 PM, Bruce Anderson bruce...@rogers.com wrote: I tired the standard instructions from Mark Summerfield's book.  Failed - 64 bit vs 32 bit.  I successfully installed a new version of Python (2.6.4), the XCode from the install disk, Qt (Carbon, I think - 32

Re: [PyQt] Need help installing PyQt on Snow Leopard

2009-12-19 Thread Darren Dale
On Fri, Dec 18, 2009 at 10:33 PM, Bruce Anderson bruce...@rogers.com wrote: Thanks, Darren - That's a good start, and I can try to follow that. My first challenge is getting back to the 64 bit python.  (By the way, is there a way to tell, once I have it, whether it is 32 bit or 64 bit?) I

Re: [PyQt] 64 bits and Snow Leopard make me crazy

2010-02-25 Thread Darren Dale
On Thu, Feb 25, 2010 at 8:33 AM, Massimo Di Stefano massimodisa...@yahoo.it wrote: Hi You need the 64bit version of Qt (cocoa) This assumes a 64-bit python-3 installation. How was python installed? My understanding is that the universal Mac binaries provided at python.org do not include support

Re: [PyQt] Problem in installing PyQt on Mac OS X 10.6.2

2010-04-05 Thread Darren Dale
On Mon, Apr 5, 2010 at 11:09 AM, Jebagnana Das jebagnana...@gmail.com wrote: Hi all, I found an archived discussion regarding the same problem. Click here to see the discussion. But the solution proposed here is bit confusing. I hope this issue must have been fixed by now(It was posted

[PyQt] question about size hints

2010-04-18 Thread Darren Dale
I have a question about size hints that can be illustrated with the simple example below. If I create my Test widget so it returns a size hint of (200,100), it is rendered with a size of 200, 100. If I create Test so it is 100x70, it is rendered to be 200x100. If I create test to be 1000x700, it

Re: [PyQt] question about size hints

2010-05-02 Thread Darren Dale
On Sun, May 2, 2010 at 1:51 AM, Yao Ko ko...@raptr.com wrote: On Sat, May 1, 2010 at 5:47 AM, Darren Dale dsdal...@gmail.com wrote: Please excuse me for bumping. Does anyone have a suggestion? On Sun, Apr 18, 2010 at 12:42 PM, Darren Dale dsdal...@gmail.com wrote: I have a question about size

[PyQt] question about dip observe handler

2010-07-18 Thread Darren Dale
I am reading the dip documentation at http://www.riverbankcomputing.co.uk/static/Docs/dip/complete_example.html , and have a question about the following: dip will invoke an observe() handler when the value of an attribute is set, even if the new value is the same as the old one. We therefore use

Re: [PyQt] question about dip observe handler

2010-07-19 Thread Darren Dale
On Mon, Jul 19, 2010 at 9:33 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 18 Jul 2010 18:11:15 -0400, Darren Dale dsdal...@gmail.com wrote: I am reading the dip documentation at http://www.riverbankcomputing.co.uk/static/Docs/dip/complete_example.html , and have a question

Re: [PyQt] question about dip observe handler

2010-07-20 Thread Darren Dale
On Tue, Jul 20, 2010 at 8:50 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Mon, 19 Jul 2010 11:13:14 -0400, Darren Dale dsdal...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:33 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 18 Jul 2010 18:11:15 -0400, Darren Dale dsdal

Re: [PyQt] ANN: dip v0.1 Released - An Application Development Framework for PyQt and Python v3

2010-07-20 Thread Darren Dale
Are there some files missing from the plugins example? When I run main.py from the plugins example, I get: Traceback (most recent call last): File main.py, line 3, in module from recipes.plugins import RecipeChooserPlugin File

Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7

2010-07-25 Thread Darren Dale
On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in

Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7

2010-07-26 Thread Darren Dale
On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6

[PyQt] question about dip plugins

2010-07-27 Thread Darren Dale
The dip documentation at http://www.riverbankcomputing.com/static/Docs/dip/plugins_tutorial.html mentions: ... When a plugin requests a service the plugin manager will choose which service is actually used. The plugin does not care about the particular service, its only concern is that it has an

[PyQt] dip unit tests

2010-08-04 Thread Darren Dale
I just noticed a problem when running the dip test suite with python-2.6 and unittest: File /Users/darren/Projects/dip/test/tests/dip_ui/test_mapping.py, line 26, in TestMapping @unittest.expectedFailure AttributeError: 'module' object has no attribute 'expectedFailure' If I install

[PyQt] question about dip models and dip io

2010-08-04 Thread Darren Dale
At the lab where I work, we generate ascii data files that contain an hierarchy of data. The hierarchy and the contents of the table can vary. I am trying to understand if it is possible to use dip to provide an interface to such data. I was thinking that each node in the hierarchy might be

Re: [PyQt] question about dip models and dip io

2010-08-05 Thread Darren Dale
On Thu, Aug 5, 2010 at 10:59 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 5 Aug 2010 10:13:27 -0400, Darren Dale dsdal...@gmail.com wrote: [...] Is there any documentation available on dynamically creating a new model type? You do it just like you would for any other Python

Re: [PyQt] ImportError: no module name PyQt4 (Windows 7, 64 bit)

2010-08-09 Thread Darren Dale
On Mon, Aug 9, 2010 at 6:41 AM, John McCabe j...@assen.demon.co.uk wrote:  Hi I've just installed PyQt4 with SIP on my PC and I'm getting the error ImportError: no module name PyQt4 when I try to run the qtdemo.pyw file in the examples folder (see below). My first thought was that my

[PyQt] dip model types, properties, and syntax

2010-08-09 Thread Darren Dale
I have a question about using dip model attributes as properties. The documentation at http://www.riverbankcomputing.com/static/Docs/dip/model_tutorial.html#attributes-are-properties gives an example: class ExampleModel(Model): name = Str def _get_name(self): return self._name

Re: [PyQt] dip model types, properties, and syntax

2010-08-14 Thread Darren Dale
On Sat, Aug 14, 2010 at 3:45 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Mon, 9 Aug 2010 09:45:12 -0400, Darren Dale dsdal...@gmail.com wrote: I have a question about using dip model attributes as properties. The documentation at http://www.riverbankcomputing.com/static/Docs/dip

Re: [PyQt] dip model types, properties, and syntax

2010-08-14 Thread Darren Dale
On Sat, Aug 14, 2010 at 8:25 AM, Darren Dale dsdal...@gmail.com wrote: On Sat, Aug 14, 2010 at 3:45 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Mon, 9 Aug 2010 09:45:12 -0400, Darren Dale dsdal...@gmail.com wrote: I have a question about using dip model attributes as properties

Re: [PyQt] dip model types, properties, and syntax

2010-08-25 Thread Darren Dale
On Wed, Aug 25, 2010 at 3:00 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 25 Aug 2010 14:27:55 -0400, Darren Dale dsdal...@gmail.com wrote: On Wed, Aug 25, 2010 at 1:17 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 14 Aug 2010 08:45:13 +0100, Phil Thompson p

Re: [PyQt] ANN: dip v0.2 Released

2010-09-09 Thread Darren Dale
On Thu, Sep 9, 2010 at 4:43 AM, Phil Thompson p...@riverbankcomputing.com wrote: dip v0.2 has been released and can be downloaded from the usual place. Most changes are in response to feedback gratefully received rather than new areas of functionality. Exciting changes! May I make a

[PyQt] question about dip.ui MenuBar

2010-09-10 Thread Darren Dale
I have a question about the menubar example at http://www.riverbankcomputing.co.uk/static/Docs/dip/ui_tutorial.html#menus . The example includes the following: - # We need a toolkit to create the widgets. toolkit = QtToolkit() # Create the main window. main_window = QMainWindow() #

Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7

2010-09-13 Thread Darren Dale
On Mon, Jul 26, 2010 at 9:34 AM, Darren Dale dsdal...@gmail.com wrote: On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p

Re: [PyQt] dip model types, properties, and syntax

2010-09-15 Thread Darren Dale
class ExampleModel(Model): name = Str() @name.getter def name(self): return self._name I have an additional suggestion to follow up on this syntax. If a model type's __call__ method were changed to call its getter method, rather than return the default value, I think it

Re: [PyQt] Bug in sip-4.11.1 and PyQt-4.7.7 ?

2010-09-27 Thread Darren Dale
On Mon, Sep 27, 2010 at 2:45 PM, Gerard Vermeulen gav...@gmail.com wrote:  Phil, when running the following code #!/usr/bin/env python # -*- coding: utf-8 -*- import PyQt4.Qt as Qt class MyWidget(Qt.QWidget):    def __init__(self, parent=None):        super(Qt.QWidget,

Re: [PyQt] Bug in sip-4.11.1 and PyQt-4.7.7 ?

2010-09-27 Thread Darren Dale
On Mon, Sep 27, 2010 at 3:02 PM, Vicente Sole s...@esrf.fr wrote: Hi Gerard, Quoting Gerard Vermeulen gav...@gmail.com:  Phil, when running the following code #!/usr/bin/env python # -*- coding: utf-8 -*- import PyQt4.Qt as Qt class MyWidget(Qt.QWidget):    def __init__(self,

[PyQt] trouble installing pyqt4 from source on fedora 13

2010-09-30 Thread Darren Dale
I just upgraded the OS on a computer at work to fedora 13, and I am attempting to install sip and pyqt4 from source (since the versions provided by the package manager are surprisingly out of date.) When I run python configure.py, I get the following: --- Determining the layout of your Qt

  1   2   >