This is longer than the Qt only version but not much more complex. We need a couple of new import lines to give us access to PyKDE.

Then we need to define some meta-data about the application. Most of these are just text strings. Some are translated using ki18n() and licence uses one of several options from KAboutData.

We pass this meta-data when creating a KAboutData object. Next we need to create parse command line arguments using KCmdLineArgs.init(), this offers very powerful command line argument options, in this simple application we do not use it however it is still required.

Instead of a QApplication we create a KApplication. The rest of the programme is the same.

The application looks much the same except KDE will use the oxygen "unknown" icon in the corner.