Re: [PyQt] Segfault when creating adding text to a QPainterPath

2007-07-11 Thread Giovanni Bajo
+ 0x6 C So it looks like it has nothing to do with PyQt. You may want to report this to the Trolltech guys. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problems building PyQt snapshot on Win32 with MinGW -- all details included

2007-07-11 Thread Giovanni Bajo
that it will be convincing enough to make it obvious that it is a bit painful right now. One question: *why* you want to use such a complex configuration? Can't you just use MinGW with the CMD shell? That should mostly work out of the box. -- Giovanni Bajo ___ PyQt mailing

Re: [PyQt] Problems building PyQt snapshot on Win32 with MinGW -- all details included

2007-07-11 Thread Giovanni Bajo
Windows is when Qt is built as static libraries. Which is not how the binary GPL version ships. So, ignore the (wrong) suggestion of configure.py, and just add Qt's binary directory to the path. Oh btw QTDIR doesn't exist anymore with Qt4, in case you were wondering. -- Giovanni Bajo

Re: [PyQt] Problems building PyQt snapshot on Win32 with MinGW -- all details included

2007-07-11 Thread Giovanni Bajo
2.4.2 on win32. [ ... ... ... ... ] -- Giovanni Bajo --- configure.py.old 2007-07-11 03:44:24.0 +0200 +++ configure.py 2007-07-12 02:20:03.512947200 +0200 @@ -62,6 +62,11 @@ dbuslibdirs = [] dbuslibs = [] +if os.name == nt: +MSG_CHECK_QMAKE = Make sure you have a working Qt v4 qmake

Re: [PyQt] Extracting QMapint, QVariant from a QDataStream

2007-07-12 Thread Giovanni Bajo
as QMap isn't present in the bindings. Yuck. I can't see how to do this generically. It might need a special utility function - unless anybody has a bright idea? What is the problem, exactly? Exposing the QMap template to Python? -- Giovanni Bajo

[PyQt] Debugging Qt error messages

2007-07-12 Thread Giovanni Bajo
; it doesn't propagate back to the original Python code. The traceback is thus useless: it just contains this function. Any suggestions about solving this problem? Maybe a modification / special handling in PyQt is required? -- Giovanni Bajo ___ PyQt

[PyQt] QStyle classes not exposed

2007-07-13 Thread Giovanni Bajo
Hi, it looks like the whole QStyle class hierarchy is not exposed by PyQt, with the exception of QStyle itself. Is there a specific reason for this? Can this be fixed? Thanks! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] dragdroprobot example, take 2

2007-07-13 Thread Giovanni Bajo
://ultr23.vub.ac.be/~lieven/pyqt/dragdroprobot-7.py ) ... or just makes it a child of another object you keep a reference of (like the Robot instance). -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] Re: Crash with shortcircuit signals

2007-07-16 Thread Giovanni Bajo
On 7/16/2007 2:36 PM, Phil Thompson wrote: On Tuesday 10 July 2007 5:42 pm, Giovanni Bajo wrote: Hi Phil, a little crasher: == from PyQt4.QtCore import * app = QCoreApplication([]) for i in range(300): print i w1 = QObject(None) w2

[PyQt] Disable installation of SIP files for static libraries

2007-07-16 Thread Giovanni Bajo
Hello, if Qt is built as a static library, there's no need to install the .SIP files of PyQt because it will not be possible to build a derived library anyway. This patch disables installation of SIP files in such a condition. -- Giovanni Bajo --- configure.py.old2007-07-16 04:44

[PyQt] Re: Crash with shortcircuit signals

2007-07-17 Thread Giovanni Bajo
necessary... -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: Crash with shortcircuit signals

2007-07-18 Thread Giovanni Bajo
to PyQtProxy's destructor: you can check that the instance is already disabled (= removed from the global list) when the destructor is called, and abort otherwise. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Re: Crash with shortcircuit signals

2007-07-18 Thread Giovanni Bajo
On 7/18/2007 10:32 AM, Giovanni Bajo wrote: I copied the list removal code back into the destructor (keeping a duped copy in the disable() slot), and it seems to work. Do you agree on this fix? Testcases are really hard and tiresome to extract so I'd rather avoid it if it's not really really

Re: [PyQt] Re: Crash with shortcircuit signals

