Re: [PyQt] PySide app seems to ignore SIGTERM during shutdown when run at startup using ~/.config/autostart

2013-06-12 Thread Darren Dale
On Wed, Jun 12, 2013 at 2:58 AM, Luis Pugoy lpu...@insynchq.com wrote: My PySide app seems to ignore the TERM signal [...] Could anyone help? I suggest directing your question to the PySide mailing list. ___ PyQt mailing list

[PyQt] dip: question about changing UI elements based on task

2012-07-27 Thread Darren Dale
I'm developing an application that has to support various loosely coupled tasks. For example, take an IDE where you switch between code editing and UI design tasks. These two tasks would each contribute their own central window, dock windows, menu items, and tools bars to the main window. Each

[PyQt] does the dip package provide version information?

2012-07-25 Thread Darren Dale
Is there a way to check dip's version information after importing? Something like: import dip print(dip.__version__) Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Can dip record events to create an automation script?

2012-07-19 Thread Darren Dale
Hello, I develop tools for analysis of scientific data. I'd like to develop an application where the end-user's interaction with the GUI can be recorded and written to a script that could be run to reproduce the analysis. Is this possible with dip? Thanks, Darren

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
http://www.riverbankcomputing.co.uk/static/Docs/dip/model_tutorial.html#models-and-init : The handling of the initial values of attributes is performed by the meta-class of the Model class. This is done before the model’s __init__() method (if there is one) is called. On Fri, Jul 8, 2011 at

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
Have you considered trying to decouple your model and view, as described throughout the documentation? On Fri, Jul 8, 2011 at 1:04 PM, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: yes, I know, I read that in the docs, but, how to do something similar to what I want to achieve? On

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
Bacallao jmr...@gmail.com wrote: but the view will need to be pure pyqt, not dip? On Fri, Jul 8, 2011 at 1:13 PM, Darren Dale dsdal...@gmail.com wrote: Have you considered trying to decouple your model and view, as described throughout the documentation? On Fri, Jul 8, 2011 at 1:04 PM, Lic

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

2011-04-03 Thread Darren Dale
On Sat, Jul 26, 2008 at 3:48 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 25 Jul 2008 17:41:22 -0400, Darren Dale dsdal...@gmail.com wrote: I use a library that provides rudimentary thread safety of its objects and file I/O using threading.RLock from the python standard

Re: [PyQt] thoughts about dip interfaces and python abstract base classes

2011-03-14 Thread Darren Dale
Hi Phil, On Mon, Mar 14, 2011 at 5:11 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 13 Mar 2011 15:01:53 -0400, Darren Dale dsdal...@gmail.com wrote: I've been learning about python's abstract base classes at http://www.python.org/dev/peps/pep-3119/ and http://docs.python.org

[PyQt] thoughts about dip interfaces and python abstract base classes

2011-03-13 Thread Darren Dale
I've been learning about python's abstract base classes at http://www.python.org/dev/peps/pep-3119/ and http://docs.python.org/py3k/library/abc.html . The PEP mentions that there is considerable overlap between ABCs and interfaces, and I'm rereading the dip documentation on interfaces now. If I

Re: [PyQt] thoughts about dip interfaces and python abstract base classes

2011-03-13 Thread Darren Dale
On Sun, Mar 13, 2011 at 3:01 PM, Darren Dale dsdal...@gmail.com wrote: I've been learning about python's abstract base classes at http://www.python.org/dev/peps/pep-3119/ and http://docs.python.org/py3k/library/abc.html . The PEP mentions that there is considerable overlap between ABCs

Re: [PyQt] pyqt-plot

2011-02-27 Thread Darren Dale
On Sun, Feb 27, 2011 at 5:43 AM, nimi pillai nimi.snowhi...@gmail.com wrote: Hi all, I am totally new to python programming and especially pyqt..  I tried to use plot in a small GUI application which should produce a new figure window when we click the push button. It works well in Windows.

Re: [PyQt] Next PyQt and SIP Releases

