Re: [PyQt] sipdistutils.py

2011-04-21 Thread Giovanni Bajo
On Thu, 21 Apr 2011 19:17:47 +0100, Jeremy Sanders jer...@jeremysanders.net wrote: Hi - Would it be possible to verify the copyright owner and the license of sipdistutils.py? It doesn't have a copyright header at the top of the file. Is it copyright Giovanni Bajo and licensed under

[PyQt] KeepReference in constructors for wrapped instances

2011-02-15 Thread Giovanni Bajo
checked the changelog and the Mercurial history and I could only find minimal changes in the keep reference code. Thanks! -- Giovanni Bajo :: ra...@develer.com Develer S.r.l. :: http://www.develer.com My Blog: http://giovanni.bajo.it Last post: Compile-time Function Execution in D

Re: [PyQt] Mixture of C++/Python and threading

2011-02-09 Thread Giovanni Bajo
that all your bindings/plugins/whatever that are sip-based are compiled with the -g flag. -- Giovanni Bajo :: ra...@develer.com Develer S.r.l. :: http://www.develer.com My Blog: http://giovanni.bajo.it Last post: Compile-time Function Execution in D

Re: [PyQt] Switching languages dynamically example

2010-12-08 Thread Giovanni Bajo
something like this, it's just that most people don't think it's worth it, probably :) -- Giovanni Bajo :: Develer S.r.l. ra...@develer.com :: http://www.develer.com Blog: http://giovanni.bajo.it Last post: Compile-time Function Execution in D

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
Python 2 support you can simply drop the original v2 source code and use the generated version as new basis for development. -- Giovanni Bajo :: Develer S.r.l. ra...@develer.com :: http://www.develer.com Blog: http://giovanni.bajo.it Last post: Compile-time Function Execution in D

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at 16:06 +, Phil Thompson wrote: I've added a roadmap for SIP v5 at... http://www.riverbankcomputing.com/software/sip/roadmap

Re: [PyQt] SIP v5 Roadmap

2010-11-28 Thread Giovanni Bajo
On dom, 2010-11-28 at 18:17 +, Phil Thompson wrote: On Sun, 28 Nov 2010 18:26:58 +0100, Giovanni Bajo ra...@develer.com wrote: On dom, 2010-11-28 at 15:12 +, Phil Thompson wrote: On Sun, 28 Nov 2010 15:35:38 +0100, Giovanni Bajo ra...@develer.com wrote: On lun, 2010-11-22 at 16

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

2010-11-08 Thread Giovanni Bajo
saturated (very high ping time)? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Giovanni Bajo
be possible to use memoryview's method to mutate the buffer, without having to come up with a different API for sip.voidptr. -- Giovanni Bajo :: Develer S.r.l. ra...@develer.com :: http://www.develer.com Blog: http://giovanni.bajo.it Last post: Compile-time Function Execution in D

Re: [PyQt] Access to QSharedMemory with buffer protocol

2010-11-02 Thread Giovanni Bajo
On mar, 2010-11-02 at 13:57 +0200, Hans-Peter Jansen wrote: On Tuesday 02 November 2010, 11:26:46 Giovanni Bajo wrote: On mar, 2010-11-02 at 10:16 +, Phil Thompson wrote: On Tue, 2 Nov 2010 00:00:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, end of July

Re: [PyQt] PyQt support for Qt 4.7

2010-10-10 Thread Giovanni Bajo
On ven, 2010-10-08 at 11:04 +0100, Phil Thompson wrote: On Fri, 08 Oct 2010 09:05:47 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 08 Oct 2010 01:08:08 +0200, Giovanni Bajo ra...@develer.com wrote: On Thu, 07 Oct 2010 16:34:41 +0100, Phil Thompson p

Re: [PyQt] PyQt support for Qt 4.7

2010-10-07 Thread Giovanni Bajo
it might be sufficient to duplicate the metaobject information and then forward a few functions like invoke(). It's ugly, but at least it's all internal to PyQt and you can expose the correct API to Python users. When you get this fixed with Nokia, you can skip all this. -- Giovanni Bajo :: ra

Re: [PyQt] PyQt support for Qt 4.7

2010-10-04 Thread Giovanni Bajo
On lun, 2010-10-04 at 18:42 +0200, Hans-Peter Jansen wrote: On Monday 04 October 2010, 17:52:40 Giovanni Bajo wrote: On 10/4/2010 3:07 PM, Phil Thompson wrote: On Mon, 4 Oct 2010 07:35:00 -0500, Jonathan Harperj...@white-walls.net wrote: I've been waiting for Qt 4.7 for some time