2007-07-19 Thread Giovanni Bajo
vanilla snapshot triggers an infinite loop. If you nullify the two pointers, everything works. Can you detect the infinite loop and generate a backtrace? Sure, but I doubt it'll be before next Monday. -- Giovanni Bajo ___ PyQt mailing listPyQt

Re: [PyQt] Shouldn't an item view keep a reference to its associatedmodel?

2007-07-20 Thread Giovanni Bajo
and see how C++ programmers solve it, and do the same. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Next Releases of SIP and PyQt

2007-07-23 Thread Giovanni Bajo
in the documentation that should be cleared out). I'll be submitting them tomorrow. It's up to you whether to hold up the releases, of course. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] Re: Crash with shortcircuit signals

2007-07-24 Thread Giovanni Bajo
. I have verified that it did not introduce any problem with my code. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Disable installation of SIP files for static libraries

2007-07-24 Thread Giovanni Bajo
On 7/16/2007 4:49 PM, Giovanni Bajo wrote: Hello, if Qt is built as a static library, there's no need to install the .SIP files of PyQt because it will not be possible to build a derived library anyway. This patch disables installation of SIP files in such a condition

[PyQt] SIP: memory leak in mapped type?

2007-07-24 Thread Giovanni Bajo
objects in the vector. Does the fix make sense? And if so, why it isn't required in the SIP documentation example? And finally, with the above patch, the value of sipTransferObj is totally ignored by the code: how can that be right? Thanks! -- Giovanni Bajo

[PyQt] Static plugins check problem

2007-07-24 Thread Giovanni Bajo
want to support both scenarios. How can I automate calls to configure.py if it errors out in such a condition? Can that error() be replaced with something that doesn't stop configuration (a warning)? Thanks! -- Giovanni Bajo ___ PyQt mailing list

Re: [PyQt] Signal Bug in 4.2

2007-07-24 Thread Giovanni Bajo
because there's no way things can get fixed with a vague description of a problem. (I'll note that I have heard a similar problem from a fellow developer a few days ago, but I had forgetten. I'll try to dig up the issue, and extract a small testcase myself if it is still present). -- Giovanni Bajo

Re: [PyQt] Re: Can't compile PyQt snapshot on Windows

2007-07-25 Thread Giovanni Bajo
? I compile PyQt Windows snapshots very often without problems. I'll notice that whitespaces in the path to the Python directory is not even officially supported by the official Python distribution (that defaults to c:\pythonXX exactly for this reason). -- Giovanni Bajo

Re: [PyQt] QTextEdit-print() in Python ?

2007-07-26 Thread Giovanni Bajo
an interesting bug to me: the print method exists, but you can't use it because print is a keyword! You can get the method using getattr, and use it that way, but it's a hack. A quick fix for the next snapshot, Phil? There's also a print() method in QTextDocument. -- Giovanni Bajo

Re: [PyQt] Slot disconnection problem

2007-07-27 Thread Giovanni Bajo
) :) -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] compiling sip on vista

2007-07-27 Thread Giovanni Bajo
-- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problems with QX11EmbedContainer

2007-07-27 Thread Giovanni Bajo
representation will include a trailing L - it's not something you really want to pass to xterm. uh? str(1L) '1' str(10L) '10' repr(1L) '1L' ... or Python would miss a pretty basic feature! -- Giovanni Bajo ___ PyQt

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Giovanni Bajo
, but it is very unfriendly to stl.sip's users because they have to remember it every time or they get a memory leak. Moreover, the vector is returned *by value*, which really can't mean anything else but give ownership to Python. -- Giovanni Bajo ___ PyQt mailing

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Giovanni Bajo
/ annotations. This is one of the two leaks in my testcase (when calling the function with the /Out/ annotation). But in the other leak in my testcase, there is no /Out/ annotation, only a return value. Will that be fixed as well with tonight snapshot? -- Giovanni Bajo

Re: [PyQt] QTreeWidgetItemIterator

2007-07-30 Thread Giovanni Bajo
++ API doesn't seem to bring any concrete advantage. In this case, I'd rather get a Python-friendly iterator and nothing more. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] pyqt circular references garbage collection

2007-08-01 Thread Giovanni Bajo
is a good way to replace existing code using __del__ and make it GC-friendly. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] installing PyQt4.3 on a mac

