[PyKDE] Re: sender() and PYSIGNALs

2005-10-23 Thread Giovanni Bajo
snapshots (SIP and PyQt) - not heavily tested. I assume that the so-called PyQt4 snapshot also works for Qt 3? Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Bug in siputils.py (latest snapshot)

2005-10-24 Thread Giovanni Bajo
the space terminator so it believes that QMAKE_CFLAGS_WARN_ON -w34100 -w34189 is the macro name. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Re: sender() and PYSIGNALs

2005-10-24 Thread Giovanni Bajo
snapshots (SIP and PyQt) - not heavily tested. It works, thanks! -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Giovanni Bajo
first, which bails out on UnicodeDecodeError. See attached snippet. Any idea? Quickly skimming through QString docs reveals a utf8() method. Otherwise, you can call unicode() just as you would call str(), and then using unicode.encode. -- Giovanni Bajo

[PyKDE] SIP: difference between TransferBack and Factory

2005-10-25 Thread Giovanni Bajo
). My doubt is: why does SIP care whether the function just created the object, or got it from somewhere else, as long as the semantic is that Python will own the object after the call? Why should it care whether it already seen it as a Python object or not? Can anybody elaborate a little? Giovanni

[PyKDE] [PATCH] Compiling SIP with distutils

2005-10-26 Thread Giovanni Bajo
and Linux and it works. Can we this included in future SIP versions? I think people will be delighted to use distutils to build their SIP-based extensions. -- Giovanni Bajo # Subclasses disutils.command.build_ext, # replacing it with a SIP version that compiles .sip - .cpp # before calling the original

Re: [PyKDE] [PATCH] Compiling SIP with distutils

2005-10-27 Thread Giovanni Bajo
documentation? Within sipref.txt? Sure, I can write something if you agree on getting this included. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] [PATCH] Compiling SIP with distutils

2005-10-27 Thread Giovanni Bajo
executable. You'll still need to make sure sipdistutils.py is installed when SIP is installed. Please, let me know when it gets in. Thanks! -- Giovanni Bajo # Subclasses disutils.command.build_ext, # replacing it with a SIP version that compiles .sip - .cpp # before calling the original build_ext

[PyKDE] Method wrappers not shared

2005-10-28 Thread Giovanni Bajo
. Probably easier to implement than reusing method objects? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Documentation

2005-11-02 Thread Giovanni Bajo
the function names and arguments will be (mostly) the same. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] transerfBack in QPopupMenu.exec?

2005-11-29 Thread Giovanni Bajo
. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt / sipdistutils

2005-11-30 Thread Giovanni Bajo
on the screen). What's the exact value (repr) of pqconfig.pyqt_qt_sip_flags? How did your modified self.spawn() call look like? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt / sipdistutils

2005-11-30 Thread Giovanni Bajo
, -b, sbf, -I, pqconfig.pyqt_sip_dir] + pqconfig.pyqt_qt_sip_flags.split() + [source]) But then I don't know. I don't even know what %Timeline and -t are for :) Giovanni Bajo ___ PyKDE mailing listPyKDE

[PyKDE] Cannot derive QValidator

2005-12-06 Thread Giovanni Bajo
() app.setMainWidget(cb) qApp.exec_loop() === any time I press a key, I see: TypeError: invalid result type from V.validate() This is with PyQt 3.15, SIP 4.3.1. -- Giovanni Bajo

Re: [PyKDE] Cannot derive QValidator

2005-12-06 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: The Python signature is different to the C++ signature - check the documentation. Argh, sorry! ;) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] Deployment on Windows? license compatible

2005-12-07 Thread Giovanni Bajo
is final size of the program. Under Windows, qt-mt335.dll has almost 500Kb of export section. By compiling it within the python24.dll, you save all that space. I tried also to compile a self-contained qt.pyd containing the Qt code, but that wouldn't work because of weird ABI issues. -- Giovanni Bajo

[PyKDE] Bug in PyQt/SIP snapshot

2005-12-16 Thread Giovanni Bajo
Phil, with PyQt snapshot-20051201, SIP snapshot-20051130: import qt s = qt.QString('foobar') s == None segfault -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] PyQt4 logic in PyQt3's configure.py

2005-12-16 Thread Giovanni Bajo
logic to find out Qt4, if it's a PyQt3 snapshot? In my tests under Linux, it fails to configure properly because it detects a PyQt4 installation and tries to use it for PyQt3. I tried removing the part that looks for qmake in the path and just use the QTDIR env, and it works correctly. -- Giovanni