[PyQt] Concatenate single-file: need /bigobj

2010-06-08 Thread Giovanni Bajo
to do this modification? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Build a windows exe from a gui+database application

2010-05-29 Thread Giovanni Bajo
that connects with mysql, i get the error: Driver not loaded Driver not loaded What can i do to get a working exe ? Do anybody has a working setup.py to use with py2exe ? Would be easiest with another tool ? It should work out-of-the-box with PyInstaller. -- Giovanni Bajo :: Develer

[PyQt] Compiling WebKit in static build

2010-05-28 Thread Giovanni Bajo
such as: QMAKE_LIBS_WEBKIT = shlwapi.lib version.lib After I add it, it is sufficient the attached patch to sip. I will submit the qmake.conf patch to Nokia soon. It's well possible that they never used webkit in a static link scenario. -- Giovanni Bajo Develer S.r.l. http://www.develer.com Index

Re: [PyQt] signals to python-alive, Qt-dead objects

2010-04-23 Thread Giovanni Bajo
the Python wrapper will be garbage-collected) with sip.delete(). -- Giovanni Bajo :: ra...@develer.com Develer S.r.l. :: http://www.develer.com My Blog: http://giovanni.bajo.it Last post: Grey on black: combining greylisting with blacklists ___ PyQt

[PyQt] Missing error detection in consolidated module

2010-03-10 Thread Giovanni Bajo
it shouldn't break anything, and it would be detecting serious installation issues like the one I pasted. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Python wrappers for QML/ Qt Quick?

2010-03-09 Thread Giovanni Bajo
classes to QML, that is implement QMLElement in Python rather than in C++, and make them available to QML itself. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Python wrappers for QML/ Qt Quick?

2010-03-09 Thread Giovanni Bajo
On Tue, 2010-03-09 at 19:57 +0100, Attila Csipa wrote: On Tuesday 09 March 2010 15:54:54 Ville M. Vainio wrote: On Tue, Mar 9, 2010 at 2:07 PM, Giovanni Bajo ra...@develer.com wrote: It might make more sense to have a way to export PyQt classes to QML, that is implement QMLElement

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-09 Thread Giovanni Bajo
programs), because the code optionally imports it. Note that PyInstaller takes automatically care of this and other PyQt packaging issues (eg: plugins). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-09 Thread Giovanni Bajo
) At startup, load the resource file from the temporary directory (see manual) -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Clarifications on new versions of SIP/PyQt

2010-01-18 Thread Giovanni Bajo
, does it mean that it is active by default when compiling PyQt on Linux/Mac? If not, how was the result achieved? Why it does not apply to Windows as well? Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] Clarifications on new versions of SIP/PyQt

2010-01-18 Thread Giovanni Bajo
Il giorno lun, 18/01/2010 alle 11.33 +, Phil Thompson ha scritto: On Mon, 18 Jan 2010 12:11:20 +0100, Giovanni Bajo ra...@develer.com wrote: Hi Phil, I read in the SIP 4.10 changelog: Added the -P command line option to build modules with protected redefined to public

Re: [PyQt] Different Behavior between Python 2.6 and Python 3.1.1

2010-01-13 Thread Giovanni Bajo
#selecting-incompatible-apis -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem freezing a Sqlite based PyQT app

2010-01-12 Thread Giovanni Bajo
*any* support for picking up implicit dependencies. For instance, for PyQt, it doesn't know about Qt plugins so it would not pick up anything. PyInstaller (http://www.pyinstaller.org/), instead, should work out of the box. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Support for Qt v4.6

2009-12-22 Thread Giovanni Bajo
to build sipgen, the latter for siplib). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt Licensing Issue

2009-12-10 Thread Giovanni Bajo
commercial proprietary applications. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt Licensing Issue

2009-12-08 Thread Giovanni Bajo
Nokia requires that you buy a commercial license at the beginning of development, not at release time. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] Const-correctness of sipCpp

2009-12-04 Thread Giovanni Bajo
with containers, for instance). I believe it would make sense for sipCpp to be a const pointer type when accessed from within the %MethodCode of a const method. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] QT required or only PyQT is sufficient?