2007-08-01 Thread Giovanni Bajo
always add this option to the sip's configure.py invokation: LFLAGS_PLUGIN=-bundle -flat_namespace -undefined suppress I think this is explained in README.Fink, in SIP. Without these options, I always get the bus error with anything compiled through the sip build engine. -- Giovanni Bajo

Re: [PyQt] Can't load UI files under Turkish locale

2007-08-02 Thread Giovanni Bajo
(in a non-broken Python distribution), and you run i.upper() it will *always* return I. So, how are you executing uic? Are you using it from within your program, where you changed Python's locale? -- Giovanni Bajo ___ PyQt mailing listPyQt

Re: [PyQt] deriving a style in pyqt

2007-08-03 Thread Giovanni Bajo
(which btw are implemented exactly like a wrapper style). They might already give you what you want without needing to write much code. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] how to set a widget background?

2007-08-06 Thread Giovanni Bajo
}) -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QSizeGrip does not work

2007-08-07 Thread Giovanni Bajo
On 8/7/2007 12:24 PM, Giovanni Bajo wrote: Hi Phil, it looks like QSizeGrip does not work at all in Windows. Something really simple like: from PyQt4.Qt import * app = QApplication([]) mw = QMainWindow() QSizeGrip(mw) mw.show

[PyQt] QSizeGrip does not work

2007-08-07 Thread Giovanni Bajo
not work. I debugged it a little and found out that QSizeEvent::winEvent() (the C++ function) is never invoked. The equivalent C++ code works perfectly (and QSizeEvent::winEvent() is invoked for every event, like expected). Any idea what's going on? -- Giovanni Bajo

Re: [PyQt] big problems with py2exe and cxfreeze on latest PyQt4

2007-08-08 Thread Giovanni Bajo
, and it's the same for both py2exe and cxfreeze. The trunk version of PyInstaller does not have this problem. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] problem with abstract classes

2007-08-13 Thread Giovanni Bajo
On 12/08/2007 16.20, Diez B. Roggisch wrote: Any suggestions? Am I doing something fundamentally wrong wrt implementation of C++-interfaces? Please post a minimal, complete example that reproduces your problem. Otherwise, it's a little hard to help you... -- Giovanni Bajo

Re: [PyQt] problem with abstract classes

2007-08-14 Thread Giovanni Bajo
expect? :) Define them as virtual (and even add the = 0 where appropriate) and you will get the right behaviour. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problems with MySQL module

2007-09-02 Thread Giovanni Bajo
On Sat, 1 Sep 2007 23:40:36 -0300, Gustavo A. Díaz [EMAIL PROTECTED] wrote: Phil, Ok, i have this output: /usr/bin/ld: cannot find -lmysqlclient_r Something i am missing? apt-get install libmysqlclient15-dev? -- Giovanni Bajo ___ PyQt

[PyQt] Serious performance problem with sipQtFindConnection

2007-09-17 Thread Giovanni Bajo
be tried to fix this. Thanks in advance! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: Serious performance problem with sipQtFindConnection

2007-09-18 Thread Giovanni Bajo
. Obviously there are other solutions, but the counts should point us in the right direction. Instead of a linked list, can't we have something like a hash table, indexed by the transmitter? You almost always go through the list looking for a specific transmitter. -- Giovanni Bajo

Re: [PyQt] SIP: how to add a new annotation

2007-10-05 Thread Giovanni Bajo
to mark with /Deprecated/. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Adding methods to C++-created objects

2007-10-17 Thread Giovanni Bajo
setModelData(self, editor, model, index): print editor.foo # accessing python stuff added before I think it's either a PyQt bug or simply this usage pattern is not fully supported. If this is something that should work, I'll work on a repro recipe. -- Giovanni Bajo

Re: [PyQt] Adding methods to C++-created objects

2007-10-17 Thread Giovanni Bajo
! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Qt 4.4

2007-10-17 Thread Giovanni Bajo
, because he's generating .sip files using a MetaSIP tool which he wrote and never released. So even if you provide a fully-functional patch file to him, he would probably need to redo the job or something. -- Giovanni Bajo ___ PyQt mailing listPyQt

[PyQt] [PATCH] sipconfig's PythonModuleMakefile: avoid SCM directories