Re: [PyKDE] Bug in PyQt/SIP snapshot

2005-12-16 Thread Giovanni Bajo
Douglas Soares de Andrade [EMAIL PROTECTED] wrote: With pyqt snapshot 20051208-1 and sip snapshot 20051212 im not having this error. Ah thanks, I'll try and upgrade. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] Building SIP with distutils

2005-12-16 Thread Giovanni Bajo
if you (or others) could give this a go and confirm that it mostly works. I'll add support for generation of sipconfig.py in the next few days. -- Giovanni Bajo #!/usr/bin/env python from distutils.core import setup, Extension from distutils.command.build_ext import build_ext from

Re: [PyKDE] Bug in PyQt/SIP snapshot

2005-12-16 Thread Giovanni Bajo
Giovanni Bajo [EMAIL PROTECTED] wrote: With pyqt snapshot 20051208-1 and sip snapshot 20051212 im not having this error. Ah thanks, I'll try and upgrade. Argh, it didn't work out. I'm trying with snapshot-20051212 and PyQt snapshot-20051212, and I get this: sipqtpart0.obj : error LNK2019

Re: [PyKDE] Bug in PyQt/SIP snapshot

2005-12-16 Thread Giovanni Bajo
Douglas Soares de Andrade [EMAIL PROTECTED] wrote: Can you send me the example code that is broking with you ? So i can test it. It's PyQt compilation that it's broken for me! -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] Problems with PyQt snapshot 20051218

2005-12-19 Thread Giovanni Bajo
-20051218]$ Any ideas ? Looks related to this: http://mats.imk.fraunhofer.de/pipermail/pykde/2005-December/011702.html My local fix is here: http://mats.imk.fraunhofer.de/pipermail/pykde/2005-December/011705.html -- Giovanni Bajo ___ PyKDE mailing

Re: [PyKDE] Using QFileDialog

2006-01-09 Thread Giovanni Bajo
name as pushButton1 text? Will something like: SLOT(test2(a.selectedFile())) work? I'm using QT 3.3.4 and pyQT 3.15.1 Unless you have special needs: fn = QFileDialog.getOpenFileName() -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] PyQt4 GPL for Windows Binary Available

2006-01-12 Thread Giovanni Bajo
. Is this compatible with a bulk Python 2.4, or do we need a MinGW-compiled Python? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4 GPL for Windows Binary Available

2006-01-12 Thread Giovanni Bajo
that that is no longer required with Python 2.4 (and might not be for 2.3.5, either, though I haven't checked). I don't remember this being mentioned in the Python release notes as well, but it could be my faulty memory :) -- Giovanni Bajo ___ PyKDE mailing list

Re: [PyKDE] PyQt4 GPL for Windows Binary Available

2006-01-12 Thread Giovanni Bajo
is becoming very widespread (see also: http://psi-im.org/wiki/Compiling_Qt4_on_Windows). Since I assume that PyQt4's build system will support MSVC for the benefit of the commercial version of Qt, will it be possibile to build also PyQt4 GPL version with MSVC? -- Giovanni Bajo

[PyKDE] Support for PyOS_InputHook?

2006-01-14 Thread Giovanni Bajo
Phil, I just learnt of PyOS_InputHook, which is the way that TkInter manages to work from the command line interpreter without needing an explicit event loop. I was thinking it would be great for prototyping if PyQt had this feature too... -- Giovanni Bajo

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-22 Thread Giovanni Bajo
(), filename, exec) exec widget_module return locals()[widget_info[uiclass]] This ought to be included within PyQt4.uic! Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Auto-connecting Slots

2006-01-27 Thread Giovanni Bajo
on_spinbox_valueChanged(self, value): # Actually, you might even use the corresponding Python it instead of a string: @qtsignature(int, QString) or something like that. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Giovanni Bajo
optional in the signature, so you can use the short version most of the time but you can still have the flexibility of the above. OK, fine by me as long as the repetition isn't necessary (and the decoration isn't necessary if not for disambiguation). Giovanni Bajo

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Giovanni Bajo
are in contrast with this convention, and make life harder to those who prefer to use plain Q* names. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Giovanni Bajo
more likely to add a function called qSignature() than one called signature(). Isn't calling it pyqtSignature() the safest and most consistent? Right. pyqtSignature() is perfect, thanks! -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Giovanni Bajo
it's coming from, and as long as I'm allowed to use the from QtCore import * without polluting the global namespace, it's still good. Adding signature would be a serious problem. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Giovanni Bajo
have *never* seen Python code using PyOpenGL with the module as a namespace (GL.glBegin), so I just can't see why it should be any different for Qt. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] Auto-connecting Slots

