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

[PyQt] QVariant misunderstandings

2009-11-25 Thread Giovanni Bajo
; QVariant(a).toString() PyQt4.QtCore.QString(u'') >>> QVariant(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

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

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

2009-12-01 Thread Giovanni Bajo
PL 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 listPyQt@riverba

[PyQt] Const-correctness of sipCpp

2009-12-04 Thread Giovanni Bajo
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] PyQt Licensing Issue

2009-12-08 Thread Giovanni Bajo
code (even if you own the copyright). So basically 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/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] Support for Qt v4.6

2009-12-22 Thread Giovanni Bajo
o different platforms: host and target (the former used 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] Problem freezing a Sqlite based PyQT app

2010-01-12 Thread Giovanni Bajo
e doesn't have *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. htt

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

2010-01-13 Thread Giovanni Bajo
t4/pyqt4ref.html#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

[PyQt] Clarifications on new versions of SIP/PyQt

2010-01-18 Thread Giovanni Bajo
to the -P flag above? If so, 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 ___

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 > wrote: > > Hi Phil, > > > > I read in the SIP 4.10 changelog: > > > > Added the -P command line option to build modules with &quo

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-09 Thread Giovanni Bajo
d for Python 2.x 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 mail

Re: [PyQt] PyQt 4.7 and py2exe error

2010-02-09 Thread Giovanni Bajo
yInstaller (see manual) 3) 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

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

2010-03-09 Thread Giovanni Bajo
way to export PyQt 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.river

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 wrote: > > > It might make more sense to have a way to export PyQt classes to QML, > > > that is imp

[PyKDE] Q3Support

2006-05-29 Thread Giovanni Bajo
Hello, I read that the official plans for PyQt4 do not include support for the Q3Support libraries. I was wondering if, on principle, would be possible to make it by importing the .sip files from PyQt3 and apply the slightly required changes to them. Thanks! -- Giovanni Bajo

Re: [PyKDE] ANN PyQt v4.0 Released

2006-06-13 Thread Giovanni Bajo
e. > > You won't break any license. I plan to do the same thing myself - > possibly with Qt statically linked. So are you planning to do that statically-linked, single-file version, adding support to SIP? If you are really going to do it, I'll hold on trying to do it myself :) G

[PyKDE] SIP: Python 2.5 patch

2006-07-13 Thread Giovanni Bajo
x27;re going to integrate this and save backward compatibility. Giovanni Bajo Index: branches/py25/lib/sip/siplib/siplib.c === --- branches/py25/lib/sip/siplib/siplib.c (revision 6441) +++ branches/py25/lib/sip/siplib/sipl

Re: [PyKDE] Trying to use VendorId

2006-07-17 Thread Giovanni Bajo
xe is able to do nowadays, but if you can build a single self-contained Windows executable you don't need VendorId at all, as you won't ship a bare "qt.pyd" or similar. If you have trouble with py2exe, try with PyInstaller. Giovanni Bajo -- No virus found in this outgoing m

Re: [PyKDE] PyQT4: DLL load failed: Invalid access to memory location.

2006-07-29 Thread Giovanni Bajo
Shane Lin wrote: >> I'm having trouble using Py2exe with a PyQT-based python project. FWIW, I successfully package PyQt applications using PyInstaller instead of py2exe. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunho

Re: [PyKDE] Qt3 Clipboard Problem

2006-09-12 Thread Giovanni Bajo
d Windows (Qt 2.3). > > Any ideas? Is some sort of inappropriate garbage collection going on? Same problem here. My own solution was "import win32clipboard". -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] QMutexLocker doesn't unlock the mutex if an exception israised

2006-09-16 Thread Giovanni Bajo
ise if QMutexLocker supported the new with statement in Python 2.5: with locker: # code and the fact was then mentioned in the documentation of PyQt. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] How to detect if an object has been deleted

