|
|
|
@ -47,7 +47,7 @@ def getOptions ():
|
|
|
|
|
|
|
|
|
|
opterr = 0
|
|
|
|
|
shortOptions = 'aip:'
|
|
|
|
|
longOptions = ['noapp', 'noimport', 'pyuic=', 'usekdei18n']
|
|
|
|
|
longOptions = ['noapp', 'noimport', 'pyuic=', 'usetdei18n']
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
optlist, args = getopt.getopt (sys.argv [1:], shortOptions, longOptions)
|
|
|
|
@ -59,13 +59,13 @@ def getOptions ():
|
|
|
|
|
if opterr or (len (args) != 1):
|
|
|
|
|
print """\nUsage:
|
|
|
|
|
|
|
|
|
|
kdepyuic [options] filename.ui
|
|
|
|
|
tdepyuic [options] filename.ui
|
|
|
|
|
|
|
|
|
|
Options:
|
|
|
|
|
-a, --noapp Don't add TDEApplication code
|
|
|
|
|
-i, --noimport Don't add tdecore, tdeui import statements
|
|
|
|
|
-p, --pyuic Path to pyuic program
|
|
|
|
|
--usekdei18n Adds KDEs default i18n functions to your Python KDE ui file
|
|
|
|
|
--usetdei18n Adds TDEs default i18n functions to your Python TDE ui file
|
|
|
|
|
"""
|
|
|
|
|
return FALSE
|
|
|
|
|
|
|
|
|
@ -85,7 +85,7 @@ def checkOptions (optlist):
|
|
|
|
|
elif (pair [0] == '--pyuic') or (pair [0] == '-p'):
|
|
|
|
|
pyuicPath = pair [1]
|
|
|
|
|
|
|
|
|
|
if (pair [0] == '--usekdei18n'):
|
|
|
|
|
if (pair [0] == '--usetdei18n'):
|
|
|
|
|
i18nFunc=TRUE
|
|
|
|
|
else:
|
|
|
|
|
i18nFunc=FALSE
|