2006-01-29 Thread Giovanni Bajo
they are. hex() and oct() looks like another serious problem that needs a solution, to me. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Auto-connecting Slots

2006-01-29 Thread Giovanni Bajo
(...) In fact, I'd be *perfectly* fine with Q.String, Q.Widget and Q.Label (from PyQt4 import QtCore as Q). What I deeply dislike is the verbose QtCore.QWidget. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] Auto-connecting Slots

2006-01-29 Thread Giovanni Bajo
++ counterpart. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Auto-connecting Slots

2006-01-30 Thread Giovanni Bajo
Jesper Anderson [EMAIL PROTECTED] wrote: and when you want to avoid typing pyqtSignature: from PyQt4.QtCore import * from PyQt4.QtCore import pyqtSignature as signature Sure, or more simply: signature = pyqtSignature -- Giovanni Bajo

[PyKDE] Signal destroyed() not emitted for QWidget

2006-02-14 Thread Giovanni Bajo
be pretty. My idea was to use the destroyed() signal to find out when the QObject was destroyed and invalidate the reference. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Re: Signal destroyed() not emitted for QWidget

2006-02-14 Thread Giovanni Bajo
that it can call deleteLater() on itself - then it seems to behave as you were expecting. I'll probably make a change in the next snapshot or so. Thanks. But why does it work for QObject and not for QWidget? -- Giovanni Bajo ___ PyKDE mailing listPyKDE

[PyKDE] Auto-disconnection of signals broken?

2006-02-14 Thread Giovanni Bajo
: underlying C/C++ object has been deleted Shouldn't the signal be automatically disconnected when the widget dies? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Re: Signal destroyed() not emitted for QWidget

2006-02-14 Thread Giovanni Bajo
its children. But QWidget's dtor also deletes its children (before doing the actual platform-dependent destruction), so when the QObject dtor for the QWidget is invoked, the proxy is gone and the signal is not forwarded. -- Giovanni Bajo ___ PyKDE mailing

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread Giovanni Bajo
they could also be made optional.) I'm fine with dropping them as long as they're optional. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] textChanged()

2006-02-22 Thread Giovanni Bajo
()), self.doTest) Didn't work ('mainTextWindow' is my textEdit widget), so I googled for [...] Is it just a typo? 'Chaged'? Just a quick guess! In fact, Qt gives a diagnostic in the console when the signal name is invalid. -- Giovanni Bajo ___ PyKDE mailing

Re: [PyKDE] textChanged()

2006-02-22 Thread Giovanni Bajo
the problem. This single line isn't sufficient to help you out. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Memory leak with QDialog

2006-02-28 Thread Giovanni Bajo
don't say what versions you are using. I think this was fixed in v3.15 - at least I don't see any leak in current snapshots. Yes, I can confirm it was fixed. Though QPopupMenu is exactly in the same situation and it was not fixed: I reported this before. Giovanni Bajo

Re: [PyKDE] How to contribute to sip ?

2006-02-28 Thread Giovanni Bajo
that it doesn't call SIP in the first place if the header file has not changed? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] How to contribute to sip ?

2006-02-28 Thread Giovanni Bajo
for SIP to compensate for this. I see. Can't you call SIP once for each .sip file, and make it generate one class at a time? Isn't that what %Import is for? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] How to contribute to sip ?

2006-02-28 Thread Giovanni Bajo
20 minutes to compile it, while I can compile PyQt3 single-file with MSVC in roughly 100 seconds. Are you saying that this scenario is going to change with PyQt4? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] QtCore.Qt and QtGui.Qt

2006-03-02 Thread Giovanni Bajo
.QtGui import * dir(Qt) --- won't show the full Qt namespace, thus making PyQt4 unusable without the annoying QtCore/QtGui prefix in front of everything? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] Static compilation of PyQt

2006-03-02 Thread Giovanni Bajo
you're interested in into qtmod.sip (you *must* build only qt.pyd). 3) Build qt.pyd only. I have a Python script which does the module merging. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de

Re: [PyKDE] QtCore.Qt and QtGui.Qt