2006-09-18 Thread Giovanni Bajo
t;>> >>> a = QObject(None) >>> r = weakref.ref(a) >>> r >>> a.deleteLater() >>> qApp.processEvents() >>> r >>> a >>> >>> >>> >>> a = QObject(None) >>> def cb(wr): ... print "dead:", wr ... >>> r = weakref.ref(a, cb) >>> a.deleteLater() >>> qApp.processEvents() dead: -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Support for the unitest framework of Qt

2006-09-22 Thread Giovanni Bajo
useMove() mousePress() mouseRelease() qSleep() qWait() Anything else, like the QTEST/QVERIFY family of macros, are part of the framework, which I personally don't plan to ever use in a PyQt application anyway. -- Giovanni Bajo ___ Py

Re: [PyKDE] Support for the unitest framework of Qt

2006-09-23 Thread Giovanni Bajo
> It will be in tonight's snapshot. Thank you very much! Now that I know it's so easy to trigger the phil-bot, let me see if the same trick works twice: Q3Widget Q3Button Q3VBox Q3HBox Q3ListView *crosses fingers* :) Giovanni Bajo ___ PyK

Re: [PyKDE] GUI not updateing ?

2006-09-24 Thread Giovanni Bajo
> Which ones? > > If you used deleteLater() for an QObject, processEvents() might > delete that object which might result in a crash. And? Why should you use an object on which you called deleteLater()? The object will still be destroyed as soon as the code gets back to the event loop. proce

Re: [PyKDE] Python-2.4.2-buffer-interface.patch

2006-10-23 Thread Giovanni Bajo
fer interface, but was not using it for certain specific expressions. The patch is integrated since Python 2.5, so with 2.5 QString behaves just like normal Python strings, as best as they can. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.

Re: [PyKDE] Python-2.4.2-buffer-interface.patch

2006-10-24 Thread Giovanni Bajo
n's re module. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] ANN: PyQt 4.1, PyQt 3.17, QScintilla 1.7, SIP 4.5 Released

2006-11-05 Thread Giovanni Bajo
ndows binaries, but I think that having a PyQt-gpl-4.1-Py2.4-Qt4.2.1.exe would be good (that is, for Python 2.4 and latest version of Qt and PyQt). IMHO, it's easier to upgrade Qt than Python... Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.i

Re: [PyKDE] Multiple PyQt version in one Python installation

2006-11-05 Thread Giovanni Bajo
it could be simplified with setuptools and completed. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] ANN: PyQt 4.1, PyQt 3.17, QScintilla 1.7, SIP 4.5 Released

2006-11-08 Thread Giovanni Bajo
eleases (bugfixes etc.) could be tagged in a different way, like with a letter (PyQt 4.2a, 4.2b, 4.2c and so on). I think the confusion is also bigger since the user has also to track SIP dependency and its unconnected version number. It's even more confusing since SI

[PyKDE] Dependency on sip.pyd

2006-11-08 Thread Giovanni Bajo
aving sip.pyd shared across qt*.pyd is actually required -- but I already compile all the modules together in a single qt.pyd file; and I have many other SIP extensions which *do not* need to share the same objmap or whatever with pyqt]. -- Giovanni Bajo _

Re: [PyKDE] Dependency on sip.pyd

2006-11-10 Thread Giovanni Bajo
; this). So you could create a project specific interpreter. To be clear, I'm not speaking of embedding sip.pyd in python.dll as a builtin module. I'm speaking of totally *removing* sip.pyd as a module, and just "put" all the necessary code within

Re: [PyKDE] Dependency on sip.pyd

2006-11-10 Thread Giovanni Bajo
h are caused by the current design. Binary dependency *is* a bad headache which seriously affects the usage of SIP, and its choice as a primary binding tool within a company. I would appreciate if you could explain your position. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Dependency on sip.pyd

2006-11-11 Thread Giovanni Bajo
(siplib.a) and linked to the generated code; init_foo() would call init_sip() (from siplib.a), and then bound the created module as attribute to module "foo". Many things would just stay as they are: the difference is simply that there would not be any sip.pyd file around: and since I'm n

