Re: [PyKDE] UI on the fly - in Python

2005-02-08 Thread Giovanni Bajo
, instead of QWidgetFactory would be really great. What are exactly the benefits in rewriting QWidgetFactory in Python? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Writing with QTextStrem

2005-02-09 Thread Giovanni Bajo
string ? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] PyQt binding for QPieMenu?

2005-02-11 Thread Giovanni Bajo
Hello, are there Python bindings for qtpiemenu (from Trolltech Solutions)? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QObject.inherits?

2005-02-15 Thread Giovanni Bajo
Torsten Marek [EMAIL PROTECTED] wrote: This came up some days ago, I think Phil fixed it in the snapshots. And he said that he'll release sip 4.2/PyQt 3.14 in a couple of days, so you'll need some patience - or build the snapshot yourself. OK, I'll build RC2 for now. Thanks -- Giovanni Bajo

[PyKDE] qApp is a QApplication instance

2005-02-16 Thread Giovanni Bajo
the global qApp, not the QApplication. In Qt, I can down-cast the qApp pointer to my subclass to access my methods, how can I do the same in PyQt? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] qApp is a QApplication instance

2005-02-16 Thread Giovanni Bajo
in PyQt? sys.modules['qt'].__dict__['qApp'] = A(sys.argv) ...might do it. You have to make sure that this is done before the other modules that want to use it get imported. I'll try that, thanks. Would you consider this behaviour a bug, and in that case, is it feasable to fix it? -- Giovanni

Re: [PyKDE] PyQt v4 Roadmap

2005-02-17 Thread Giovanni Bajo
never advocated heavy use of import*. In fact, it is a construct I rarely use. PyQt is one of the case where the construct really turns out to be useful. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de

Re: [PyKDE] PyQT module size

2005-02-18 Thread Giovanni Bajo
infrastructure for this, as the windows version of qt.pyd exports just one visible symbol. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Using relative paths with SIP configuration

2005-02-21 Thread Giovanni Bajo
/sip/build and others within /sip/sipgen/build. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] QObject.inherits and queryList (still broken in 4.2?)

2005-02-22 Thread Giovanni Bajo
this? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] problem with exceptions within events

2005-02-23 Thread Giovanni Bajo
, in customEvent NameError: global name 'syntax_error' is not defined app.postEvent(w, QCustomEvent(QEvent.User)) app.exec_loop() 1 Is this a known problem? Surely it is a serious one since we cannot afford to ignore exceptions. This is with SIP 4.2, PyQT 3.14. -- Giovanni Bajo

Re: [PyKDE] problem with exceptions within events

2005-02-24 Thread Giovanni Bajo
.' print sys.stderr,'Giovanni Bajo [EMAIL PROTECTED] reports that it is omitted\n\n' print 'done' = I get this output: = about to post event, should see nothing yet about to process

Re: [PyKDE] problem with exceptions within events

2005-02-24 Thread Giovanni Bajo
. There is something weird going on. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] problem with exceptions within events

2005-02-24 Thread Giovanni Bajo
Giovanni Bajo [EMAIL PROTECTED] wrote: I have attached a more practical example, that shows the problem in more detail. Thanks. I would call this a very serious bug. BTW, let me notice that this does *not only* happen with an explicit postEvent() call. Even though I am unable to reproduce

Re: [PyKDE] problem with exceptions within events

2005-02-25 Thread Giovanni Bajo
the wrapped Python exceptions there. This probably requires Qt compilatoin with exception support (-exceptions). I would find totally acceptable to have the pre-SIP 4.2 behaviour in case Qt is compiled without exception support. -- Giovanni Bajo ___ PyKDE

Re: [PyKDE] Compiling sip 4.1.1, PyQt 3.13, PyKDE 3.11.3 on Solaris 8micro-Howto