2009-12-01 Thread Giovanni Bajo
be compatible with the GPL and the LGPL. Nitpick here: any LGPLv2 can be changed to GPLv2, so if the LGPLv2 terms were not acceptable, the user can simply adhere to the GPLv2 terms. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing

[PyQt] QVariant misunderstandings

2009-11-25 Thread Giovanni Bajo
(a).type() 127 Why should a plain QString be inserted within the QVariant as a custom type? I'm using SIP 4.9.3 and PyQt 4.6.2 (unless I've broken something with my internal merges). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing

Re: [PyQt] QVariant misunderstandings

2009-11-25 Thread Giovanni Bajo
On Wed, 2009-11-25 at 14:56 +, Phil Thompson wrote: On Wed, 25 Nov 2009 15:44:25 +0100, Giovanni Bajo ra...@develer.com wrote: Hi Phil, I must say I have not quite followed up all the developments wrt QVariant. I'm using Python 2 and thus the QVariant v1 API. Shouldn't

[PyQt] Re: Updates to sipdistutils.py

2009-11-15 Thread Giovanni Bajo
Il giorno dom, 15/11/2009 alle 11.39 +, Phil Thompson ha scritto: On Fri, 13 Nov 2009 20:53:34 +0100, Giovanni Bajo ra...@develer.com wrote: Hi Phil, please find attached an improved sipdistutils.py, and the diff against current version for reference. Modifications

Re: [PyQt] Re: Updates to sipdistutils.py

2009-11-15 Thread Giovanni Bajo
Il giorno dom, 15/11/2009 alle 13.13 +, Phil Thompson ha scritto: On Sun, 15 Nov 2009 13:36:52 +0100, Giovanni Bajo ra...@develer.com wrote: Il giorno dom, 15/11/2009 alle 11.39 +, Phil Thompson ha scritto: On Fri, 13 Nov 2009 20:53:34 +0100, Giovanni Bajo ra...@develer.com wrote

Re: [PyQt] Bug in sip-4.9.2-snapshot-20091108 handling virtual methods

2009-11-13 Thread Giovanni Bajo
this automatically yet, but I have a patch in progress. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Updates to sipdistutils.py

2009-11-13 Thread Giovanni Bajo
modules as well) in the setup.py. -- Giovanni Bajo Develer S.r.l. http://www.develer.com --- /tmp/sipdistutils.py 2009-11-09 04:30:17.0 +0100 +++ sipdistutils.py 2009-10-28 19:02:17.0 +0100 @@ -8,14 +8,35 @@ from distutils.dep_util import newer, newer_group import os import sys

[PyQt] New crasher

2009-11-02 Thread Giovanni Bajo
On Tue, 2009-10-20 at 09:41 +0100, Phil Thompson wrote: On Fri, 16 Oct 2009 19:42:20 +0200, Giovanni Bajo ra...@develer.com wrote: On 10/16/2009 3:38 PM, Phil Thompson wrote: On Fri, 16 Oct 2009 15:31:08 +0200, Giovanni Bajo ra...@develer.com wrote: On 10/16/2009 10:10 AM, Phil Thompson

Re: [PyQt] Garbage collection, signals to partial functions

2009-10-29 Thread Giovanni Bajo
to post testcases that do actually fail (with an assert) when a mistake is detected :) -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] New optimization in SIP causes double-deletion

2009-10-29 Thread Giovanni Bajo
it but please send it by mail) -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Monkey-patcing virtual methods with functions: change in behaviour

2009-10-29 Thread Giovanni Bajo
what Python itself does when monkey-patching a method with a function; with regular Python objects, the function is not passed 'self' when it's invoked as a method. What's your position on this? Was this change in behaviour a rationale choice or just an unwanted regression? Thanks! -- Giovanni Bajo

Re: [PyQt] Monkey-patcing virtual methods with functions: change in behaviour

2009-10-29 Thread Giovanni Bajo
On Thu, 29 Oct 2009 21:40:06 +0200, Hans-Peter Jansen h...@urpla.net wrote: On Thursday 29 October 2009, 18:07:33 Giovanni Bajo wrote: Hi Phil, it looks like SIP 4.9 changed behaviour wrt monkey-patching of virtual methods. If you use a regular Python function (or a lambda) to do the monkey

Re: [PyQt] Segfault in PyQt 4.6.1

2009-10-29 Thread Giovanni Bajo
want to destroy an application). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Regressions on destruction of objects?

2009-10-28 Thread Giovanni Bajo
) QObject.connect(a, SIGNAL(QUIT()), myslot) del a assert len(called) == 2, len(called) = I would say this should work, right? -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Regressions on destruction of objects?