Re: [PyKDE] Windows install broken

2006-11-13 Thread Giovanni Bajo
annot simply install PyQt, they > won't use my soft ;-). That's not a real problem if you package your software with PyInstaller or py2exe. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] PyQt crash

2006-11-30 Thread Giovanni Bajo
Hello, the following code snippet causes a segfault: >>> from qt import QApplication >>> app = QApplication(["-v"]*10) >>> del app >>> app = QApplication([]) I'm using Qt 3.3.6, PyQt 3.16, SIP 4.4.3, under Windows. -- Giovanni Bajo __

[PyKDE] PyQt4: PyObject in SIGNAL

2006-11-30 Thread Giovanni Bajo
Hello, what's the meaning of the string "PyObject" used within the signature of a signal in PyQt4? I can't seem to find it in the PyQt4 documentation. If I pass it a random python object I get core dumps and random crashes, so I assume it's not really meant for

Re: [PyKDE] PyQt crash

2006-11-30 Thread Giovanni Bajo
e each test starts clean (without inheriting spurious events/widgets/things from a previous test). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4: PyObject in SIGNAL

2006-12-01 Thread Giovanni Bajo
t;PyObject" means in the signature of a signal? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4: PyObject in SIGNAL

2006-12-01 Thread Giovanni Bajo
nwrap cycle, because the slot function receives an object with a different id(). I was thinking that PyObject meant something like "any object wrapped by SIP", but I can't understand the exact meaning. -- Giovanni Bajo ___ PyKDE ma

Re: [PyKDE] PyQt4: PyObject in SIGNAL

2006-12-03 Thread Giovanni Bajo
that would mean that you could forget the signal arguments after calling emit(). I need to think about that a bit more. I think something along these lines would be great. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyKDE

Re: [PyKDE] Bad Memory Leak

2006-12-06 Thread Giovanni Bajo
icantly. I cannot reproduce it with PyQt 3.16 and SIP 4.4.3. It looks like it's been already fixed. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Bad Memory Leak

2006-12-06 Thread Giovanni Bajo
quot;, all the memory is reclaimed, with no need for the Python cyclic GC to kick in. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Bad Memory Leak

2006-12-07 Thread Giovanni Bajo
Andre Reitz wrote: > Sounds great, > but memory usage increases continuously. > Do you have an idea why? > Is there a bug on C++/SIP side? Did you try updating PyQt and SIP to the latest version? -- Giovanni Bajo ___ PyKDE mailing l

[PyKDE] Issues using SIP for small C++ classes

2006-12-07 Thread Giovanni Bajo
wrong tool for wrapping this kind of lightweight C++ objects? Or would there be something that could be planned to improve this situation? I'm happy to contribute something, if there is something that can be done about it. Thanks! -- Giovanni Bajo ___

[PyKDE] Re: Issues using SIP for small C++ classes

2006-12-07 Thread Giovanni Bajo
x27;ll see what happens when everything is finished, but looks like I'll have to leave with two different P implementations (one in Pyrex to be used from Python, and one in C++ to be used as basis for other classes). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Changes to Signal/Slot Handling

2006-12-09 Thread Giovanni Bajo
Phil Thompson wrote: lambda functions are now treated slightly differently and can now be used as slots. Why can't you simply always incref the slot, be it a lambda, a method or anything else? -- Giovanni Bajo ___ PyKDE mailing list

[PyKDE] PyQt and PyOS_InputHook

2006-12-18 Thread Giovanni Bajo
Hi Phil, http://www.mail-archive.com/pykde@mats.imk.fraunhofer.de/msg06573.html it looks like it would be sufficient to call qApp.processEvents() from within the hook (assuming qApp is not deleted). This would be great for using Qt at the interpreter prompt for quick tests... -- Giovanni

[PyKDE] [PATCH] sipdistuils: allow .sip in depends

2006-12-19 Thread Giovanni Bajo
list the %Included .sip files in the "depends" argument of the setup() call, and distutils will take care of calling sip.exe when necessary. Thanks! -- Giovanni Bajo Index: sipdistutils.py === --- sipdistutils.py