2005-03-05 Thread Giovanni Bajo
sipResObj; 48638 } 48639 } ... /sipkdecorepart0.cpp I'm not sure a reinterpret_cast is *ever* a solution. Probably the point is where it is assumed that pid_t is int, rather than using pid_t directly. Giovanni Bajo ___ PyKDE

Re: [review] [PyKDE] PyQT module size

2005-03-05 Thread Giovanni Bajo
++ classes, and you don't want to mention hundreds of mangled names in a linker script (including vtables, etc.), or manually mark each and every member function and member variable with a GCC-specific __attribute__. But this is not the case here. -- Giovanni Bajo

Re: [PyKDE] ANN: PyQt v3.14.1, SIP v4.2.1, QScintilla v1.5.1 Released

2005-03-07 Thread Giovanni Bajo
/pipermail/pykde/2005-February/009680.html -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: Re: [PyKDE] Compiling sip 4.1.1, PyQt 3.13, PyKDE 3.11.3 on Solaris8micro-Howto

2005-03-07 Thread Giovanni Bajo
a QValueListpid_t, whatever pid_t is typedef'd to. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: Re: Re: [PyKDE] Compiling sip 4.1.1, PyQt 3.13, PyKDE 3.11.3 onSolaris8micro-Howto

2005-03-07 Thread Giovanni Bajo
that the long* will never point to the int object, and thus will not be able to modify its contents in any way. This is off-topic though :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo

Re: [PyKDE] qApp is a QApplication instance

2005-03-21 Thread Giovanni Bajo
(qApp, App) Traceback (most recent call last): File stdin, line 1, in ? SystemError: error return without exception set I speculate this got broken when you touched exception support in sip 4.2? -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] ListBoxItems are invisible

2005-03-30 Thread Giovanni Bajo
parents, so you first create the child, and later bind it to either parent depending on some information extracted from the child itself. Remember that it is very common to subclass QListBoxItemText to store additional information. Giovanni Bajo ___ PyKDE

[PyKDE] float vs double issue not clear

2005-03-30 Thread Giovanni Bajo
). The issue I am reporting is that the error message could be improved by saying something more specific. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Unresponsive GUI

2005-04-06 Thread Giovanni Bajo
do qApp.processEvents()). If you can poll very often within your long task, the GUI will be still responsive. Anyway, this is better answered on the qt-interest mailing list. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] None conversion to QString?

2005-04-09 Thread Giovanni Bajo
label3 = ) If you call this as: QListView(None, None, foo) PyQt will effectively call the first constructor rather than the second. I believe I could use sip.cast to disambiguate but I would like to know the rationale behind the choice of allowing None as null string. -- Giovanni Bajo

Re: [PyKDE] None conversion to QString?

2005-04-10 Thread Giovanni Bajo
a pointer was going to be dereferenced. The current behaviour is wrong and I'll change it. There is a danger that the change might break some code. Yes, but as with the typed enum change, it's for a good cause. Thanks. Giovanni Bajo ___ PyKDE mailing

[PyKDE] Bug with super and QObject

2005-04-12 Thread Giovanni Bajo
, line 1, in ? AttributeError: 'super' object has no attribute 'emit' Why is super broken? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Bug with super and QObject

2005-04-12 Thread Giovanni Bajo
methods thing which SIP does? Is it documented anywhere? I found also some references to it some days ago, reading up an old thread in a mailing list that was comparing Boost.Python with SIP. -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] Tabs in QListBoxText

2005-04-15 Thread Giovanni Bajo
vertically. A QListView could do that with 2 columns, but I don't want the column headers. Any suggestions appreciated. QTable? Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Tabs in QListBoxText

2005-04-15 Thread Giovanni Bajo
vertically. A QListView could do that with 2 columns, but I don't want the column headers. Any suggestions appreciated. Ah well, even easier, QListView.header().hide(). Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] Re: Tabs in QListBoxText

2005-04-15 Thread Giovanni Bajo
, but in Qt 3.x hide() is inherited from QWidget.hide (since QHeader is a QWidget). BTW, I believe this kind of questions are better answered in the qt-interest mailing list. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] Converting font names to python strings