2011-01-12 Thread Darren Dale
On Thu, Oct 14, 2010 at 8:05 AM, Darren Dale dsdal...@gmail.com wrote: On Wed, Oct 13, 2010 at 3:13 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 13 Oct 2010 11:50:21 -0400, Darren Dale dsdal...@gmail.com wrote: On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson p

Re: [PyQt] Next PyQt and SIP Releases

2011-01-12 Thread Darren Dale
On Wed, Jan 12, 2011 at 5:05 PM, Darren Dale dsdal...@gmail.com wrote: I can reproduce the test failures I reported previously in this thread on both OS X and Windows 7. I need to amend that. The failures on mac occur at different places in the same test suites. On OS X

Re: [PyQt] ANN: PyQt v4.8.1 Released

2010-11-08 Thread Darren Dale
On Mon, Nov 8, 2010 at 8:11 AM, John Posner jjpos...@optimum.net wrote: On 10/30/2010 7:47 AM, Phil Thompson wrote: PyQt v4.8.1 has been released and is available from the usual place. Over the past year, downloads from http://www.riverbankcomputing.co.uk/software/pyqt/download have been

Re: [PyQt] Next PyQt and SIP Releases

2010-10-14 Thread Darren Dale
On Wed, Oct 13, 2010 at 3:13 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 13 Oct 2010 11:50:21 -0400, Darren Dale dsdal...@gmail.com wrote: On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson p...@riverbankcomputing.com wrote: The current PyQt and SIP snapshots can be considered

Re: [PyQt] Next PyQt and SIP Releases

2010-10-13 Thread Darren Dale
On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson p...@riverbankcomputing.com wrote: The current PyQt and SIP snapshots can be considered release candidates. Now is a good time to check them against your favorite applications. I just installed qt-4.7 on snow leopard, using macports (using a custom

Re: [PyQt] PyQt support for Qt 4.7

2010-10-04 Thread Darren Dale
On Mon, Oct 4, 2010 at 8:35 AM, Jonathan Harper j...@white-walls.net wrote: I’ve been waiting for Qt 4.7 for some time now, as QFileSystemModel has a directoryLoaded signal that I need to use. I’m wondering if there is a roadmap for estimated release date for PyQt support for Qt 4.7. I’ve

[PyQt] potential bug in PyQt4 3c67710d0c58 snapshot

2010-10-01 Thread Darren Dale
I've installed last night's sip snapshot. When I try to make last night's PyQt snapshot, I get the following error: /usr/bin/g++-4.2 -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I.

Re: [PyQt] potential bug in PyQt4 3c67710d0c58 snapshot

2010-10-01 Thread Darren Dale
On Fri, Oct 1, 2010 at 9:16 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 1 Oct 2010 09:02:46 -0400, Darren Dale dsdal...@gmail.com wrote: I've installed last night's sip snapshot. When I try to make last night's PyQt snapshot, I get the following error: /usr/bin/g++-4.2 -c

[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

Re: [PyQt] trouble installing pyqt4 from source on fedora 13

2010-09-30 Thread Darren Dale
On Thu, Sep 30, 2010 at 10:33 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 30 Sep 2010 10:16:27 -0400, Darren Dale dsdal...@gmail.com wrote: 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

Re: [PyQt] trouble installing pyqt4 from source on fedora 13

2010-09-30 Thread Darren Dale
On Thu, Sep 30, 2010 at 12:09 PM, Baz Walter baz...@ftml.net wrote: On 30/09/10 16:24, Darren Dale wrote: I tried also to find how the fedora devs managed to patch and build pyqt in the fedora environment, but I can't find anything. Aren't they compelled by the terms of the GPL to make

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,

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] 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

[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] 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

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] 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] 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] 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

[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

[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

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

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] 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] 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

[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 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 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] 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

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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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

[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.

[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

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

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

[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] 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] 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

[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] 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

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

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] 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] 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] 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

[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

[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] 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] 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] 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] 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

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

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] 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: [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] 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] 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

  1   2   >