2009-10-28 Thread Giovanni Bajo
On Wed, 28 Oct 2009 22:14:41 +, Phil Thompson p...@riverbankcomputing.co.uk wrote: On Wed, 28 Oct 2009 19:35:44 +0100, Giovanni Bajo ra...@develer.com wrote: Hi Phil, I'm testing PyQt 4.6.1 and SIP 4.9.1 over my small regression testsuite (it contains testcases for bugs that I have

Re: [PyQt] Keyword Argument Support in PyQt and SIP

2009-10-27 Thread Giovanni Bajo
? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Single-platform distribution

2009-10-26 Thread Giovanni Bajo
Hello Phil, given that Qt has already moved to a single all-platform source code distribution (for commercial licenses), would you evaluate doing the same for PyQt? It simplifies importing PyQt as vendor branch a lot. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-25 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: PyQt4 and threading

2009-10-24 Thread Giovanni Bajo
regularly and then work on a chunk in the connected slot. Or just call qApp.processEvents() every once in a while during the main loop. You can pair this with setUpdatesEnabled() calls if you don't want to display partially-updated contents. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Giovanni Bajo
confusion (eg: PyQt r109). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Next Releases of PyQt and SIP

2009-10-20 Thread Giovanni Bajo
On Tue, 2009-10-20 at 09:41 +0100, Phil Thompson wrote: On Fri, 16 Oct 2009 19:42:20 +0200, Giovanni Bajo ra...@develer.com wrote: On 10/16/2009 3:38 PM, Phil Thompson wrote: On Fri, 16 Oct 2009 15:31:08 +0200, Giovanni Bajo ra...@develer.com wrote: On 10/16/2009 10:10 AM, Phil Thompson

Re: [PyQt] Next Releases of PyQt and SIP

2009-10-16 Thread Giovanni Bajo
not sure whenever I will have a reproduction recipe ready. Is there anything specific to focus stuff that rings a bell to you? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] QApplication destructor

2009-10-09 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QtWebKit to PDF rendering

2009-09-23 Thread Giovanni Bajo
a look at the code. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Strange behaviour QStringList

2009-09-16 Thread Giovanni Bajo
a list of strings, not a list of lists. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt on OSX Snow Leopard notes

2009-09-11 Thread Giovanni Bajo
build. Qt 4.7 will switch to Cocoa (and 64-bit) as default. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Unicode characters in QTreeView

2009-09-09 Thread Giovanni Bajo
didn't show us :) What kind of datatype does python-mpd extract? Is it 8-bit str or unicode? If it's 8-bit str, you need to decode it properly before passing it to Qt. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] help

2009-09-02 Thread Giovanni Bajo
under Linux with PyQt4, you can attempt to run it with PyQt4 under Windows. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] random deadlocks in pyqt application

2009-09-01 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Sip iterator question

2009-08-31 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] random deadlocks in pyqt application

2009-08-30 Thread Giovanni Bajo
that the QThreads are not being used in the way that they should: http://qt.nokia.com/doc/4.5/threads.html#threads-and-qobjects Make sure that you are following all the advices in there. Also, don't use Python's threading module if you're going to touch Qt's objects. -- Giovanni Bajo Develer

Re: [PyQt] Multi-tasking and GIL

2009-08-04 Thread Giovanni Bajo
of the above disclaimer. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] underlying c/c++ object has been deleted

2009-08-03 Thread Giovanni Bajo
/graphics-dojo/trees/master/webcapture following is the entire code. when i remove the QObject connect, it works but breaks on other 'SLOT()' in the code. You fail to invoke QObject.__init__() in your constructor. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Is PyQt really freeing memory?

2009-08-02 Thread Giovanni Bajo
leak to me. I tried stuffing gc.collect() in there (after you free the object list) but, as expected, it does not make a difference. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] sipconfig.py: sip_bin without extension

2009-07-28 Thread Giovanni Bajo
the shell completes it. I also have a pending patch to sipdistutils (which I will submit soon) which needs access to the actual file on disk. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] /Transfer/ annotation not respected?

2009-07-27 Thread Giovanni Bajo
.py, line 20, in module assert QGLContext.currentContext() is not None AssertionError ctx should be transferred to C++ in the constructor call; if I look at qgl.sip, the argument is correctly marked with /Transfer/. This used to work with PyQt 4.4.2 and SIP 4.7.4. -- Giovanni Bajo Develer

