[PyKDE] PyKDE Bug Report

Jim Bublitz jbublitz at nwinternet.com
Tue May 21 00:02:00 BST 2002


In PyKDE-3.2.4/sip/kstdaction.sip, the 'print' method/function
needs to be modified in two places to look like the following:

static KAction* print (SIP_RXOBJ_CON, SIP_SLOT_CON(),
  QObject*/Transfer/ = 0, const char* = 0)/PyName=printAction/;


KAction* print(SIP_RXOBJ_CON, SIP_SLOT_CON(), KActionCollection*,
  const char* = 0)/PyName=printAction/;

(the lines are not wrapped in the actual file)

The change is the addition of /PyName=printAction/ to each
declaration. This directive changes the name used to call the
method/function in Python. 'print' cannot be used as the name of a
method or function, since it is a Python reserved word. 'print' is
not usable in the current release because of this name clash. The
new method/function name will be 'printAction' (actually 
'KStdAction.printAction(...) in both cases) for Python usage.

After editing kstdaction.sip, you can rebuild only the kdeui module
with (current directory == PyKDE-3.2.4):

   build -m kdeui

or you can run ./configure to rebuild all modules. Run make and 
make install to finish the upgrade.

The release file will be modified and posted in the next several
days. The new release file name will be PyKDE-3.2.4-1. The version
number will remain 3.2.4. The release file also contains modified
docs reflecting the name change.

Jim




More information about the PyQt mailing list