2005-04-19 Thread Giovanni Bajo
unicode(i) to convert QString to a Python unicode string. Either that, or keep the QString. It pretty much depends on what you are going to do with that families dict. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] Converting font names to python strings

2005-04-19 Thread Giovanni Bajo
': True} -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] qApp is a QApplication instance

2005-03-21 Thread Giovanni Bajo
syntax would be, then? def pyApp(): import sip return sip.cast(qApp, App) gives me a: SystemError: error return without exception set -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] QListBoxItem.isSelected() does not exist

2005-03-30 Thread Giovanni Bajo
) i.isSelected built-in method isSelected of QListBoxText object at 0x008158A0 i.selected Traceback (most recent call last): File stdin, line 1, in ? AttributeError: selected l.firstItem() is i True Which version of Qt/PyQt are you using? Giovanni Bajo

Re: [PyKDE] weird PyQt bug: memory corruption?

2005-04-25 Thread Giovanni Bajo
somehow fixed this, it might just be hidden and come back somewhere else in other forms. Given that you can reproduce it and that we even have a short snippet (which might not be available next time it happens), it might be worth investigating this problem a little. What do you think? Giovanni Bajo

Re: [PyKDE] weird PyQt bug: memory corruption?

2005-04-28 Thread Giovanni Bajo
modified for a bugfix (it was leaking objects), which might be the change which hides this bug in the current PyQt snapshot. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Add __repr__ for simple types?

2005-05-02 Thread Giovanni Bajo
Hello, would it be possible to add a specific __repr__ function for classes like QPoint, QRect, QSize, QString, QStringList, QObject (show its name if any), etc.? It is unfortunate that printing them is not enough to show their contents. Thanks! -- Giovanni Bajo

[PyKDE] SIP_VERSION for snapshots?

2005-05-03 Thread Giovanni Bajo
on sip.pyd only. Can this be done? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Wrapping undocumented function qt_tryAccelEvent?

2005-05-11 Thread Giovanni Bajo
? Not if it isn't part of the official Qt API. Depends on your definition of API. It is not documented in Qt Assistant, but I can use it from C++ code with any official Qt version, without patching Qt in any way: it is defined in public headers and it is an exported symbold in dynamic libraries. -- Giovanni Bajo

[PyKDE] Issue with QDialog and lifetime

2005-05-25 Thread Giovanni Bajo
guess this issue should be highlighted in the documentation. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

2005-05-26 Thread Giovanni Bajo
Toby Dickenson [EMAIL PROTECTED] wrote: On Wednesday 25 May 2005 16:13, Giovanni Bajo wrote: So, I don't see any easy way to take care of this automatically. One has to remember to manually destroy the dialog calling deleteLater Yes. My PyQt idiom for running a dialog is: dlg

Re: [PyKDE] Issue with QDialog and lifetime

2005-05-26 Thread Giovanni Bajo
codebase, I prefer things that either crash or work perfectly, without having to go hunting memory leaks everywhere :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] problem with cyclic garbage collection and metaclasses

2005-06-13 Thread Giovanni Bajo
sip.wrappertype and changes only one function, __call__). I do not have a short testcase to demonstrate this but I was wondering if this rings a bell. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] PyQt as a statically compiled shared library...

2005-06-15 Thread Giovanni Bajo
and suggestions about Installer, you can find it here but it's still work in progress: http://www.develer.com/oss/PyInstaller -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Memory leak: Cycles with QObject's doesn't get collected

2005-06-17 Thread Giovanni Bajo
: 8776 Kb VmSize: 25320 Kb VmRss: 8784 Kb VmSize: 25320 Kb VmRss: 8788 Kb VmSize: 25320 Kb VmRss: 8796 Kb VmSize: 25320 Kb VmRss: 8804 Kb VmSize: 25320 Kb VmRss: 8808 Kb VmSize: 25320 Kb VmRss: 8816 Kb [...] I have attached the updated script. -- Giovanni Bajo #!/usr/bin/env python from qt import