2007-10-26 Thread Giovanni Bajo
directories in the working copy. This is a little unconvenient. The attached patch teaches PythonModuleMakefile about skipping .svn and CVS directories. setuptools/distutils have similar support. Phil, is this patch OK with you? -- Giovanni Bajo Index: siputils.py

Re: [PyQt] QTimer memory leek

2007-10-29 Thread Giovanni Bajo
repeatedly connected to the same Python slot so as not to leak memory in long running code. The use case is calling QTimer.singleShot() in a loop. Mind detailing this a bit? Why is this fix necessary as not to leak memory? Shouldn't the universal slots be collected anyway, sooner or later? -- Giovanni

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread Giovanni Bajo
clear... -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] comboBox inside a statusBar

2007-11-07 Thread Giovanni Bajo
. What is the meaning of 'changed' exactly ? You should concentrate on the meaning of line edit widget. The line edit widget within a combobox is enabled only when the combobox is editable. -- Giovanni Bajo ___ PyQt mailing listPyQt

Re: [PyQt] PyQt speed.

2007-11-10 Thread Giovanni Bajo
On 11/10/2007 3:49 AM, David Boddie wrote: I followed the advice given in the task description. The resulting performance is _much_ better - you have to see it to believe it. :-) Can you post the code, even if C++? It will be useful for future posters :) -- Giovanni Bajo

Re: [PyQt] running pyqt application on win*

2007-11-27 Thread Giovanni Bajo
with the consolidated module, and a custom python.dll without megs of useless korean codecs, ends up below 3 Mb with PyInstaller. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Segmentation Fault

2007-11-29 Thread Giovanni Bajo
:) Please post a complete, runnable source code example that reproduces the bug. But let me guess that you're doing something weird with ownership of the items... -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] C composite module problem and workaround

2007-12-05 Thread Giovanni Bajo
that is not smart enough to handle the composite module scenario. PyInstaller does not have such problems. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] pyqt 3.x windows license

2007-12-11 Thread Giovanni Bajo
this question using the email addresses on the Riverbank website, but those addresses were not reachable.) I'm not a lawyer, but I believe that it's OK if your program is GPL as well and full source code is available next to the binary download. -- Giovanni Bajo

[PyQt] Repr for value objects

2007-12-17 Thread Giovanni Bajo
-- given metasip). Thanks! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Repr for value objects

2007-12-17 Thread Giovanni Bajo
On 12/17/2007 2:40 PM, Giovanni Bajo wrote: Hi, there are many classes in PyQt which would benefit from a custom __repr__ method to show their contents. For instance, I'm getting tired of having to write: def mousePressEvent(self, e): print e.pos().x(), e.pos().y() instead

Re: [PyQt] Repr for value objects

2007-12-17 Thread Giovanni Bajo
to basic datatypes like float, char, etc. Moreover, I would still prefer a Python-standard syntax for a Python-standard method like __repr__; the standard syntax for the string returned by __repr__ (for objects with a meaningful __eq__) is a Python expression which can be evaluated. -- Giovanni

Re: [PyQt] Repr for value objects

2007-12-17 Thread Giovanni Bajo
): QStringMatcher/QByteArrayMatcher QDate/QTime/QDateTime QFlags QLatin1String QRegExp QStringList QStringRef QUrl and last but not least: QEvent* -- Giovanni Bajo Index: PyQt/sip/QtCore/quuid.sip === --- PyQt/sip/QtCore/quuid.sip (revision

Re: [PyQt] Is the result of SIGNAL() a constant?

2008-01-09 Thread Giovanni Bajo
(QString*)) SIG_FOO_2 = SIGNAL(foo(const QString )) What is exactly the advantage of supporting this feature out-of-the-box in PyQt? -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] Is the result of SIGNAL() a constant?

2008-01-09 Thread Giovanni Bajo
:) Very logical too. Sorry if I'm being super-dense today, but I still cannot see the point in having an incompatible syntax which replaces a comma by a period. Auto-completion, is that all? -- Giovanni Bajo ___ PyQt mailing listPyQt

Re: [PyQt] Deploying PyQt4 application

2008-01-28 Thread Giovanni Bajo
. If it fails, you may want to try the branch dl in PyInstaller SVN which ought to be merged in the next few days. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] What is PyQt4.Qt ?