[PyKDE] Re: PyQt and PyOS_InputHook

2006-12-20 Thread Giovanni Bajo
e interpreter prompt for quick tests... > > It will be in tonight's snapshot. Sorry I missed it the first time. Both Qt3 & Qt4? Thanks! -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4 & KeyboardInterrupt

2006-12-22 Thread Giovanni Bajo
ication, the traceback is better logged into a logfile, and the messagebox should display something like "internal error, please send bug report" :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Why are .sip file installed?

2006-12-23 Thread Giovanni Bajo
Hi, why do sipconfig build Makefiles which install .sip files by default? What's the rationale for installing .sip files? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QObject.trUtf8 doesn't accept unicode strings.

2007-01-03 Thread Giovanni Bajo
so your application will still be fully unicode. It's only the literal in the source code (*immediatly* surrounded by the tr() call) which is a 8-byte str. BTW: since all my sources are UTF-8, I prefer to specify it as default encoding for tr (QTextCodec.setCodecForTr) so that I can later use

Re: [PyKDE] QObject.trUtf8 doesn't accept unicode strings.

2007-01-03 Thread Giovanni Bajo
ding declaration: http://docs.python.org/ref/encodings.html). - Use a text editor which will actually edit contents in UTF-8 form (for instance, a Python-aware editor that will automatically adapt to the encoding declaration of the file; or a simple text editor like vim running with UTF-8 locale

Re: [PyKDE] QObject.trUtf8 doesn't accept unicode strings.

2007-01-03 Thread Giovanni Bajo
of unicode.encode("utf-8"). But again, to further help you I need a better grasp of your scenario (see questions above). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Sigh, it was a nice affair while it lasted...

2007-01-08 Thread Giovanni Bajo
technical solution (such as a GUI toolkit) and that in charge of changing the commercial strategy of the company are not the same in any non-trivial case. Qt and PyQt work because they *do* offer a dual-licensing model which fits any kind of business strategy. -- Gio

[PyKDE] __truediv__ support in SIP

2007-01-09 Thread Giovanni Bajo
yourself, be my guest, I'll just sit, relax and grab the snapshot :) Thanks! -- Giovanni Bajo Index: siplib/sip.h === --- siplib/sip.h(revision 9342) +++ siplib/sip.h(working copy) @@ -295,7 +295,8 @@ repr

Re: [PyKDE] performance issues

2007-01-10 Thread Giovanni Bajo
other with a lot of program installs (Python + Qt + PyQt involves at least three separate with one embedded). http://pyinstaller.python-hosting.com -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-11 Thread Giovanni Bajo
nvironment like compiler version, ecc.). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-11 Thread Giovanni Bajo
all"? It should spew more debugging information. Are you using mingw32 that's automatically installed by the binary Qt C++ GPL distribution? Or did you have a previous version around? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.im

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
er XP) to double-check (try "where make" and "where qmake" for instance). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
*any* trace of cygwin and put mingw\bin in there. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
configure.py -w" -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
QMAKESPEC environment variable? What if you change it to "win32-g++"? It should have been set by the Qt installation program... -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
irectory should contain qmake.conf and qplatformdefs.h. and (stupid question) you did close and reopen your command prompt after changing the environment variables? :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fra

[PyKDE] Crash with unnotified event

2007-01-17 Thread Giovanni Bajo
-- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Crash with unnotified event

2007-01-17 Thread Giovanni Bajo
ocessEvents() before app destruction, but I would prefer if the bugs were fixed (and I thought you preferred it too...). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Regression caused by lambda as slots

2007-01-17 Thread Giovanni Bajo
gc.collect() gc.collect() assert dlist This asserts for me on recent SIP snapshots (200701115), but works with 4.4.5. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Regression caused by lambda as slots

