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 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 listPyQt@riverbankcomputing.com http://www.r

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

[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
Bacallao wrote: > but the view will need to be pure pyqt, not dip? > > On Fri, Jul 8, 2011 at 1:13 PM, Darren Dale wrote: >> Have you considered trying to decouple your model and view, as >> described throughout the documentation? >> >> On Fri, Jul 8, 2011 a

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 wrote: > yes, I know, I read that in the docs, but, how to do something similar > to what I want to achieve? > > On Fri, Jul 8, 20

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 12:2

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 wrote: > On Fri, 25 Jul 2008 17:41:22 -0400, Darren Dale 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

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 wrote: > On Sun, 13 Mar 2011 15:01:53 -0400, Darren Dale > wrote: >> I've been learning about python's abstract base classes at >> http://www.python.org/dev/peps/pep-3119/ and >> http://docs.python.o

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

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

Re: [PyQt] pyqt-plot

2011-02-27 Thread Darren Dale
On Sun, Feb 27, 2011 at 5:43 AM, nimi pillai 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. In Ubuntu the plot

Re: [PyQt] Next PyQt and SIP Releases

2011-01-12 Thread Darren Dale
On Wed, Jan 12, 2011 at 5:05 PM, Darren Dale 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. O

Re: [PyQt] Next PyQt and SIP Releases

2011-01-12 Thread Darren Dale
On Thu, Oct 14, 2010 at 8:05 AM, Darren Dale wrote: > On Wed, Oct 13, 2010 at 3:13 PM, Phil Thompson > wrote: >> On Wed, 13 Oct 2010 11:50:21 -0400, Darren Dale >> wrote: >>> On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson >>> wrote: >>>> The

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 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 > impossible for

Re: [PyQt] Next PyQt and SIP Releases

2010-10-14 Thread Darren Dale
On Wed, Oct 13, 2010 at 3:13 PM, Phil Thompson wrote: > On Wed, 13 Oct 2010 11:50:21 -0400, Darren Dale > wrote: >> On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson >> wrote: >>> The current PyQt and SIP snapshots can be considered release > candidates. >&g

Re: [PyQt] Next PyQt and SIP Releases

2010-10-13 Thread Darren Dale
On Tue, Oct 12, 2010 at 8:12 AM, Phil Thompson 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 portfile with very minor

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 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 scoured > riverbankcomp

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 wrote: > On Fri, 1 Oct 2010 09:02:46 -0400, Darren Dale 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+

[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. -I/Users/darren/Downloads/PyQt-mac-gpl

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

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 wrote: > On Thu, 30 Sep 2010 10:16:27 -0400, Darren Dale > 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 >> provided by

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

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 wrote: > Hi Gerard, > > Quoting Gerard Vermeulen : > >>  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

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 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, self).__init__(pare

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 th

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 wrote: > On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson > wrote: >> On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale >> wrote: >>> On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson >>> wrote: >>>> The c

[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() # C

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

2010-09-09 Thread Darren Dale
On Thu, Sep 9, 2010 at 4:43 AM, Phil Thompson 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 suggestion for the docs at http://

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 wrote: > On Wed, 25 Aug 2010 14:27:55 -0400, Darren Dale > wrote: >> On Wed, Aug 25, 2010 at 1:17 PM, Phil Thompson >> wrote: >>> On Sat, 14 Aug 2010 08:45:13 +0100, Phil Thompson >>> wrote: >>>>

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

2010-08-25 Thread Darren Dale
On Wed, Aug 25, 2010 at 1:17 PM, Phil Thompson wrote: > On Sat, 14 Aug 2010 08:45:13 +0100, Phil Thompson > wrote: >> On Mon, 9 Aug 2010 09:45:12 -0400, Darren Dale > wrote: >>> I have a question about using dip model attributes as properties. The >>&g

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 wrote: > On Sat, Aug 14, 2010 at 3:45 AM, Phil Thompson > wrote: >> On Mon, 9 Aug 2010 09:45:12 -0400, Darren Dale wrote: >>> I have a question about using dip model attributes as properties. The >>>

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 wrote: > On Mon, 9 Aug 2010 09:45:12 -0400, Darren Dale wrote: >> I have a question about using dip model attributes as properties. The >> documentation at >> > http://www.riverbankcomputing.com/static/Docs/dip/model_tuto

[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] 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 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 PYTHONPATH needed so

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 wrote: > On Thu, 5 Aug 2010 10:13:27 -0400, Darren Dale wrote: [...] >> Is there any documentation available on dynamically creating a new model >> type? > > You do it just like you would for any other Python type by ca

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

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

[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 wrote: > On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale > wrote: >> On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson >> wrote: >>> The current dip snapshots now support Python v2.6 and v2.7 as well as >>>

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 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 series"), so I installed the s

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 from recipes.plugins import RecipeChooserPlugin File "/home/darren/Projects/dip/doc/examples/plugins/recipes/__init__.py

Re: [PyQt] question about dip observe handler

2010-07-20 Thread Darren Dale
On Tue, Jul 20, 2010 at 8:50 AM, Phil Thompson wrote: > On Mon, 19 Jul 2010 11:13:14 -0400, Darren Dale > wrote: >> On Mon, Jul 19, 2010 at 9:33 AM, Phil Thompson >> wrote: >>> On Sun, 18 Jul 2010 18:11:15 -0400, Darren Dale >>> wrote: >>>> I am

Re: [PyQt] question about dip observe handler

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

[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-03 Thread Darren Dale
On Mon, May 3, 2010 at 1:26 PM, Yao Ko wrote: > On Sun, May 2, 2010 at 5:05 AM, Darren Dale wrote: >> On Sun, May 2, 2010 at 1:51 AM, Yao Ko wrote: >>> On Sat, May 1, 2010 at 5:47 AM, Darren Dale wrote: >>>> Please excuse me for bumping. Does anyone have a sugges

Re: [PyQt] question about size hints

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

Re: [PyQt] question about size hints

2010-05-01 Thread Darren Dale
Please excuse me for bumping. Does anyone have a suggestion? On Sun, Apr 18, 2010 at 12:42 PM, Darren Dale wrote: > 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 rend

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

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 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 on Nov 2009). > Any

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 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 for x86_64. Darren ___

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 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 guess "import sys;

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 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 bit?),  and SIP.

Re: [PyQt] Install script for Python applications

2009-12-12 Thread Darren Dale
On Sat, Dec 12, 2009 at 9:52 AM, Lukas Hetzenecker 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: > >  - Should wh

Re: [PyQt] Install script for Python applications

2009-12-11 Thread Darren Dale
On Fri, Dec 11, 2009 at 6:11 AM, Lukas Hetzenecker 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 really sim

Re: [PyQt] PyQt Licensing Issue

2009-12-08 Thread Darren Dale
On Tue, Dec 8, 2009 at 8:14 AM, Giovanni Bajo wrote: > On Tue, 08 Dec 2009 12:25:15 +, Phil Thompson > wrote: >> On Tue, 8 Dec 2009 17:46:20 +0530 (IST), Prashant Saxena >> wrote: >>> Hi, >>> >>> I am planning to release the beta version(Testing) of an application >>> written using python+Py

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

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 wrote: > Il giorno Wed, 25 Nov 2009 07:31:44 -0500 > Darren Dale ha scritto: > >> On Wed, Nov 25, 2009 at 2:58 AM, Antonio Valentino >> wrote: >> > Hi Darren, >> > >> > Il giorno Mon, 23 Nov

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 wrote: > Hi Darren, > > Il giorno Mon, 23 Nov 2009 21:42:37 -0500 > Darren Dale ha scritto: > >> On Mon, Nov 23, 2009 at 8:25 PM, Kareem Yusuf >> wrote: >> > When I try to install PyQt, and run Make I get

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 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 > /Library/Frameworks/QtCore.framework/Headers/QMetaType:1, >

Re: [PyQt] newbie questions...

2009-11-07 Thread Darren Dale
On Thu, Aug 14, 2008 at 3:59 PM, Phil Thompson wrote: > On Tue, 12 Aug 2008 20:31:37 +0100, Chris Withers > 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 technical limitation. It is to pr

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 wrote: > On Mon, Oct 19, 2009 at 9:50 PM, William Kyngesburye > 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 sourc

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

2009-10-20 Thread Darren Dale
On Mon, Oct 19, 2009 at 9:50 PM, William Kyngesburye 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 source. I'm quite comfortable compiling from source. The value I find in a package manager is 1)

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 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 on using the sto

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

2009-10-19 Thread Darren Dale
> export QTDIR=/Developer/Applications/Qt > 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 >> some

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

[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 Hetzenecker 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 the Tab

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 wrote: > Hi again, > > Darren Dale 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 to r

Re: [PyQt] Re: question about resizing behavior

2009-07-07 Thread Darren Dale
On Tue, Jul 7, 2009 at 2:50 AM, Ole Streicher wrote: > Hi Darren, > > Darren Dale 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 to resize pr

Re: [PyQt] Re: question about resizing behavior

2009-07-06 Thread Darren Dale
On Fri, Jul 3, 2009 at 3:37 AM, Ole Streicher wrote: > Hello Darren, > > Darren Dale writes: > > Somebody reported some strange resizing behavior at the matplotlib > mailing > > list. > > The "somebody" was me :-) > > Here some additional informatio

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

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 4:57 PM, Vicente Sole wrote: > Quoting Darren Dale: > > On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: >> >> One last point, however: I think Armando's suggestion of passing the >> object, >> and not the object's id

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: > On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale 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, &q

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale 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é" >> wrote: >> > Hello, >> > >> >

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson wrote: > On Wed, 03 Jun 2009 17:37:29 +0200, "V. Armando Solé" > wrote: > > Hello, > > > > The problem can be solved as shown below. > > > > It seems the linux 32 bit implementation gets confused in > > createIndex(row, column, a) when a is not an in

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:37 AM, Darren Dale wrote: > > > On Wed, Jun 3, 2009 at 10:23 AM, "V. Armando Solé" wrote: > >> Darren Dale wrote: >> >>> Hi Armando, >>> >>> Relatedly, I think there is a small problem with the PyQt4 docume

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:23 AM, "V. Armando Solé" 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

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é" 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() meth

Re: [PyQt] pyuic4 segfaults with 20090601 snapshots

2009-06-02 Thread Darren Dale
On Tue, Jun 2, 2009 at 7:22 PM, Demetrius Cassidy wrote: > > 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 have problems bui

[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 gcc-4

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

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

Re: [PyQt] PyQt Licensing

2009-05-06 Thread Darren Dale
On Wed, May 6, 2009 at 10:45 AM, Henrik Pauli wrote: > 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 anything to do

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 wrote: > On Mon, 20 Apr 2009 08:22:54 +0200, Simon Edwards > wrote: > > Phil Thompson wrote: > >> On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards > >> wrote: > >>> Phil Thompson wrote: > sipForceConvertTo_*() (and related functions) are inter

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 wrote: > I've already try that but I have the following message : > QWidget: Must construct a QApplication before a QPaintDevice > > Christophe. > > > Demetrius Cassidy a écrit : > >> from PyQt4.QtGui imp

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 wrote: > > > On Mon, Apr 13, 2009 at 3:43 PM, Darren Dale wrote: > >> >> >> On Mon, Apr 13, 2009 at 3:11 PM, Andreas Pakulat wrote: >> >>> On 13.04.09 10:27:56, Darren Dale wrote: >>> >

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 wrote: > > > On Mon, Apr 13, 2009 at 3:11 PM, Andreas Pakulat wrote: > >> On 13.04.09 10:27:56, Darren Dale wrote: >> > On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat wrote: >> > > On 13.04.09 14:11:46

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 wrote: > On 13.04.09 10:27:56, Darren Dale wrote: > > On Mon, Apr 13, 2009 at 9:58 AM, Andreas Pakulat wrote: > > > On 13.04.09 14:11:46, Arnold Krille wrote: > > > > It is a pointer for internal purposes,

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 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 except s

[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 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 a > refe

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

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

[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 = QtCore.QVariant(QtCore.Qt.Align

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

[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 wrote: > On Tue, Mar 10, 2009 at 8:03 PM, Darren Dale wrote: > >> On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale wrote: >> >>> Hello, >>> >>> I am trying to create a simple model and view for a simple

[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 wrote: > On Tue, Mar 10, 2009 at 5:28 PM, Darren Dale wrote: > >> Hello, >> >> I am trying to create a simple model and view for a simple nested >> dictionary like d: >> >> c1 = {'id':1, '

[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 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, '

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

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 wrote: > On Sat, 7 Mar 2009 18:06:12 +0100, Detlev Offenbach > wrote: > > Hi, > > > > please include the PyQt4 documentation as a compressed Qt Help files > > (*.qch) > > as well. eric4 will support Qt Help collections starting with the first > 4.4 >

Re: Re: [PyQt] MatplotLib and PyQt

2009-02-08 Thread Darren Dale
On Sun, Feb 8, 2009 at 11:48 AM, 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 > t4.html

  1   2   >