Re: [PyQt] Re: QStyle manipulations

2009-07-27 Thread Giovanni Bajo
within my widget, but the margins are controlled via private QWidget methods and attributes - unreachable from PyQt. Isn't it possible to adjust the margins through CSS? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing list

Re: [PyQt] SIP 4.8: regression in div/truediv

2009-07-26 Thread Giovanni Bajo
On sab, 2009-07-25 at 17:24 +0100, Phil Thompson wrote: On Sat, 25 Jul 2009 03:34:38 +0200, Giovanni Bajo ra...@develer.com wrote: On Fri, 24 Jul 2009 22:53:23 +0100, Phil Thompson p...@riverbankcomputing.co.uk wrote: On Fri, 24 Jul 2009 20:43:10 +0200, Giovanni Bajo ra...@develer.com

[PyQt] Small bug in PyQt's configure.py

2009-07-24 Thread Giovanni Bajo
to the *former* priority in the include order; the latter is usually the system include dir where a different sip.h might be installer. You want to change .append() to .insert(0,...). Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt

[PyQt] SIP 4.8: regression in div/truediv

2009-07-24 Thread Giovanni Bajo
filled. Is this a wanted change in behaviour? And if so, how am I supposed to fix it? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] SIP 4.8: regression in div/truediv

2009-07-24 Thread Giovanni Bajo
On Fri, 24 Jul 2009 22:53:23 +0100, Phil Thompson p...@riverbankcomputing.co.uk wrote: On Fri, 24 Jul 2009 20:43:10 +0200, Giovanni Bajo ra...@develer.com wrote: Hello, I'm wrapping with SIP a global C++ operator/() overload, whose first argument is a SIP-wrapped class (within the same

[PyQt] SIP feature request

2009-07-21 Thread Giovanni Bajo
. Does this make sense? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] SIP feature request

2009-07-21 Thread Giovanni Bajo
On Tue, 2009-07-21 at 17:18 +0100, Phil Thompson wrote: On Tue, 21 Jul 2009 18:07:07 +0200, Giovanni Bajo ra...@develer.com wrote: Hello, in complex projects using several inter-dependent sip modules, it's getting harder and harder to correctly track dependencies so that the minimum

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

2009-07-14 Thread Giovanni Bajo
had spoken against binding the API change to the Python v3 change, but the default is irrelevant to me. As long as both APIs are available on both Python versions through a simple function call at startup, I'm perfectly fine. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Is it possible to embed a font in a PyQt application?

2009-07-12 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QImage constructors

2009-07-09 Thread Giovanni Bajo
want to explore the usage of bytes() vs bytearray(). Let me know if it makes sense. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] SIP: exposing C++ shift operators

2009-07-09 Thread Giovanni Bajo
/; but it doesn't work because SIP generates this code: __lshift__(*a0, *a1); It would work if it generated this: operator(*a0, *a1); Does this make sense? Is it a simple fix that I can do myself? Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com

[PyQt] Function pointers and SIP

2009-06-18 Thread Giovanni Bajo
Hi Phil, given a C++ object where you can register callbacks such as: void registerCallback(void (*cb)(void*), void* user_data); or void registerCallback(std::tr1::functionvoid (void) cb); how would you wrap them in SIP? Is there some code in PyQt that I can look at? -- Giovanni

Re: [PyQt] Function pointers and SIP

2009-06-18 Thread Giovanni Bajo
On gio, 2009-06-18 at 19:01 +0100, Phil Thompson wrote: On Thu, 18 Jun 2009 19:40:08 +0200, Giovanni Bajo ra...@develer.com wrote: Hi Phil, given a C++ object where you can register callbacks such as: void registerCallback(void (*cb)(void*), void* user_data

Re: [PyQt] How about a mailing-list dedicated to Riverbank announces ?

2009-06-15 Thread Giovanni Bajo
really need all PyQt discussions Bes regards, Jul. ... or the news page could feature a RSS. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] QSettings.registerFormat unavailable in PyQt4?

2009-06-06 Thread Giovanni Bajo
On Sat, 06 Jun 2009 11:02:18 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 06 Jun 2009 02:56:55 +0200, Giovanni Bajo ra...@develer.com wrote: On Sat, 6 Jun 2009 01:19:39 +0200, David Boddie da...@boddie.org.uk wrote: On Fri Jun 5 19:25:01 BST 2009, Giovanni Bajo wrote