2006-03-02 Thread Giovanni Bajo
in PEP 3000. That said I can see lots of bug reports from lazy programmers, and I definitely want to avoid that. Thanks, it's appreciated. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] QtCore.Qt and QtGui.Qt

2006-03-02 Thread Giovanni Bajo
Sundance [EMAIL PROTECTED] wrote: 1) Having the Qt namespace as an external module. Perfect. I'm +1 on this. 2) Updating QtCore.Qt's _dict_ in the other modules instead of creating a new Qt there. This would be *very* confusing and very implicit. I'm -1000 on this. -- Giovanni Bajo

Re: [PyKDE] QtCore.Qt and QtGui.Qt

2006-03-02 Thread Giovanni Bajo
the idea of typing qt.ComboBox. Yeah, me too. wxWidgets went for it for a reason. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QtCore.Qt and QtGui.Qt

2006-03-02 Thread Giovanni Bajo
it into the official configure.py, and also be the default mode for the official binary Qt4-PyQt4-Win-GPL package. It would mean a smaller download for the developer, and smaller executables for those building stand-alone apps. -- Giovanni Bajo ___ PyKDE mailing

Re: [PyKDE] Static compilation of PyQt

2006-03-03 Thread Giovanni Bajo
by me. I'm not familiar enough with SIP to do anything though. So if we're going this way (using SIP), I guess I can't really help you more than testing the results :) Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] More significant repr for Qt data types

2006-03-09 Thread Giovanni Bajo
informative repr strings: QPoint, QRect, QSize... Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Double free() problem in PyQt 3.15.1??

2006-03-11 Thread Giovanni Bajo
, such as: = from qt import * app = QApplication([]) w1 = QWidget(None) w2 = QWidget(w1) w2. = w1 w2.deleteLater() del w1 del w2 app.processEvents() = but they have nothing to do with the code you quoted. -- Giovanni Bajo

[PyKDE] Re: Auto-disconnection of signals broken?

2006-03-14 Thread Giovanni Bajo
disconnected. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Re: Auto-disconnection of signals broken?

2006-03-14 Thread Giovanni Bajo
Giovanni Bajo [EMAIL PROTECTED] wrote: Phil, the testcase is indeed fixed, but not the original bug in my application. I will try reducing a new testcase for the problem, That was faster than expected: == from qt import * app = QApplication([]) o

Re: [PyKDE] PyQt4 Questions

2006-03-18 Thread Giovanni Bajo
these behaviours with Qt under Windows, but I didn't bother investigated, and I blamed it on Windows' window manager. I don't think PyQt has anything to do with either, though. Maybe there is a workaround for the latter you mentioned (in the WFlags) but I don't recall. -- Giovanni Bajo

Re: [PyKDE] Re: Auto-disconnection of signals broken?

2006-03-18 Thread Giovanni Bajo
snapshot-20060317. BTW: don't you have a regression testsuite for PyQt? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Sugestions for PyQt4

2006-03-20 Thread Giovanni Bajo
('aSignal(QObject, str, int)'), b.aSlot) I think there are techinical issues, as Phil already rejected this. I don't know the details. Hope you enjoy and this be useful for the PyQt project. Thanks for the input! -- Giovanni Bajo ___ PyKDE mailing

[PyKDE] SIP: size_t?

2006-03-21 Thread Giovanni Bajo
Hello, what is the correct way of handling size_t? It's not a builtin type that SIP understands, and any typedef machinery is going to be wrong (portability-wise). -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] sipdistutils fix relinking

2006-03-21 Thread Giovanni Bajo
Phil, I found a bug in sipdistutils: even if it's not necessary to call 'sip' because the generated files are up-to-date, it's still necessary to add them into the list of files to compile/link. The attacched patch fixes the problem. Thanks -- Giovanni Bajo --- ..\sip-snapshot-20060317

Re: [PyKDE] SIP: size_t?

2006-03-21 Thread Giovanni Bajo
this automatically? A proper definition of size_t across 32/64 bit systems (including Win64 vs Linux ABI differences) is somehow problematic. Compilers do supply size_t specifically so that people don't have to worry doing the ifdef-ery. -- Giovanni Bajo

Re: [PyKDE] Sugestions for PyQt4

2006-03-22 Thread Giovanni Bajo
the Hello string is placed within the Foo context. How do you plan to do that? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Giovanni Bajo
; This is either a bug in your sample code, or an editing mistake :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] SIP: /Array/ and memory deallocation