2007-01-17 Thread Giovanni Bajo
On 17/01/2007 18.09, Giovanni Bajo wrote: I think I have managed to produce a (convoluted) testcase for what appears to be a reference leak introduced by recent SIP versions. It ought to be when you added support for lambda expressions as slots. I think I know the problem

Re: [PyKDE] tr()

2007-01-18 Thread Giovanni Bajo
for tr() What is this fnction for, when is it needed? http://doc.trolltech.com/4.2/i18n.html http://doc.trolltech.com/4.2/qobject.html#tr -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] remaining items on the screen (QGraphicsView, QGraphicsItem)

2007-01-19 Thread Giovanni Bajo
On 1/19/2007 5:27 PM, Krystian Samp wrote: I use: self.scene().removeItem(self) where self is a QGraphicsItem object acting as a parent for quite a large tree of items. the problem occurs rarely. It *sounds* like a QGraphics bug at the C++ level. -- Giovanni Bajo

Re: [PyKDE] Regression caused by lambda as slots

2007-01-22 Thread Giovanni Bajo
s to analyze the *current* problems and do proper bug reports. Adding more things in right now is a recipe for bad headaches to me :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4 random crashes under windows.

2007-01-22 Thread Giovanni Bajo
Makefiles to remove "-O2" and add "-Zi", and "/DEBUG" to linker, and run "nmake clean all"). After that, you should have enough debug informations to get an useful stack trace and full debug session from within VS2003. Notice you can either start your whol

Re: [PyKDE] PyQt4 random crashes under windows.

2007-01-23 Thread Giovanni Bajo
(fopen() and friends) but directly use platform APIs (POSIX open(), or Win32 CreateFile()).] -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Why does this not work anymore?

2007-01-23 Thread Giovanni Bajo
with "PyQt_PyObject" [...] -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] [PATCH] Building sip with MSVC.NET 2003

2007-01-24 Thread Giovanni Bajo
optimum solution, but they work for me. Uhm, I compiled sip with .NET 2003 many times, without problems. Could you elaborate on what are the problems you met? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] [PATCH] Building sip with MSVC.NET 2003

2007-01-24 Thread Giovanni Bajo
x27;t necessarily have "ar", but if you look at the code immediately after this change, it was trying to get the value of the AR variable from the spec. Due to this I was getting an error while running SIP's configure.py saying that AR was not defined. Yes, this is indeed a bug

[PyKDE] SIGNAL-to-SIGNAL connection seems broken

2007-01-24 Thread Giovanni Bajo
uot;destroyed()"), myslot) QObject.connect(a, SIGNAL("QUIT"), myslot) del a assert len(called) == 2, len(called) == This fails for me with PyQt 4.1.1 and SIP-snapshot-20061220 (the slot is invoked only once). I didn't test with

Re: [PyKDE] Is there a clicked signal for a QLabel ?

2007-01-31 Thread Giovanni Bajo
slot. In you case, Trolltech decided that QLabel usually don't need click to be handled, so they didn't provide a standard event handler which emits a standard signal for it. But you can do it yourself, in your own QClickableLabel, though. -- Gio

Re: [PyKDE] SIP: Newbie and char buffers

2007-02-02 Thread Giovanni Bajo
will be sufficient: virtual lt_uint32 read( lt_uint8 *pDest /Array,Out/, lt_uint32 numBytes /ArraySize/); :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Reduced testcase for lambda-related crash

2007-02-03 Thread Giovanni Bajo
2163] PyEval_EvalCodeEx [d:\python-2.4.2\python\ceval.c:2736] Hope this helps! -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Problem building PyQt on Windows

2007-02-04 Thread Giovanni Bajo
tain an include file with a full path in it? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Problem building PyQt on Windows

2007-02-05 Thread Giovanni Bajo
On 05/02/2007 1.40, Javier Sanz wrote: Thanks for answering. That line contains #include On 2/5/07, *Giovanni Bajo* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: On 02/02/2007 20.20, Javier Sanz wrote: > E:/windows/Qt/4.2.2/include/QtCore/../../src/cor

Re: [PyKDE] Re: qt4 signals and slots

