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
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
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ó
, 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
/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
(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
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ó
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
* 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
')
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
* 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
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
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ó
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
,
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
* 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
,
--
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
* 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
!
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
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
* 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
* 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
/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
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
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
,
--
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
* 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
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
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
.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
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
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
* 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
/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
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
, 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
. 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
* 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
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
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
* 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
* 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
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
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
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
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
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
* 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
* 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
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
* 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
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ó
, 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
') # 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
/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
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
)
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
57 matches
Mail list logo