diff options
author | Timothy Pearson <[email protected]> | 2013-01-21 18:37:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-21 18:37:56 -0600 |
commit | 3d1fa8562bf693237a1a76918b4487cca3e2e356 (patch) | |
tree | b7433e34f990eaeae6905eafdd1e801111084bc0 /templates/annotated | |
parent | 75a3ef0afbe95220d12b8ab4e63cfd3751abd353 (diff) | |
download | pytde-3d1fa8562bf693237a1a76918b4487cca3e2e356.tar.gz pytde-3d1fa8562bf693237a1a76918b4487cca3e2e356.zip |
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'templates/annotated')
-rw-r--r-- | templates/annotated/basicapp.py | 8 | ||||
-rw-r--r-- | templates/annotated/menuapp1.py | 10 | ||||
-rw-r--r-- | templates/annotated/menuapp2.py | 6 | ||||
-rw-r--r-- | templates/annotated/menuapp3.py | 6 | ||||
-rw-r--r-- | templates/annotated/systray1.py | 2 |
5 files changed, 16 insertions, 16 deletions
diff --git a/templates/annotated/basicapp.py b/templates/annotated/basicapp.py index 44b6681..b5abe80 100644 --- a/templates/annotated/basicapp.py +++ b/templates/annotated/basicapp.py @@ -35,7 +35,7 @@ copyright holder. import sys -from tdecore import TDEApplication, KCmdLineArgs, KAboutData +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData from tdeui import KMainWindow """ @@ -75,7 +75,7 @@ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "[email protected]") # Pass the command line arguments and aboutData to -# KCmdLineArgs - this is where KDE will look for +# TDECmdLineArgs - this is where KDE will look for # this information. The TDEApplication constructor # used below *requires* the args are processed # *before* TDEApplication is instantiated. There @@ -85,7 +85,7 @@ aboutData.addAuthor ("author2", "they did something else", "[email protected] # Note that instead of argc/argv, this constructor # only takes a single argument - sys.argv - which # is a Python list -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) # Set up the command line options (switches) you # want your app to be able to process (you could @@ -94,7 +94,7 @@ KCmdLineArgs.init (sys.argv, aboutData) # Note that the argument for this method is a list # of tuples -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) # instantiate TDEApplication - no other TQObject # or TQWidget based classes can be instantiated diff --git a/templates/annotated/menuapp1.py b/templates/annotated/menuapp1.py index d18ea00..faa8662 100644 --- a/templates/annotated/menuapp1.py +++ b/templates/annotated/menuapp1.py @@ -45,7 +45,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader from tdeui import KMainWindow, KMessageBox TOOLBAR_NEW = 1 @@ -136,7 +136,7 @@ class MainWin (KMainWindow): # Let KDE generate a nifty help menu - # The KAboutData/KCmdLineArgs data from the main part of the program + # The KAboutData/TDECmdLineArgs data from the main part of the program # will be used to generate the About dialog helpMenu = self.helpMenu ("") @@ -247,7 +247,7 @@ class MainWin (KMainWindow): # See athe minimal.py and basicapp.py templates for # explantion of the basic app and main window setup -# The following data is passed to KCmdLineArgs, which in +# The following data is passed to TDECmdLineArgs, which in # turn makes it available to the "about" box in the Help # menu (when the Help menu is created as above) @@ -260,9 +260,9 @@ aboutData = KAboutData ("", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "[email protected]") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/annotated/menuapp2.py b/templates/annotated/menuapp2.py index c5cbe1b..1924eef 100644 --- a/templates/annotated/menuapp2.py +++ b/templates/annotated/menuapp2.py @@ -43,7 +43,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n from tdeui import KMainWindow, KMessageBox, KStdAction, KAction STATUSBAR_LEFT = 1 @@ -234,9 +234,9 @@ aboutData = KAboutData ("", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "[email protected]") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/annotated/menuapp3.py b/templates/annotated/menuapp3.py index 19140ef..84a90f7 100644 --- a/templates/annotated/menuapp3.py +++ b/templates/annotated/menuapp3.py @@ -43,7 +43,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection STATUSBAR_LEFT = 1 @@ -198,9 +198,9 @@ aboutData = KAboutData ("menuapp3", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "[email protected]") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/annotated/systray1.py b/templates/annotated/systray1.py index 1537fbc..db017c3 100644 --- a/templates/annotated/systray1.py +++ b/templates/annotated/systray1.py @@ -74,7 +74,7 @@ class MainWin (KMainWindow): #-------------------- main ------------------------------------------------ -# The usual stuff - you can also use the KAboutData/KCmdLineArgs version +# The usual stuff - you can also use the KAboutData/TDECmdLineArgs version # for program startup used in other templates - the TDEApplication constructor # used here may be obsoleted eventually appName = "template" |