2008-01-30 Thread Giovanni Bajo
, so that you can do from PyQt4.Qt import * and write Python code with the same look feel of the C++ one (no verbose prefixes). -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] Almost done with the switch to SIP

2008-01-31 Thread Giovanni Bajo
. SIP rules. Please post or blog about it: there are not enough information in Internet about this sort of comparisons. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 - Py2exe - Missing DLLs problem

2008-02-01 Thread Giovanni Bajo
to avoid bringing them in. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] customEvents causing seg fault?

2008-02-02 Thread Giovanni Bajo
(it should go too fast and the CPU usage would top). I hope such a workaround will work with you as well. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] RegExp and QString

2008-02-07 Thread Giovanni Bajo
() construction somewhere. Now, I with python I tried, a simple example: line = p.readline() sline = line.split(QtCore.QRegExp([A-Z]+)) With this code I got: TypeError: PyQt expected a character buffer object. It would work if you first converted the output of readline() to QString. -- Giovanni

[PyQt] SIP, templates and mapped types

2008-02-10 Thread Giovanni Bajo
the wrapper for std::vectorBugType, but not for std::vectorstd::vectorBugType (even though it already has all the information it needs, AFAICT). Is this something hard to implement/fix? -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] how to prevent QFileDialog.getSaveFileName from overwriting

2008-02-15 Thread Giovanni Bajo
be related to PyQt at all. That dialog is the OS one under Windows and Mac OSX, so if you're using Linux it might be a bug of the Qt implementation used by Linux -- which you should report to Trolltech. -- Giovanni Bajo ___ PyQt mailing listPyQt

Re: [PyQt] PyQt4 with cx_Freeze

2008-02-19 Thread Giovanni Bajo
that comes with PyQt4 as a test. I was wondering if you could help me out. I run: cx_Freeze is unmaintained, AFAIK. Try with PyInstaller SVN trunk (or branch /dl which will be merged in the next few days). -- Giovanni Bajo ___ PyQt mailing listPyQt

[PyQt] Bug ovverriding sizeHint

2008-02-22 Thread Giovanni Bajo
() function is called. Of course, if you comment the marked line, the overridden method is called, as expected. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Catching mouseclicks outside QPopup

2008-02-22 Thread Giovanni Bajo
. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
-- the comment seems to hint at a performance problem with PyCallable_Check. Besides the performance, would that work? -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
! -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: Bug ovverriding sizeHint

2008-02-25 Thread Giovanni Bajo
++ virtual functions is a fixed compile-time list, it shouldn't be too slow to invalidate the cache only when required. -- Giovanni Bajo ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] saving/restoring geometry

2008-03-11 Thread Giovanni Bajo
On Mon, 2008-03-10 at 16:03 -0500, Darren Dale wrote: Could anyone suggest how to save and restore the size and position of a dock widget and an mdi subwindow? There's QMainWindow.saveState() / restoreState(), if it's not too much. -- Giovanni Bajo

Re: [PyQt] SIP newcomer questions/complaints

2008-04-07 Thread Giovanni Bajo
specializations) used by the library you're writing bindings for; SIP's support for C++ templates is quite weak, so wrapping something like of STL requires abuse of copy paste, which is automated by this tool. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] About Focus Rect on widgets

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

Re: [partially solved] Re: [PyQt] KProcess setUsePty not there...

2008-04-13 Thread Giovanni Bajo
= useptyfix.MySetUsePty --- -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] SIP: template enhancements?

2008-04-24 Thread Giovanni Bajo
Hi Phil, can you please elaborate about this: 2008/04/15 19:54:04 phil Various template related bug fixes and enhancements need by PyQt's Phonon module. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] PyQt's Undo/Redo framework - A Very Short Intro

2008-04-24 Thread Giovanni Bajo
anything more than it would be done one opcode later when the method exits and its locals are destroyed. In fact, calling takeItem() without binding its return value to a name achieves the same effect and it is clearer. Thanks again for a nice article! -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] Updated PyQt Release Plans