[PyKDE] Memory leak segfault with deleteLater

2005-06-20 Thread Giovanni Bajo
.xx = d del d del w1 del w2 gc.collect() 0 app.processEvents() gc.collect() 0 print wd weakref at 00813690; to 'instance' at 00812FD0 d should be collected as w1 and w2 are destroyed. -- Giovanni Bajo ___ PyKDE mailing listPyKDE

[PyKDE] Re: Memory leak segfault with deleteLater

2005-06-20 Thread Giovanni Bajo
is destroyed or not... maybe you could set that at the very start of the derived destructor. The second problem is a memory leak: I'll think about this tomorrow - my head hurts at the moment. Sure :) -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] Issue with QDialog and lifetime

2005-06-23 Thread Giovanni Bajo
of the dialog instance back to Python? Well, which C++ API would you intend to call to achieve this? We still need the QDialog to keep its parent widget because it is the widget on which the dialog is modal. Giovanni Bajo ___ PyKDE mailing listPyKDE

[PyKDE] Re: Memory leak segfault with deleteLater

2005-06-28 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: Should be fixed in tonight's SIP snapshot. The cyclic garbage collector was ignoring the extra reference to wrappers of objects owned by C++. Thanks, I just verified that this fixes my problem! -- Giovanni Bajo

Re: [PyKDE] lineedit on focus

2005-06-28 Thread Giovanni Bajo
a reason() method which tells you how the widget got the focus (in case you want to do something only if it got focus by mouse). Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Bug with QScrollView viewport binding

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

[PyKDE] Re: Memory leak segfault with deleteLater

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

Re: [PyKDE] Re: Bug with QScrollView viewport binding

2005-06-29 Thread Giovanni Bajo
the object is a QWidget. Either that, or always retry to downcast any reference you get from the internal SIP map of existing python refernces. QScrollView.viewport() really *is* supposed to return *at least* a QWidget. -- Giovanni Bajo ___ PyKDE mailing list

Re: [PyKDE] Re: Bug with QScrollView viewport binding

2005-06-29 Thread Giovanni Bajo
, and this would be a sole example. Some PyKDE uses have this requirement - hence sip.cast(). I would like to see some. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Re: Memory leak segfault with deleteLater

2005-06-30 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: ignoring the extra reference to wrappers of objects owned by C++. Thanks, I just verified that this fixes my problem! I've had to back this out - it's the wrong fix and breaks other things. Okie dokie. Is a different fix planned? -- Giovanni Bajo

Re: [PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-30 Thread Giovanni Bajo
is going to implement a general solution so that you always get the most derived class Python knows about -- QMainWindow in this case. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo

Re: [PyKDE] can't make PyKDE

2005-07-05 Thread Giovanni Bajo
with the single-file build, but memory usage was much lower. You'll have to rewrite this for GCC, but it could be a starting point if you are interested. -- Giovanni Bajo sipconfig.pch.patch Description: Binary data ___ PyKDE mailing listPyKDE

Re: [PyKDE] Issue with QDialog and lifetime

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

Re: [PyKDE] Issue with QDialog and lifetime

2005-07-07 Thread Giovanni Bajo
the outcome of this discussion is. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

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

Re: [PyKDE] Issue with QDialog and lifetime

2005-07-07 Thread Giovanni Bajo
and pick the correct behaviour for their code. Explicit is better than implicit, after all. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Problem with layout iterators

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

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Giovanni Bajo
for QObject? Of course I'm thinking of PyQt4. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

2005-07-25 Thread Giovanni Bajo
the %MethodCode for QDialog.exec_loop. I'll remember you that exec_loop is called only for modal dialogs, while for modeless dialogs show() is called. Ok, this is in tonight's PyQt snapshot. Thanks! Remember to document it properly! -- Giovanni Bajo

[PyKDE] Re: Memory leak segfault with deleteLater

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

Re: [PyKDE] Request for Testing

2005-08-19 Thread Giovanni Bajo
tuple. We are using Windows XP, Qt 3.3.3. Works for me with the 20050810 snapshots, so it must have been broken in the very last snapshot. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] Request for Testing

