|
|
@ -45,7 +45,7 @@ import sys
|
|
|
|
|
|
|
|
|
|
|
|
from qt import TQPopupMenu, SIGNAL
|
|
|
|
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
|
|
|
|
from tdeui import KMainWindow, KMessageBox
|
|
|
|
|
|
|
|
|
|
|
|
TOOLBAR_NEW = 1
|
|
|
|
TOOLBAR_NEW = 1
|
|
|
@ -136,7 +136,7 @@ class MainWin (KMainWindow):
|
|
|
|
|
|
|
|
|
|
|
|
# Let KDE generate a nifty help menu
|
|
|
|
# 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
|
|
|
|
# will be used to generate the About dialog
|
|
|
|
|
|
|
|
|
|
|
|
helpMenu = self.helpMenu ("")
|
|
|
|
helpMenu = self.helpMenu ("")
|
|
|
@ -247,7 +247,7 @@ class MainWin (KMainWindow):
|
|
|
|
# See athe minimal.py and basicapp.py templates for
|
|
|
|
# See athe minimal.py and basicapp.py templates for
|
|
|
|
# explantion of the basic app and main window setup
|
|
|
|
# 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
|
|
|
|
# turn makes it available to the "about" box in the Help
|
|
|
|
# menu (when the Help menu is created as above)
|
|
|
|
# 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 ("author1", "whatever they did", "email@somedomain")
|
|
|
|
aboutData.addAuthor ("author2", "they did something else", "another@email.address")
|
|
|
|
aboutData.addAuthor ("author2", "they did something else", "another@email.address")
|
|
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs.init (sys.argv, aboutData)
|
|
|
|
TDECmdLineArgs.init (sys.argv, aboutData)
|
|
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
|
|
|
|
TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
|
|
|
|
|
|
|
|
|
|
|
|
app = TDEApplication ()
|
|
|
|
app = TDEApplication ()
|
|
|
|
mainWindow = MainWin (None, "main window")
|
|
|
|
mainWindow = MainWin (None, "main window")
|
|
|
|