2006-03-22 Thread Giovanni Bajo
object in a secret member of the Foo wrapped instance. Does that sound like a good solution? Thanks -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] SIP: adding code to methods?

2006-03-22 Thread Giovanni Bajo
dictionary - probably using %PostInitialisationCode. Would exec work for this? And once it's in the module dictionary, how do I access its type from a %MethodCode so to call PyErr_Format()? [sorry, I'm pretty newbie at Python API]. -- Giovanni Bajo

Re: [PyKDE] SIP: MappedType for pointers?

2006-03-22 Thread Giovanni Bajo
still think that should be faced and solved once for all in SIP, instead of having all the users deal with the troubles), there is a clear and documented mapping between wchar_t and Python unicode objects, so exposing this mapping by default would make things easier for SIP users. -- Giovanni Bajo

[PyKDE] PyQt3: QGLWidget should transfer QGLContext ownership?

2006-03-23 Thread Giovanni Bajo
that a manual sip.trasnferto does the right thing and avoid double deletion crashes. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] How To Publish a pyqt application

2006-03-28 Thread Giovanni Bajo
and keep trying with cx_freeze. Also PyInstaller works under Linux. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] PyQt3: bitBlt for QImage?

2006-03-29 Thread Giovanni Bajo
Phil, the documentation of PyQt3 describes a bitBlt() function overload which works on QImages. Grepping the .sip files revealed that PyQt3 implements only the QPaintDevice version of bitBlt(). Any reason for this? Thanks -- Giovanni Bajo ___ PyKDE

Re: [PyKDE] SIP: unicode to wchar_t* in C modules

2006-03-29 Thread Giovanni Bajo
is also a basic type as of ISO C99, and it's been supported in C compilers as extension far longer before C99 was standardized (which is, uh, 7 years ago). Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de

[PyKDE] PyQt4 compilation failure: location of specs?

2006-04-03 Thread Giovanni Bajo
these problems? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt4 compilation failure: location of specs?

2006-04-03 Thread Giovanni Bajo
, which is in fact the correct base path for specs files. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Does QT have an equvalent to Tkinter.Frame.after()

2006-04-12 Thread Giovanni Bajo
. Additional parameters are given as parameters to the function call. Return identifier to cancel scheduling with after_cancel. Does Qt have something that works more or less the same way? QTimer. Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] Killing QApplication

2006-05-02 Thread Giovanni Bajo
, the Windows backend is fine in this regard. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[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
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 :) Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de

Re: [PyKDE] Trying to use VendorId

2006-07-17 Thread Giovanni Bajo
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 message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database

Re: [PyKDE] Qt3 Clipboard Problem

2006-09-12 Thread Giovanni Bajo
). 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://mats.imk.fraunhofer.de/mailman/listinfo

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

2006-09-18 Thread Giovanni Bajo
a qt.QObject object at 0x2E2014F8 a = QObject(None) def cb(wr): ... print dead:, wr ... r = weakref.ref(a, cb) a.deleteLater() qApp.processEvents() dead: qtweakref at 2E204870; dead -- Giovanni Bajo ___ PyKDE mailing listPyKDE

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

2006-09-22 Thread Giovanni Bajo
() 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 ___ PyKDE mailing listPyKDE

Re: [PyKDE] GUI not updateing ?

2006-09-24 Thread Giovanni Bajo
() 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. processEvents() is in fact just a nested event loop. Giovanni Bajo

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

2006-10-23 Thread Giovanni Bajo
, 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.fraunhofer.de http

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

2006-10-24 Thread Giovanni Bajo
. -- 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
-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.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

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

2006-11-05 Thread Giovanni Bajo
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
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 SIP is 4.x too! Phil? Giovanni Bajo

[PyKDE] Dependency on sip.pyd

2006-11-08 Thread Giovanni Bajo
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 ___ PyKDE mailing

Re: [PyKDE] Dependency on sip.pyd

2006-11-10 Thread Giovanni Bajo
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 my own extension module created by SIP. -- Giovanni Bajo

Re: [PyKDE] Dependency on sip.pyd

2006-11-10 Thread Giovanni Bajo
. -- 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
as they are: the difference is simply that there would not be any sip.pyd file around: and since I'm not going to ever enlarge foo's C++ hierarchy in a different module, it's only a winner. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de

[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 mailing listPyKDE

[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 that... -- Giovanni Bajo

Re: [PyKDE] PyQt crash

2006-11-30 Thread Giovanni Bajo
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
? -- 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

<    1   2   3   4   5   6   >