[PyKDE] KDE XML GUI ActionLists

Jim Bublitz jbublitz at nwinternet.com
Tue Apr 22 23:50:01 BST 2003


On 22-Apr-03 Gordon Tyler wrote:
> I originally had self.actionCollection() which I later replaced
> with  None. It wasn't working either.

Yep - I tried both my suggestions (with variations) and nothing
works.

It's hard to get inside what's going on, but the following:

    c = self.factory ().container ("recent", self, 1)

(where "recent" is the Action List name) seems like it should
return something, but it returns None. Not that it helps a lot, but
maybe it'll give an indication of the point of failure in the C++
code.
 
> I really don't think the actions need to be in the KMainWindow's
> action collection because they're dynamic (almost temporary)
> actions that are thrown away and recreated each time the list
> is updated. To my mind, the action collection is for static,
> well known, named actions.

Yep - you'd have to update the KActionCollection each time too, or
KActions will accumulate with each change.
 
>> Maybe check for typos again - I spent 15 minutes last night
>> tracking down a bug that turned out to be that I'd typed __
>> instead
>> of _ .
 
> I'll see if I can spot anything.

Not working here either. I have to leave for a while - I'll try
some other stuff when I get back. I'm going to check out some other
PyKDE stuff, but I don't think that's the problem.

Jim





More information about the PyQt mailing list