Re: [PyQt] QSettings.registerFormat unavailable in PyQt4?

2009-06-05 Thread Giovanni Bajo
On Sat, 6 Jun 2009 01:19:39 +0200, David Boddie da...@boddie.org.uk wrote: On Fri Jun 5 19:25:01 BST 2009, Giovanni Bajo wrote: On 6/4/2009 10:18 PM, Phil Thompson wrote: It can't be wrapped because of the nature of the function pointer arguments - bad API design. Is it the same

Re: [PyQt] Static Qt/PyQt on Mac OS X

2009-06-03 Thread Giovanni Bajo
for you. If you get PyInstaller SVN trunk, you should get working Mac OSX support; the only issue is that it does not create a bundle yet (but a patch for this will be merged later this week). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt

Re: [PyQt] python signals and javascript

2009-05-15 Thread Giovanni Bajo
for the introspection to work (the javascript layer uses the introspection to find out which signals are available). See: http://www.riverbankcomputing.co.uk/software/pyqt/roadmap/index.html#pythonic-connections which I think is already implemented in latest snapshots. -- Giovanni Bajo Develer S.r.l. http

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

2009-04-27 Thread Giovanni Bajo
) clipboard = app.clipboard() clipboard.setText('The text that must be copied...') event = QtCore.QEvent(QtCore.QEvent.Clipboard) app.sendEvent(clipboard, event) It doesn't work for me on Linux. Should it? -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] implications of running PyQt 4.4.x with Qt 4.5?

2009-04-22 Thread Giovanni Bajo
virtuals - an older PyQt doesn't know to call them. There are some cases of that in Qt v4.5. I'm not sure I follow. Is that because the sip-generated code hardcodes the specific class to be used for each virtual function? -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Global Interpreter Lock

2009-04-10 Thread Giovanni Bajo
the GIL locked and thus block all other threads at the same time. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Python v3 Status

2009-04-04 Thread Giovanni Bajo
In this case, you should report this problem to Python developers with a testcase, so that they can fix it. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] PyQt/SIP snapshots

2009-03-28 Thread Giovanni Bajo
Hello, is this a good moment to test SIP/PyQt snapshots against Qt 4.5.0? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt/SIP snapshots

2009-03-28 Thread Giovanni Bajo
On Sat, 28 Mar 2009 21:16:31 +0100, David Boddie da...@boddie.org.uk wrote: On Sat Mar 28 12:57:12 GMT 2009, Phil Thompson wrote: On Sat, 28 Mar 2009 13:46:48 +0100, Giovanni Bajo rasky at develer.com wrote: is this a good moment to test SIP/PyQt snapshots against Qt 4.5.0? Yes. I'm

Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Giovanni Bajo
for all platforms? And, besides, it also handles PyQt plugins automagically (include them into the distribution and setup the Qt plugin paths accordingly). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] Best way to pass commands between threads?

2009-03-17 Thread Giovanni Bajo
it to use a QThread. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] subprocess in PyQt

2009-03-15 Thread Giovanni Bajo
), shell=False) -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-03-09 Thread Giovanni Bajo
, to start typing setLab and see all the matches in realtime and quickly find the correct method within whatever class it happens to be inside. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Re: distribute pyqt application to windows users

2009-03-09 Thread Giovanni Bajo
to download the QT libraries, SIP and PyQT by themselves, or there is a way to avoid them to do it? Does PyInstaller help? Ok, I stop. Enough questions :) Thanks for any help, Giovanni http://www.pyinstaller.org -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] findChildren(): default for type?

2009-03-08 Thread Giovanni Bajo
On sab, 2009-03-07 at 17:39 +, Phil Thompson wrote: On Sat, 07 Mar 2009 18:11:30 +0100, Giovanni Bajo ra...@develer.com wrote: Hello, any reason why findChild() / findChildren() don't support a default for the type argument (which would be QObject of course) like they do in C

[PyQt] findChildren(): default for type?

2009-03-07 Thread Giovanni Bajo
believe this could be done in a fully backward compatible way, right? If so, we can prepare a patch. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
from PyQt4.QtCore import * ? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

RE: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
is already imported. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2009-03-02 Thread Giovanni Bajo
: app = QApplication([]) w = MySuperMainWidget() w.show() app.exec_() just add a function like this: def entry(): global w w = MySuperMainWidget() w.show() and you're done with it. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

  1   2   3   4   5   6   >