2005-08-22 Thread Giovanni Bajo
snapshot-20050821 - Broken SIP snapshot-20050817 - OK -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Request for Testing

2005-08-22 Thread Giovanni Bajo
, in ? assert wr() is None AssertionError Output with SIP snapshot-20050817: weakref at 00817750; dead -- Giovanni Bajo #!/usr/bin/env python #-*- coding: utf-8 -*- import gc import weakref from qt import * app = QApplication([]) class OO(object): pass tp = OO() wr = weakref.ref(tp) dlg

Re: [PyKDE] Request for Testing

2005-08-22 Thread Giovanni Bajo
Giovanni Bajo [EMAIL PROTECTED] wrote: Eventually produced... :) Attached to this mail. Followup: it could be reduced a little bit more. Attached again. -- Giovanni Bajo#!/usr/bin/env python #-*- coding: utf-8 -*- import gc import weakref from qt import * app = QApplication([]) class OO

Re: [PyKDE] pyqt for python 2.2?

2005-08-22 Thread Giovanni Bajo
this. You'll have to google for a download link. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Request for Testing

2005-08-23 Thread Giovanni Bajo
or so since tomorrow, so I might be a little slow at testing further changes. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] pykde segfaults

2005-09-06 Thread Giovanni Bajo
you probably intend - didn't troubleshoot that). Out of curiosity, couldn't this be checked to generate an Exception instead of a segfault? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

[PyKDE] configure.py and feature file

2005-09-07 Thread Giovanni Bajo
. Instead, since it reuses the existing feature file, compilation may break. I am not sure saving a few seconds of compilation of mkfeatures.cpp is worth the building headaches. I reckon it'd be better if configure.py could do just that, and reconfigure everything from scratch. -- Giovanni Bajo

Re: [PyKDE] configure.py and feature file

2005-09-07 Thread Giovanni Bajo
. It would be better to have a flag which means keep any existing features file. Yes, much like a common ./configure: --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' Thanks! -- Giovanni Bajo

Re: [PyKDE] Does PyQt 3.15 work with Qt 3.3.5?

2005-09-07 Thread Giovanni Bajo
Huaicai Mo [EMAIL PROTECTED] wrote: I noticed that Qt 3.3.5 has been released with some bugs fix. I wonder does the new PyQt 3.15 supports Qt 3.3.5? It works for me. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] ANN: SIP v4.3.1 Released

2005-09-11 Thread Giovanni Bajo
in this version? Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Can't compile PyQt 3.15

2005-09-19 Thread Giovanni Bajo
to the support. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] None as a string argument

2005-09-20 Thread Giovanni Bajo
/2005-April/010108.html). Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Newbie question on QWidget.focusOutEvent

2005-09-23 Thread Giovanni Bajo
, QComboBox' focus policy is KeyFocus, so it only gets the focus through key presses, *not* mouse actions. If you want to change this, use setFocusPolicy(QWidget.StrongFocus) so that it can get the focus through either mouse or keyboard. Giovanni Bajo

[PyKDE] SIP and distutils

2005-10-11 Thread Giovanni Bajo
shipped with a more tight integration with distutils. I'd be happy to contirbute it (since I start needing it) if I could get some details on the right way of doing it. Anybody has previous experience on this? Phil, what do you suggest? -- Giovanni Bajo

Re: [PyKDE] SIP and distutils

2005-10-11 Thread Giovanni Bajo
, we can switch SIP itself to use distutils, if we feel it's the right thing to do. For that, you'll have to release at least a development snapshot with this new build system, so that people can work on it. -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] SIP and distutils

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