2008-04-30 Thread Giovanni Bajo
the QObject dies, the Python object is flagged as invalid, and any usage of it results in a RuntimeError; moreover, you can check for this invalid condition through sip.isdeleted(). Thus, I'm not sure what you are speaking of. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread Giovanni Bajo
() (the C++ function), Qt doesn't know how to cooperate with Python for CTRL+C, and this is why it does not work. I don't think there's a good way to make it work; you may want to see if you can handle it through a global event filter. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Giovanni Bajo
still fill that numpy array one element at a time, nothing changes. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-13 Thread Giovanni Bajo
++ programmers. I personally saw a *large* increase of interest in Python Windows programmers since the consolidated installer was released. It would be a shame to see a regression there. I really hope you reconsider your choice. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-13 Thread Giovanni Bajo
On 5/13/2008 1:19 PM, Phil Thompson wrote: On Tuesday 13 May 2008 11:59:48 Giovanni Bajo wrote: On 5/13/2008 10:24 AM, Phil Thompson wrote: On Tuesday 13 May 2008 09:16:59 you wrote: Hi Phil, First we will install Qt/MinGW and then your installer ? And we have to do this for every machine we

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-14 Thread Giovanni Bajo
to build it as a single static _qt.pyd or with .pyd + Qt's .dll files. The former gives you a much smaller installer file which might be a feature; the latter gives more flexibility to final users. Either way it's fine. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Re: PyQt 4.4.2 GPL installer / missing DLL

2008-05-24 Thread Giovanni Bajo
to be a problem here. It's the kind of problems that re-surfaces now that Qt's .DLLs are separated from .PYDs. In fact, till now I hadn't realized this was a problem even if you installed Qt's .DLLs next to PyQt's .PYDs, but that's the way Windows works... -- Giovanni Bajo Develer S.r.l. http

[PyQt] New bug in SIP

2008-05-28 Thread Giovanni Bajo
== PARSE_OK (at line 7173) instead of pstate == PARSE_OK. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: New bug in SIP

2008-05-30 Thread Giovanni Bajo
On 5/30/2008 12:32 PM, Phil Thompson wrote: On Wednesday 28 May 2008 3:39:11 pm Giovanni Bajo wrote: Hi Phil, I found a new bug in SIP (it used to work with a SIP from September 2007). If you declare a class with a single constructor, you write %MethodCode for that constructor, and you make

Re: [PyQt] QVariant and Python list

2008-05-30 Thread Giovanni Bajo
, for instance, which can contain very large documents. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Can't create a QImage?

2008-06-01 Thread Giovanni Bajo
stdin, line 1, in module TypeError: argument 2 of QImage() has an invalid type img = QImage(QSize(10,10), QImage.Format_RGB32) img.width() 10 -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] operator new/delete and PyMem_New/Del

2008-06-04 Thread Giovanni Bajo
, void *a) { return ::operator delete(p, a); } }; You just inherit the small objects from this class and you're done with. If you do many allocations, this should be a win over the standard new/delete. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Getting rid of an object

2008-06-08 Thread Giovanni Bajo
use .deleteLater() (a QObject method) for deferred deletion. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: /NewThread/, and Python stack in Visual Studio

2008-06-12 Thread Giovanni Bajo
On 6/12/2008 6:44 PM, Kevin Watters wrote: Anyone lucky enough to be using Visual Studio for their SIP projects have any advice on the Python stack trace issue? Not that I know of, but please let me know if you find out something. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Python and smartpointers

2008-06-13 Thread Giovanni Bajo
; maybe Phil will chime in. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] (no subject)

2008-06-17 Thread Giovanni Bajo
: No such file or directory make[1]: *** [sipQtGuicmodule.o] Error 1 make: *** [install] Error 2 This happens when you try to compile PyQt 4.4 against Qt 4.3 (and it's a bug that's already fixed in PyQt snapshots). -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] References returned from C++

2008-06-22 Thread Giovanni Bajo
the SIP user choose. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Memory leak

2008-07-03 Thread Giovanni Bajo
= QVBoxLayout(None) L.addWidget(ws) L.activate() del L del ws import gc gc.collect() assert wr() is None The assert triggers, meaning that the object of type MyWidget is not released. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Memory leak

2008-07-04 Thread Giovanni Bajo
On Fri, 2008-07-04 at 10:48 +0200, Sundance wrote: Giovanni Bajo wrote: The assert triggers, meaning that the object of type MyWidget is not released. Hi Giovanni, Yes, this is a known bug: SIP keeps a hard reference to bound methods in its method cache (the bound method being

<    1   2   3   4   5   6   >