2007-02-16 Thread Giovanni Bajo
; QtCore.QObject.connect( theobjectemittingthesignal, >> QtCore.SIGNAL("whateveritscalled()"), self.yourSlot) >> >> So it's: (The emitter, the signal, the slot). > > I always wondered why it wasn't: > > emitter.connect

Re: [PyKDE] SIGNAL-to-SIGNAL connection seems broken

2007-02-19 Thread Giovanni Bajo
g something like this would be also a good solution. However there is a bug/feature that is fixed in tonight's PyQt snapshot. Thanks! -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Run function in the background

2007-02-19 Thread Giovanni Bajo
On 2/19/2007 7:11 PM, Fabian Steiner wrote: Is there any other way which would solve this issue? http://doc.trolltech.com/4.2/qtimer.html -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] SIP automatically casting up to a QWidget

2007-02-22 Thread Giovanni Bajo
generic QObject* is an instance of your type (class A). SIP then knows how to "chain" all the other %ConvertToSubClassCode in the object hierarchy, so your code needs only to verify your own class. -- Giovanni Bajo ___ Py

Re: [PyKDE] SIP automatically casting up to a QWidget

2007-02-22 Thread Giovanni Bajo
ngTypeClassMap, and a QWidget is still being returned. Can you show us this code please? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] SIP automatically casting up to a QWidget

2007-02-22 Thread Giovanni Bajo
contains something correct and matching any of the sipName_* constants. You can try printing sipCpp->className() every time to see if it gets called with your widget class. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://m

Re: [PyKDE] plugins and py2exe in PyQt4

2007-02-25 Thread Giovanni Bajo
supports encryption...). 2) The same as above, but rolling up your own API instead of relying on pkg_resources. #1 looks like the best option of course, since I don't like having to reinvent the wheel. It also means that PyInstaller, py2exe and others just have to support pkg_res

Re: [PyKDE] Deleting a layout in PyQt as opposed to Qt...

2007-02-28 Thread Giovanni Bajo
ayout is a QObject, so you can use its deleteLater() method: L = widget.layout() L.deleteLater() QCoreApplication.sendPostedEvents(L, QEvent.DeferredDelete) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fra

Re: [PyQt] Re: [PyKDE] Mailing list move

2007-03-08 Thread Giovanni Bajo
old and the new list. Thanks! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: [PyKDE] Mailing list move

2007-03-08 Thread Giovanni Bajo
old and the new list. Thanks! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Question about distributing GPL'd apps

2007-03-15 Thread Giovanni Bajo
, sure. you only have to provide a way to get to the source. you don't > even have to publish it online: you could make one ask for it. Or, more concisely, you just need to declare that your program is GPL and include the license file with it. -- Giovanni Bajo

Re: [PyQt] SIP Support for wchar_t

2007-03-27 Thread Giovanni Bajo
ransferObj = Py_None; return 1; %End }; I'm now testing the native wchar_t support without it, but do you foresee any memory leak problems (which are pretty hard to find out...)? -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcom

Re: [PyQt] SIP Support for wchar_t

2007-03-27 Thread Giovanni Bajo
he idea is that a 8-bit string (Python "str") goes to the first function, while an Unicode string (Python "unicode") goes to the second function. Comments? -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http:/

Re: [PyQt] SIP Support for wchar_t

2007-03-27 Thread Giovanni Bajo
if the pointer is of type "const wchar_t*": error C2664: 'void (void *)' : cannot convert parameter 1 from 'const wchar_t *' to 'void *' Conversion loses qualifiers I worked around it by dropping the const qualifiers from the

Re: [PyQt] converting std::vector to PyList

2007-03-27 Thread Giovanni Bajo
pgen/siplib is needed. I haven't had time to think about it and prepare a concrete proposal for Phil. Anyway, maybe we should put it onto the wiki at least, and make it grow/mature/bugfix through public contributions, even in its current form. -- Giovanni Bajo // SIP support for std::vec

<    1   2   3   4   5   6   7   >