[PyQt] QUndoCommand.undo() not getting called upon push()

2009-10-14 Thread Adeodato Simó
Hello, I define a couple QUndoCommand classes based on a mixin, where the undo command of one is the redo of the other, and vice-versa. See the attached file. Unfortunately this has stopped working with PyQt 4.6. Executing the attached file prints inserting foo, removing bar with PyQt = 4.5, but

Re: [PyQt] QUndoCommand.undo() not getting called upon push()

2009-10-14 Thread Adeodato Simó
s/undo()/redo()/ in the subject, of course. -- - Are you sure we're good? - Always. -- Rory and Lorelai ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Adeodato Simó
into the global namespace (as opposed to stuff as exec_() that can only be attached to an object). If you see in the middle of a program hex_(foo), you may wonder where that came from, whereas qhex(foo) is going to be rather obvious. Of course, do what you think it's best. :-) -- Adeodato Simó

Re: [PyQt] PyKDE4, KApplication and DBus

2008-10-31 Thread Adeodato Simó
, line 1, in module ValueError: Invalid interface or error name 'foo.bar.org-1': contains invalid character '-' -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Mankind are very odd creatures

Re: [PyQt] Re: More recent g++ slows build time immensely

2008-10-31 Thread Adeodato Simó
/usr/bin/gcov gcov /usr/bin/gcov-4.2 That breaks your system. And it will be overwritten if an update to gcc comes. After that, you can switch GCC version with: $ sudo update-alternatives --config gcc -- Adeodato Simó dato at net.com.org.es Debian

Re: [PyQt] PyKDE4, KApplication and DBus

2008-10-31 Thread Adeodato Simó
(HelloInterface, in_signature='', out_signature='') def sayHello(self): print Hello! That code fails on me with: ValueError: Invalid interface or error name 'HelloInterface': must contain '.' -- Adeodato Simó dato at net.com.org.es Debian

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Adeodato Simó
change in sip or PyQt that's causing the problem. I'll have to upgrade to troubleshoot it, and that may take me a while to get to. So, Jim, sounds like a change in PyQt, yes. No idea if this could be related to the fix Simon mentions or not. Cheers, -- Adeodato Simó

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-15 Thread Adeodato Simó
is not You need to. -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Listening to: Mastretta - Última vuelta en Monmeló ___ PyQt mailing

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-14 Thread Adeodato Simó
* Jim Bublitz [Sat, 14 Jun 2008 10:37:07 -0700]: Hello, On Friday 13 June 2008 08:19, Adeodato Simó wrote: * Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]: PyKDE3 or PyKDE4? Er, PyKDE4 (since I said I was using PyQt 4.4...) But you're trying to use KDE3 syntax

[PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Adeodato Simó
') Traceback (most recent call last): File stdin, line 1, in module TypeError: insufficient number of arguments to KAboutData() This has broken my application, any ideas? -- Adeodato Simó dato at net.com.org.es Debian Developer

Re: [PyQt] KAboutData() broken when using PyQt 4.4

2008-06-13 Thread Adeodato Simó
* Jim Bublitz [Fri, 13 Jun 2008 07:50:31 -0700]: PyKDE3 or PyKDE4? Er, PyKDE4 (since I said I was using PyQt 4.4...) Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org

Re: [PyQt] where to ./setup --install your ui.rc file

2008-04-15 Thread Adeodato Simó
data`/appname Which can vary from system to system. (And if you're using PyKDE4, use kde4-config instead of kde-config.) Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org The problem I have

[PyQt] Bad importing of KDE classes in pykdeuic4

2008-04-10 Thread Adeodato Simó
correctly... | from PyKDE4 import kdecore | from PyKDE4 import kdeui | from PyQt4 import QtCore, QtGui | special widgets are imported at the end of the document giving a non- | existent package: | from kcombobox import KComboBox See the two attached files for an example. -- Adeodato Simó

Re: [PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs)

2008-04-08 Thread Adeodato Simó
I'm happy to share that PyKDE4 + dbus-python seems to work without problems with Qt 4.4-rc1. Thanks to Jonathan Riddell for the heads up. Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org

[PyQt] PyKDE extra/kde4xx suggestion

2008-04-07 Thread Adeodato Simó
, inconvenient. Is there a reason why the extra/ subdirs could not be shared among minor releases? Thanks in advance, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org A conference is a gathering

Re: [PyQt] PyKDE extra/kde4xx suggestion

2008-04-07 Thread Adeodato Simó
* Adeodato Simó [Mon, 07 Apr 2008 18:28:21 +0200]: However, I saw this failure [1] in Ubuntu, where your 4.0.2-1 (¹) gets built agains KDE 4.0.3, and it fails because it can't find ksycocafactory.h. Hence I assumed it was expecting extra/kde403. Additionally, after copying extra/kde402

Re: [PyQt] dbus and PyKDE

2008-04-06 Thread Adeodato Simó
, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org The first step on the road to wisdom is the admission of ignorance. The second step is realizing that you don't have to blab it to the world

Re: [PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-05 Thread Adeodato Simó
* Jim Bublitz [Fri, 28 Mar 2008 09:17:25 -0800]: I'm still looking into this - it doesn't look like it's going to fixed quickly. Just thought I'd let you know. Ok, I'll wait. :) -- Adeodato Simó dato at net.com.org.es Debian Developer

[PyQt] Re: [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-04-03 Thread Adeodato Simó
! Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Education is what remains after one has forgotten everything he learned in school. -- Albert Einstein

[PyQt] [PyKDE] KConfigSkeleton/KConfigDialog combo not working

2008-03-27 Thread Adeodato Simó
file, but when I restart the program, it is set to False again Can you reproduce? Is there something wrong with my code? (With KDE 3 it worked just fine). Thanks in advance, -- Adeodato Simó dato at net.com.org.es Debian Developer

no cookie :-( (Re: [PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs))

2008-03-17 Thread Adeodato Simó
* Adeodato Simó [Fri, 14 Mar 2008 10:55:15 +0100]: * Jim Bublitz [Thu, 13 Mar 2008 15:41:30 -0800]: Setting some of the fields in KAboutData also sets some info that DBus uses (name, domain info?) - setting it incorrectly (like putting the .py extension on the name) also causes

Re: [PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs)

2008-03-14 Thread Adeodato Simó
* Jim Bublitz [Thu, 13 Mar 2008 15:41:30 -0800]: On Thursday 13 March 2008 15:50, Adeodato Simó wrote: * Phil Thompson [Thu, 13 Mar 2008 22:03:08 +]: You need to create the QApplication before the main loop. Oh, changing that makes the example work, thank you. However, if I change

[PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs)

2008-03-13 Thread Adeodato Simó
/SomeObject com.example.SampleInterface.HelloWorld hello Interface 'com.example.SampleInterface' not available in object /SomeObject at com.example.SampleService: org.freedesktop.DBus.Error.NoReply (...) Any ideas? -- Adeodato Simó dato at net.com.org.es Debian

Re: [PyQt] QtDBus not wrapped, trouble using dbus-python (communication hangs)

2008-03-13 Thread Adeodato Simó
And the application hangs. Any ideas? Thanks, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org I went to the race track once and bet on a horse that was so good that it took seven others to beat him

[PyQt] [PyKDE] One more issue with qt4 includes

2008-03-12 Thread Adeodato Simó
in Debian's packages to PyKDE4. Would you be interested in including it? Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Man: Wow, that woman looks exactly the way Nina is going to look

Re: [PyQt] [PyKDE] One more issue with qt4 includes

2008-03-12 Thread Adeodato Simó
, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org When all is summed up, a man never speaks of himself without loss; his accusations of himself are always believed; his praises never

Re: [PyQt] [PyKDE] One more issue with qt4 includes

2008-03-12 Thread Adeodato Simó
* Adeodato Simó [Wed, 12 Mar 2008 14:00:41 +0100]: Well, I've now seen in the 4.0.2-1 tarball ChangeLog that says: Allow for separate dir for Qt includes in configure.py But I can't find that option. It would be indeed very handy. Ah, I see it's in configure.template

Re: [PyQt] PyKDE4-4.0.0 release available

2008-03-08 Thread Adeodato Simó
to a CMake bug, and configure.py chokes on it. Thanks for your work! -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Judge a man by his questions rather than by his answers

Re: [PyQt] Re: Problems building PyKDE4

2008-03-08 Thread Adeodato Simó
some bug in the way the tarball gets built - I'll track it down and release a new tarball. extra/kde400 and kde401 exist in the released tarball. Maybe Detlev was compiling against 4.0.2? -- Adeodato Simó dato at net.com.org.es Debian Developer

[PyQt] [PyKDE] Error while building: error: 'rindex' is not a member of 'X'

2008-03-08 Thread Adeodato Simó
.cpp:232816: error: ‘Xindex’ is not a member of ‘X’ make[1]: *** [sipkdeuipart0.o] Error 1 Any hints? -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Bethany, I'm not the kind of guy that girls

Re: [PyQt] problem with QSystemTrayIcon

2008-02-21 Thread Adeodato Simó
be by providing menu options. For mouse clicks, you do it with the activated() signal: http://doc.trolltech.com/4.3/qsystemtrayicon.html#activated http://doc.trolltech.com/4.3/qsystemtrayicon.html#ActivationReason-enum HTH, -- Adeodato Simó dato at net.com.org.es

[PyQt] Always call pyqtRemoveInputHook()? (Or check if running under pdb)

2008-02-19 Thread Adeodato Simó
is running under pdb or, if not, if it'd be safe to always call pyqtRemoveInputHook()? Thanks, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Listening

Re: [PyQt] [PyKDE4] Crash when using KConfig

2008-02-15 Thread Adeodato Simó
* Simon Edwards [Thu, 14 Feb 2008 22:59:49 +0100]: Adeodato Simó wrote: Hello, any news about this? This works. (see attachment). Oh. Well, it doesn't crash, but it's not quite the same, since that writes to the session config (~/.kde/share/config/session/test_... vs. ~/.kde/share/config

Re: [PyQt] PyKDE4 question

2008-02-05 Thread Adeodato Simó
/pipermail/pyqt/2008-January/018164.html Thanks for your work, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Listening to: Mecano - Un año más

Re: [PyQt] [PyKDE4] Crash when using KConfig

2008-01-25 Thread Adeodato Simó
Hello, any news about this? * Adeodato Simó [Sat, 12 Jan 2008 19:36:01 +0100]: Hello Simon, I'm afraid it's me again. I'm now having trouble with KConfig/KConfigGroup: when I retrieve the application config object, and try to write to it, it crashes. See the attached two files. Can you

Re: [PyQt] Overriding only one of two C++ virtual methods with different signature

2008-01-20 Thread Adeodato Simó
, QString):             superclass.updateSearch(self, arg):         else:             do_your_thing() OK, this is exactly what I was doing, but wanted to know if there was another way. Thank you, -- Adeodato Simó dato at net.com.org.es Debian Developer

[PyQt] Overriding only one of two C++ virtual methods with different signature

2008-01-19 Thread Adeodato Simó
. Is this possible at all? At the moment, my python function is gettin called in both cases. Any help appreciated. -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org And how do you tell an extroverted

Re: [PyQt] [PyKDE4] Default value for the second argument of KAction.setShortcut() does not seem to work

2008-01-12 Thread Adeodato Simó
* Simon Edwards [Sat, 12 Jan 2008 11:40:53 +0100]: Adeodato Simó wrote: This one time, I'm finding that KAction.setShortcut() can't work in Python without passing a value for the second argument, whereas this works in C++. Any chance you'd know why? Thanks. Looks like a bug in PyKDE4

[PyQt] [PyKDE4] Crash when using KConfig

2008-01-12 Thread Adeodato Simó
Python? Thanks, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Listening to: Kiko Veneno - Currito ta ta ta #! /usr/bin/env python Using KConfig crashes

[PyQt] [PyKDE4] Text of menus not showing up

2008-01-08 Thread Adeodato Simó
programs, one in C++ and another in Python. I can see the File menu in the C++ one, but in the Python one the menu is there, but the text is missing. Does it happen to you too? Thanks in advance, -- Adeodato Simó dato at net.com.org.es Debian Developer

Re: [PyQt] QThread and QDir::entryList() not getting along in Python?

2008-01-02 Thread Adeodato Simó
* Adeodato Simó [Wed, 02 Jan 2008 00:04:21 +0100]: However, I'm having trouble, since I cannot get my Python code to work fine, the main thread seems to be blocked by the thread reading the contents. Meh, the Python code I attached seems to work find when (trivially) ported to PyQt4

Re: [PyQt] KURLCompletion not working

2008-01-02 Thread Adeodato Simó
* Adeodato Simó [Sat, 04 Aug 2007 15:36:30 +0200]: please find attached a sample python script exercising KURLCompletion which does not work, together with a C++ translation which does Okay, so after some months inspiration came to me. This can work, but instead of this way

[PyQt] QThread and QDir::entryList() not getting along in Python?

2008-01-01 Thread Adeodato Simó
reading /mnt/mp3/artists through a slow network link in C++, the main thread works normally (wakes up every second), but in Python it suffers stagnation. Why does this happen, and how can I address it? -- Adeodato Simó dato at net.com.org.es Debian Developer

Re: [PyQt] Rejoice, for PyKDE4 has landed in KDE SVN

2007-11-13 Thread Adeodato Simó
them and discovers the bugs. I'll try to make a point of announcing here when the Phonon bindings hit SVN (or a tarball) so that you can try them out before release (if the timing works out that way). OK. -- Adeodato Simó dato at net.com.org.es Debian

Re: [PyQt] Rejoice, for PyKDE4 has landed in KDE SVN

2007-11-12 Thread Adeodato Simó
and verifying that at least my use case works.) Thanks in advance, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org - Why are you whispering? - Because I just think that no matter where she

Re: [PyQt] Crash in KMainWindow.saveProperties() [small sample C++/Python code provided]

2007-08-29 Thread Adeodato Simó
SVN/whatever (the version number is 3.15.2+20060422-3). Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org A. Because it breaks the logical sequence of discussion Q. Why is top posting bad

[PyQt] Crash in KMainWindow.saveProperties() [small sample C++/Python code provided]

2007-08-28 Thread Adeodato Simó
saveProperties() crahses as well. [1] http://www.riverbankcomputing.com/pipermail/pyqt/2007-February/015426.html Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org We may not return the affection

Re: [PyQt] Crash in KMainWindow.saveProperties() [small sample C++/Python code provided]

2007-08-28 Thread Adeodato Simó
* Jim Bublitz [Tue, 28 Aug 2007 12:56:19 -0700]: On Tuesday 28 August 2007 11:10, Adeodato Simó wrote: Hello. I'm getting the same backtrace as mentioned in [1]. Please find attached a minimal C++ example application that successfully saves its state, and a Python equivalent

Re: [PyQt] Crash in KMainWindow.saveProperties() [small sample C++/Python code provided]

2007-08-28 Thread Adeodato Simó
* Adeodato Simó [Tue, 28 Aug 2007 22:30:36 +0200]: Do you think there's a chance a newer version of PyKDE could help? Oh my. I built 3.16 from source (it's not in Debian yet, I'm afraid) and it... works! Thanks for confirming it worked for you, which triggered me to build the new version

[PyQt] Presenting Minirok, a 2.5k lines app in PyKDE (and thanks!)

2007-08-25 Thread Adeodato Simó
some Python project to work on. The look and feel it's mostly the same as Amarok's. http://chistera.yi.org/~adeodato/code/minirok/ Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org

Re: [PyQt] Any standard way of installing a PyKDE application?

2007-08-19 Thread Adeodato Simó
* David Boddie [Sun, 19 Aug 2007 04:20:41 +0200]: This might be useful to you: http://www.simonzone.com/software/pykdeextensions/ Indeed, thanks! -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato

[PyQt] Any standard way of installing a PyKDE application?

2007-08-18 Thread Adeodato Simó
Hello. I have a PyKDE application that, appart from the .py files, has several icons, desktop file, and a couple more data files. Is there a standard procedure to install these? Or people just do it by hand in setup.py? Any input appreciated. Cheers, -- Adeodato Simó

Re: [PyQt] Any standard way of installing a PyKDE application?

2007-08-18 Thread Adeodato Simó
, that was precisely my intentions for the .py files. :-) I was more interested though in knowing any standard procedure for installing icons, desktop files, and other similar data in the appropriate locations. Cheers, -- Adeodato Simó dato at net.com.org.es Debian

[PyQt] Multiple inheritance involving KXMLGUIClient does not work?

2007-08-11 Thread Adeodato Simó
') # True - -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org We're happy, we have boyfriends! This is infinitely better than

[PyQt] Small patch for pykde/examples/systray.py

2007-08-04 Thread Adeodato Simó
/classKSystemTray.html#e0 I hope it can be applied if it's correct. (If this is not the correct address to send patches, please direct me to the right place.) Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org

[PyQt] KURLCompletion not working

2007-08-04 Thread Adeodato Simó
with a C++ translation which does (linking needs -lkio). Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org Any life, no matter how long and complex it may be, is made up of a single

[PyQt] KGlobalAccel, again

2007-08-03 Thread Adeodato Simó
) self.global_accel.updateConnections() def slot_action(self): print Inside slot_action() if __name__ == '__main__': main() - -- Adeodato Simó dato at net.com.org.es Debian Developer