[PyKDE] sip-snapshot-20051011: compilation failure with MSVC

2005-10-12 Thread Giovanni Bajo
Compiling the latest SIP snapshot with MSVC gives this error: qtlib.c(723) : error C2143: syntax error : missing ';' before 'type' The problem is that in C it is invalid to declare a variable in the middle of a scope. -- Giovanni Bajo ___ PyKDE

[PyKDE] segfault using hasattr on a wrappertype class

2005-10-13 Thread Giovanni Bajo
Hello, this snippet causes a segfault on my computer (using Python 2.4.2): import sip sip.SIP_VERSION_STR '4.3.1' class Foo(object): ... __metaclass__ = sip.wrappertype ... hasattr(Foo, bar) Segmentation fault -- Giovanni Bajo ___ PyKDE

Re: [PyKDE] PyQt C API

2005-10-18 Thread Giovanni Bajo
positive that, even if your application is not well decoupled, you can still isolate the performance sensitive algorithms in functions which have nothing to do with PyQt. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread Giovanni Bajo
that often anyway. Weird idea: maybe it would be possible to make it a configure-time option? Would that be too much of a burden to maintain? In that case, I'm +1 on making the automatic conversion the default. -- Giovanni Bajo ___ PyKDE mailing listPyKDE

Re: [PyKDE] segfault using hasattr on a wrappertype class

2005-10-18 Thread Giovanni Bajo
this strange behaviour: import sip isinstance(sip.wrapper, object) True issubclass(sip.wrapper, object) True Dunno if it's related to the fix. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread Giovanni Bajo
fast. There is a simple solution though: I have been meaning to suggest Phil to add an exception-raising __hash__ method to QString. Those who want to hash by identify can still do it explicitally (calling id()), instead of relying on it being the default. -- Giovanni Bajo

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread Giovanni Bajo
an implicit conversion in the bindings of a language for which explicit is better than implicit is a motto. I'm just saying that we should think twice about it. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de

Re: [PyKDE] segfault using hasattr on a wrappertype class

2005-10-18 Thread Giovanni Bajo
other object in Python has the same property? -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread Giovanni Bajo
decides to support it in PyQt). A very simple case which happens often in my software is displaying logs in a text widget. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-19 Thread Giovanni Bajo
had issues with strings in these prototypes. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] sender() and PYSIGNALs

2005-10-19 Thread Giovanni Bajo
Hello, It appears that QObject::sender() returns None when called from a slot invoked through a PYSIGNAL. Is there a way to access the information also for PYSIGNALs? Would it be possible to modify sender() so that it works also for PYSIGNALs? -- Giovanni Bajo

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-19 Thread Giovanni Bajo
this road, we can as well totally remove any kind of Qt container and iterator, and substitute everything with Python concepts. I would probably like an additional PyQt layer for this, but I believe the basic PyQt should fly lower. Giovanni Bajo ___ PyKDE

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-20 Thread Giovanni Bajo
version of Qt: it should be to wrap Qt to Python. This string issue is of course very borderline, and I don't think it's inappropriate for PyQt to return Python strings from methods, as long as there is still a way to access QStrings if needed for any reason. -- Giovanni Bajo

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-20 Thread Giovanni Bajo
, with %Feature directives. I believe a Python-only implementation would be easier to work on. See also the mail by David Bobble with which I totally agree. Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-20 Thread Giovanni Bajo
. This means that it's easier for people to work on it and customize its behaviour. 4. The wrapper doesn't have to be written by Phil. Hopefully, he should be happy about that. ;-) I totally agree with you. Giovanni Bajo ___ PyKDE mailing list

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-21 Thread Giovanni Bajo
, to not confuse existing Qt users and I think it's a noble goal. I also understand that this is not ideal for a Python-only programmer. -- Giovanni Bajo ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] QString in PyQt4 - Request for Comments

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

  1   2   3   4   5   6   >