summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-21 18:37:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-21 18:37:56 -0600
commit3d1fa8562bf693237a1a76918b4487cca3e2e356 (patch)
treeb7433e34f990eaeae6905eafdd1e801111084bc0 /examples/pytde-sampler
parent75a3ef0afbe95220d12b8ab4e63cfd3751abd353 (diff)
downloadpytde-3d1fa8562bf693237a1a76918b4487cca3e2e356.tar.gz
pytde-3d1fa8562bf693237a1a76918b4487cca3e2e356.zip
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'examples/pytde-sampler')
-rw-r--r--examples/pytde-sampler/qt_widgets/CONTRIB2
-rwxr-xr-xexamples/pytde-sampler/runner.py8
-rwxr-xr-xexamples/pytde-sampler/sampler.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB
index 3e0c57f..3c741aa 100644
--- a/examples/pytde-sampler/qt_widgets/CONTRIB
+++ b/examples/pytde-sampler/qt_widgets/CONTRIB
@@ -28,7 +28,7 @@ tdecore,KCalendarSystemFactory,,,
tdecore,KCatalogue,,,
tdecore,KCharsets,,,
tdecore,KClipboardSynchronizer,,,
-tdecore,KCmdLineArgs,,,
+tdecore,TDECmdLineArgs,,,
tdecore,KCmdLineOptions,,,
tdecore,KCodecs,,,
tdecore,KCompletion,,,
diff --git a/examples/pytde-sampler/runner.py b/examples/pytde-sampler/runner.py
index 3f479f6..d9eee11 100755
--- a/examples/pytde-sampler/runner.py
+++ b/examples/pytde-sampler/runner.py
@@ -3,7 +3,7 @@
"""
import sys
-from tdecore import TDEApplication, KCmdLineArgs
+from tdecore import TDEApplication, TDECmdLineArgs
from tdeui import KMainWindow
from qt import TQVBoxLayout
@@ -42,10 +42,10 @@ def importItem(name):
if __name__ == '__main__':
options = [('+item', 'An item in the sys.path')]
- KCmdLineArgs.init(sys.argv, about.about)
- KCmdLineArgs.addCmdLineOptions(options)
+ TDECmdLineArgs.init(sys.argv, about.about)
+ TDECmdLineArgs.addCmdLineOptions(options)
- args = KCmdLineArgs.parsedArgs()
+ args = TDECmdLineArgs.parsedArgs()
if not args.count():
args.usage()
else:
diff --git a/examples/pytde-sampler/sampler.py b/examples/pytde-sampler/sampler.py
index ec1d053..4e7eb43 100755
--- a/examples/pytde-sampler/sampler.py
+++ b/examples/pytde-sampler/sampler.py
@@ -14,7 +14,7 @@ from qt import SIGNAL, SLOT, PYSIGNAL, TQt
from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
-from tdecore import i18n, KAboutData, TDEApplication, KCmdLineArgs, KGlobal
+from tdecore import i18n, KAboutData, TDEApplication, TDECmdLineArgs, KGlobal
from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon
from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit
@@ -409,7 +409,7 @@ class SamplerMainWindow(KMainWindow):
if __name__ == '__main__':
aboutdata = about.about()
- KCmdLineArgs.init(sys.argv, aboutdata)
+ TDECmdLineArgs.init(sys.argv, aboutdata)
app = TDEApplication()
splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))