All pastes #937226 Raw Edit

Serega

public python v1 · immutable
·published 2008-03-10 22:28 UTC
rendered paste body
#!/usr/bin/pythonimport sysimport gettextfrom kdeui import *from kdecore import *from qt import *if len(sys.argv) < 2:    sys.exit(0)gettext.install('kaffeine-install-codecs', None, True)about_data = KAboutData('install-codecs', 'Kafeine', '1.0')KCmdLineArgs.init([sys.argv[0]], about_data)app = KApplication()if (sys.argv[1] == 'ffmpeg'):    answer = KMessageBox.questionYesNo(None, _(u'Kaffeine does not have a codec installed to play this file. '                                                  'Do you want to install the codecs?'),                                             _(u'Codec not found'))