Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 1d7616d07e
commit 6677c2f8c6

@ -62,7 +62,7 @@ def getOptions ():
kdepyuic [options] filename.ui
Options:
-a, --noapp Don't add KApplication code
-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
@ -95,7 +95,7 @@ def checkOptions (optlist):
def addimport (n):
if addApp:
n.write ('from tdecore import KCmdLineArgs, KApplication\n')
n.write ('from tdecore import KCmdLineArgs, TDEApplication\n')
if i18nFunc:
n.write ('from tdecore import i18n\n')
n.write ('from tdeui import *\n\n')
@ -107,7 +107,7 @@ def addapp (indent, n):
n.write (indent + 'version = ""\n')
n.write ('\n')
n.write (indent + 'KCmdLineArgs.init (sys.argv, appname, description, version)\n')
n.write (indent + 'a = KApplication ()\n\n')
n.write (indent + 'a = TDEApplication ()\n\n')
def doPyuic ():

@ -232,9 +232,9 @@
<tr ><td><a href="tdeui/KActiveLabel.html">KActiveLabel</A></td></tr>
<tr ><td><a href="tdeui/KAnimWidget.html">KAnimWidget</A></td></tr>
<tr ><td><a href="kfile/KAppTreeListItem.html">KAppTreeListItem</A></td></tr>
<tr ><td><a href="tdecore/KApplication.html">KApplication</A></td></tr>
<tr ><td><a href="kfile/KApplicationPropsPlugin.html">KApplicationPropsPlugin</A></td></tr>
<tr ><td><a href="kfile/KApplicationTree.html">KApplicationTree</A></td></tr>
<tr ><td><a href="tdecore/TDEApplication.html">TDEApplication</A></td></tr>
<tr ><td><a href="kfile/TDEApplicationPropsPlugin.html">TDEApplicationPropsPlugin</A></td></tr>
<tr ><td><a href="kfile/TDEApplicationTree.html">TDEApplicationTree</A></td></tr>
<tr ><td><a href="kio/KAr.html">KAr</A></td></tr>
<tr ><td><a href="kio/KArchive.html"><i>KArchive</i></A></td></tr>
<tr ><td><a href="kio/KArchiveDirectory.html">KArchiveDirectory</A></td></tr>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd"">
<html>
<head>
<title>class KApplicationPropsPlugin</title>
<title>class TDEApplicationPropsPlugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml">
</head>
@ -12,7 +12,7 @@
<hr>
<table width="100%"><tr>
<td width ="70%">
<h1>class KApplicationPropsPlugin</h1><hr>
<h1>class TDEApplicationPropsPlugin</h1><hr>
</td>
<td width="30%" valign="top" align="right">
<table>
@ -28,15 +28,15 @@
<td width="30%" align=left>kfile</td>
</tr>
<tr><td>Class</td>
<td>KApplicationPropsPlugin</td>
<td>TDEApplicationPropsPlugin</td>
</tr>
<tr><td>Inherits</td>
<td>KPropsDlgPlugin </td>
</tr>
</table>
<h3>methods</h3><ul>
<li><b>KApplicationPropsPlugin</b> (_props)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplicationPropsPlugin instance</i></td></tr>
<li><b>TDEApplicationPropsPlugin</b> (_props)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplicationPropsPlugin instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_props</td><td>KPropertiesDialog</td><td></td></tr>
</table>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd"">
<html>
<head>
<title>class KApplicationTree</title>
<title>class TDEApplicationTree</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml">
</head>
@ -12,7 +12,7 @@
<hr>
<table width="100%"><tr>
<td width ="70%">
<h1>class KApplicationTree</h1><hr>
<h1>class TDEApplicationTree</h1><hr>
</td>
<td width="30%" valign="top" align="right">
<table>
@ -28,15 +28,15 @@
<td width="30%" align=left>kfile</td>
</tr>
<tr><td>Class</td>
<td>KApplicationTree</td>
<td>TDEApplicationTree</td>
</tr>
<tr><td>Inherits</td>
<td>KListView </td>
</tr>
</table>
<h3>methods</h3><ul>
<li><b>KApplicationTree</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplicationTree instance</i></td></tr>
<li><b>TDEApplicationTree</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplicationTree instance</i></td></tr>
<tr><td>In versions <i>less than</i> KDE 3.1.0 only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>a0</td><td>TQWidget</td><td></td></tr>

@ -26,8 +26,8 @@
<td valign="top"><table border="0">
<tr bgcolor="#fff0ff"><th>KAppTreeListItem - KFileFilterCombo</th></tr>
<tr ><td><a href="KAppTreeListItem.html">KAppTreeListItem</a></td></tr>
<tr ><td><a href="KApplicationPropsPlugin.html">KApplicationPropsPlugin</a></td></tr>
<tr ><td><a href="KApplicationTree.html">KApplicationTree</a></td></tr>
<tr ><td><a href="TDEApplicationPropsPlugin.html">TDEApplicationPropsPlugin</a></td></tr>
<tr ><td><a href="TDEApplicationTree.html">TDEApplicationTree</a></td></tr>
<tr ><td><a href="KBindingPropsPlugin.html">KBindingPropsPlugin</a></td></tr>
<tr ><td><a href="KCombiView.html">KCombiView</a></td></tr>
<tr ><td><a href="KCustomMenuEditor.html">KCustomMenuEditor</a></td></tr>

@ -3,7 +3,7 @@
"http://www.w3.org/TR/html4/loose.dtd"">
<html>
<head>
<title>class KApplication</title>
<title>class TDEApplication</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml">
</head>
@ -12,7 +12,7 @@
<hr>
<table width="100%"><tr>
<td width ="70%">
<h1>class KApplication</h1><hr>
<h1>class TDEApplication</h1><hr>
</td>
<td width="30%" valign="top" align="right">
<table>
@ -28,7 +28,7 @@
<td width="30%" align=left>tdecore</td>
</tr>
<tr><td>Class</td>
<td>KApplication</td>
<td>TDEApplication</td>
</tr>
<tr><td>Inherits</td>
<td>TQApplication, KInstance </td>
@ -44,21 +44,21 @@
}<li><b>ShutdownType</b> = {ShutdownTypeDefault, ShutdownTypeNone, ShutdownTypeReboot, ShutdownTypeHalt
}</ul>
<h3>methods</h3><ul>
<li><b>KApplication</b> (allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr>
<li><b>TDEApplication</b> (allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>allowStyles</td><td>bool</td><td>1</td></tr>
<tr><td>GUIenabled</td><td>bool</td><td>1</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, visual = 0, colormap = 0, allowStyles = 1)
<li><b>TDEApplication</b> (display, visual = 0, colormap = 0, allowStyles = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, rAppName, allowStyles = 1, GUIenabled = 1)
<li><b>TDEApplication</b> (display, rAppName, allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (argv, rAppName, allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr>
<li><b>TDEApplication</b> (argv, rAppName, allowStyles = 1, GUIenabled = 1)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>argv</td><td>a Python list of strings</td><td></td></tr>
<tr><td>rAppName</td><td>Python string</td><td></td></tr>
@ -66,21 +66,21 @@
<tr><td>GUIenabled</td><td>bool</td><td>1</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (allowStyles, GUIenabled, _instance)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr>
<li><b>TDEApplication</b> (allowStyles, GUIenabled, _instance)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>allowStyles</td><td>bool</td><td></td></tr>
<tr><td>GUIenabled</td><td>bool</td><td></td></tr>
<tr><td>_instance</td><td>KInstance</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (display, visual, colormap, allowStyles, _instance)
<li><b>TDEApplication</b> (display, visual, colormap, allowStyles, _instance)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KApplication</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KApplication instance</i></td></tr>
<li><b>TDEApplication</b> (a0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a TDEApplication instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>a0</td><td>KApplication</td><td></td></tr>
<tr><td>a0</td><td>TDEApplication</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>addCmdLineOptions</b> ()
@ -364,7 +364,7 @@
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>kApplication</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KApplication)</i></td></tr>
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(TDEApplication)</i></td></tr>
<tr><td><i>static</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>tdeinitExec</b> (name, args, startup_id)
@ -499,9 +499,9 @@
<li><b>requestShutDown</b> (confirm = ShutdownConfirmDefault, sdtype = ShutdownTypeDefault, sdmode = ShutdownModeDefault)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>confirm</td><td>KApplication.ShutdownConfirm</td><td>ShutdownConfirmDefault</td></tr>
<tr><td>sdtype</td><td>KApplication.ShutdownType</td><td>ShutdownTypeDefault</td></tr>
<tr><td>sdmode</td><td>KApplication.ShutdownMode</td><td>ShutdownModeDefault</td></tr>
<tr><td>confirm</td><td>TDEApplication.ShutdownConfirm</td><td>ShutdownConfirmDefault</td></tr>
<tr><td>sdtype</td><td>TDEApplication.ShutdownType</td><td>ShutdownTypeDefault</td></tr>
<tr><td>sdmode</td><td>TDEApplication.ShutdownMode</td><td>ShutdownModeDefault</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>saveState</b> (sm)

@ -31,7 +31,7 @@
<td>KUniqueApplication</td>
</tr>
<tr><td>Inherits</td>
<td>KApplication, DCOPObject </td>
<td>TDEApplication, DCOPObject </td>
</tr>
</table>
<h3>methods</h3><ul>

@ -34,7 +34,7 @@
<tr ><td><a href="KAccelActions.html">KAccelActions</a></td></tr>
<tr ><td><a href="KAccelBase.html"><i>KAccelBase</i></a></td></tr>
<tr ><td><a href="KAccelShortcutList.html">KAccelShortcutList</a></td></tr>
<tr ><td><a href="KApplication.html">KApplication</a></td></tr>
<tr ><td><a href="TDEApplication.html">TDEApplication</a></td></tr>
<tr ><td><a href="KAsyncIO.html"><i>KAsyncIO</i></a></td></tr>
<tr ><td><a href="KAudioPlayer.html">KAudioPlayer</a></td></tr>
<tr ><td><a href="KBufferedIO.html"><i>KBufferedIO</i></a></td></tr>

@ -92,7 +92,7 @@ object names have this property).
import dcopext
# ! other imports not shown !
app = KApplication ()
app = TDEApplication ()
dcop = app.dcopClient ()
d = dcopext.DCOPApp ("kicker", dcop)
@ -101,7 +101,7 @@ ok, panelPos = d.Panel.panelPosition ()
</PRE></TD></TR></TABLE>
<p>
That's all there's to it in this case. We import dcopext, which contains the client extension
classes; from the KApplication instance, we "borrow" the DCOPClient instance (dcop); we create a
classes; from the TDEApplication instance, we "borrow" the DCOPClient instance (dcop); we create a
DCOPApp instance, passing it the name of the app ("kicker") and the DCOPClient instance; we
call kicker's Panel object's panelPosition method (d.Panel.panelPosition); lastly, the integer
value is returned to our application (panelPos) as the second item in a tuple - the first element
@ -146,7 +146,7 @@ full id (app name + pid - eg konqueror-14409) when constructing DCOPApp or DCOPO
</p>
<p>
If you instantiate the application you want to communicate with from your own application (that
will be making the DCOP calls), methods like KApplication.startServiceByDesktopName will
will be making the DCOP calls), methods like TDEApplication.startServiceByDesktopName will
let you start the app and also return both the PID of the started app and the complete
identifier string needed to initiate DCOP communications. The identifier's name portion may or
may not be the same as the name of the application (see the example_dcopexport.py example program,

@ -34,7 +34,7 @@ copyright holder.
# which was written by Torben Weis and Julian Rockey
import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from dcopexport import DCOPExObj
from qt import TQString, TQStringList
@ -113,7 +113,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
dcop = app.dcopClient ()
appid = dcop.registerAs('petshop')
print "DCOP Application: %s starting" % appid

@ -30,7 +30,7 @@ copyright holder.
import sys, time
import dcop
import dcopext
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from qt import TQString, TQCString
@ -65,7 +65,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
dcop = app.dcopClient ()
#getAnyApplication (dcop, "konqueror")
@ -118,7 +118,7 @@ print "--------------------------"
print
print
print "Start a kwrite instance"
errcode, error, dcopService, pid = KApplication.startServiceByDesktopName ("kwrite", "")
errcode, error, dcopService, pid = TDEApplication.startServiceByDesktopName ("kwrite", "")
dcopService = "kwrite-" + str (pid)
print "errcode: %i error: %s dcopService: %s pid: %i" % (errcode, error, dcopService, pid)
print "--------------------------"

@ -31,7 +31,7 @@ urls = ["http://slashdot.org", "http://www.kde.org", "http://www.riverbankcomput
import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData, KURL
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, KURL
from tdeui import KMainWindow, KEdit
class MainWin (KMainWindow):
@ -92,7 +92,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
KActionSeparator, KActionMenu, KWindowListMenu
@ -285,7 +285,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -41,7 +41,7 @@ import sys
from qt import TQWidget, TQButtonGroup, TQt, TQLabel, TQListView, TQListViewItem
from tdecore import KApplication, KCmdLineArgs, KAboutData, KURL
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, KURL
from tdeui import KMainWindow, KTabCtl, KListBox
from kio import KMimeType, KService, KServiceGroup, KServiceType, KTrader, KServiceTypeProfile, KServiceGroup
@ -263,7 +263,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ lifted from the KDE classref.
# If you import more classes, don't forget to add them here (some of these
# are extras/not used)
from tdecore import KCmdLineArgs, KURL, KApplication, i18n, KAboutData, BarIcon, KLibLoader
from tdecore import KCmdLineArgs, KURL, TDEApplication, i18n, KAboutData, BarIcon, KLibLoader
from tdeui import KMainWindow, KMessageBox, KAction, KStdAction, KKeyDialog, KEditToolbar
@ -192,10 +192,10 @@ aboutData = KAboutData ("pyKHTMLPart", "pyHTMLPart",\
aboutData.addAuthor ("Jim Bublitz", "Example for PyKDE", "jbublitz@nwinternet.com")
# This MUST go here (before KApplication () is called)
# This MUST go here (before TDEApplication () is called)
KCmdLineArgs.init (sys.argv, aboutData)
app = KApplication ()
app = TDEApplication ()
if (app.isRestored()):
RESTORE(KLess)

@ -3,7 +3,7 @@
from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL
from tdeui import KWindowInfo, KPushButton, KTextEdit
from tdecore import i18n, KApplication
from tdecore import i18n, TDEApplication
iconName = 'misc'
labelText = 'KWindowInfo'
@ -25,7 +25,7 @@ class MainFrame(TQFrame):
def showWindowInfo(self):
main = KApplication.kApplication()
main = TDEApplication.kApplication()
print main
print main.mainWidget()

@ -19,7 +19,7 @@ tdecore,KAccelAction,,,
tdecore,KAccelActions,,,
tdecore,KAccelBase,,,
tdecore,KAccelShortcutList,,,
tdecore,KApplication,,,
tdecore,TDEApplication,,,
tdecore,KAsyncIO,,,
tdecore,KAudioPlayer,,,
tdecore,KBufferedIO,,,
@ -342,7 +342,7 @@ tdeui,KXMLGUIFactory,,,
tdeui,KXYSelector,,,
tdeui,QXEmbed,,,
tdeui,testKActionList,,,
kfile,KApplicationPropsPlugin,,,
kfile,TDEApplicationPropsPlugin,,,
kfile,KBindingPropsPlugin,,,
kfile,KCombiView,,,
kfile,KCustomMenuEditor,,,

@ -3,7 +3,7 @@
"""
import sys
from tdecore import KApplication, KCmdLineArgs
from tdecore import TDEApplication, KCmdLineArgs
from tdeui import KMainWindow
from qt import TQVBoxLayout
@ -52,7 +52,7 @@ if __name__ == '__main__':
pathitem = args.arg(0)
widget = importItem(pathitem)
app = KApplication()
app = TDEApplication()
mainWindow = SamplerRunnerWindow(widget)
mainWindow.show()
app.exec_loop()

@ -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, KApplication, KCmdLineArgs, KGlobal
from tdecore import i18n, KAboutData, TDEApplication, KCmdLineArgs, KGlobal
from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon
from tdeui import KComboBox, KListView, KListViewItem, KTabWidget, KTextEdit
@ -410,7 +410,7 @@ class SamplerMainWindow(KMainWindow):
if __name__ == '__main__':
aboutdata = about.about()
KCmdLineArgs.init(sys.argv, aboutdata)
app = KApplication()
app = TDEApplication()
splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
splash = KSplashScreen(splashpix)

@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQLabel
from tdecore import KApplication, KIcon, KIconLoader
from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray
class MainWin (KMainWindow):
@ -40,7 +40,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
icons = KIconLoader ()

@ -29,7 +29,7 @@ import os
import sys
from qt import SIGNAL, TQVBoxLayout, TQLabel
from tdecore import i18n, KAboutData, KApplication, KGlobal, KIcon, KCmdLineArgs
from tdecore import i18n, KAboutData, TDEApplication, KGlobal, KIcon, KCmdLineArgs
from tdeui import KDockWidget, KListBox, KStdAction
try:
@ -197,7 +197,7 @@ if __name__ == '__main__':
about.addAuthor(author, 'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com')
KCmdLineArgs.init(sys.argv, about)
app = KApplication()
app = TDEApplication()
mainWindow = KmdiExample()
mainWindow.show()
app.exec_loop()

@ -2,7 +2,7 @@ import os
from qt import TQLabel
from tdecore import KApplication
from tdecore import TDEApplication
class PageLaunch:
def __init__ (self, parent):
@ -17,7 +17,7 @@ class PageLaunch:
self.page.show ()
KApplication.kApplication ().processEvents ()
TDEApplication.kApplication ().processEvents ()
class PageNotImpl:

@ -3,7 +3,7 @@ import time, sys
from qt import TQLabel, TQFrame, TQColor, TQPushButton, SIGNAL, TQButtonGroup, TQRadioButton, TQt, TQString, TQChar,\
TQWidget, TQTimer
from tdecore import KApplication
from tdecore import TDEApplication
from tdeui import KEdit, KComboBox, KColorCombo, KEditListBox, KListBox, KLineEdit, KRestrictedLine,\
KSqueezedTextLabel, KFontChooser, KButtonBox, KColorButton, KColorCells,\
KColorPatch, KDualColorButton,\
@ -118,7 +118,7 @@ class Page1:
grp.show ()
self.page.show ()
kapp = KApplication.kApplication ()
kapp = TDEApplication.kApplication ()
kapp.processEvents ()
y = y + 195

@ -2,7 +2,7 @@ import os
from qt import TQLabel
from tdecore import KApplication
from tdecore import TDEApplication
class PageLaunch:
def __init__ (self, parent):
@ -17,7 +17,7 @@ class PageLaunch:
self.page.show ()
KApplication.kApplication ().processEvents ()
TDEApplication.kApplication ().processEvents ()
def xmlKActionCollection (parent):
parent.currentPageObj = PageLaunch (parent)

@ -6,7 +6,7 @@ import sys
from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KAboutData, TDEApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule
from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
@ -112,7 +112,7 @@ if __name__ == '__main__':
about.addAuthor(author, 'hi, mom!', authormail)
about.addAuthor ('Jim Bublitz', 'For PyKDE', 'jbublitz@nwinternet.com')
KCmdLineArgs.init(sys.argv, about)
app = KApplication()
app = TDEApplication()
mainWindow = ExampleMain()
mainWindow.show()
app.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))

@ -3,7 +3,7 @@ sys.path.append ("./uimodules")
from qt import TQSplitter, TQWidgetStack, TQWidget, TQListViewItem, SIGNAL, TQCString , TQScrollView, TQRect, TQt
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow, KListView
from uidialogs import *
@ -220,7 +220,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------
appName = "UISampler"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys, os
from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
KActionSeparator, KActionMenu, KWindowListMenu, KXMLGUIClient, KActionCollection
@ -285,7 +285,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -76,7 +76,7 @@ allow transparent Python calls to DCOP methods. For example:
d = DCOPApp ("kicker", dcop)
(where "kicker" is the complete name of an application and 'dcop' is
the dcopClient instance owned by the KApplication creating the DCOPApp
the dcopClient instance owned by the TDEApplication creating the DCOPApp
instance) creates a DCOPApp instance. All of the classes in this
file "borrow" a DCOPClient instance from the calling application.

@ -327,7 +327,7 @@ def appQuit (filelist):
tmp.write (buff [i] + "\nfrom qt import TQCloseEvent")
i = i + 1
while (i < nLines) and (string.find (buff [i], "class KApplication") < 0):
while (i < nLines) and (string.find (buff [i], "class TDEApplication") < 0):
tmp.write (buff [i])
i = i + 1
@ -343,7 +343,7 @@ def appQuit (filelist):
tmp.write (\
"""\tdef quit (self):
\t\tk = KApplication.kApplication ()
\t\tk = TDEApplication.kApplication ()
\t\te = TQCloseEvent ()
\t\tfor w in k.topLevelWidgets ():

@ -133,10 +133,10 @@ private:
// must be sorted by name.
static sipStringTypeClassMap map[] = {
{sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin},
{sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin},
{sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
{sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
#if TDE_VERSION < 310
// {sipName_KApplicationTree, &sipClass_KApplicationTree},
// {sipName_TDEApplicationTree, &sipClass_TDEApplicationTree},
#endif
{sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},
{sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},

@ -116,7 +116,7 @@ protected:
%If ( - KDE_3_1_0 )
class KApplicationTree : KListView
class TDEApplicationTree : KListView
{
%TypeHeaderCode
#include <kopenwith.h>
@ -124,7 +124,7 @@ class KApplicationTree : KListView
public:
KApplicationTree (TQWidget* /TransferThis/);
TDEApplicationTree (TQWidget* /TransferThis/);
void addDesktopGroup (TQString, KAppTreeListItem* = 0);
KAppTreeListItem* it;
bool isDirSel ();
@ -140,7 +140,7 @@ signals:
void selected (const TQString&, const TQString&);
void highlighted (const TQString&, const TQString&);
}; // class KApplicationTree
}; // class TDEApplicationTree
%End

@ -284,7 +284,7 @@ public slots:
}; // class KExecPropsPlugin
class KApplicationPropsPlugin : KPropsDlgPlugin
class TDEApplicationPropsPlugin : KPropsDlgPlugin
{
%TypeHeaderCode
#include <kpropertiesdialog.h>
@ -292,7 +292,7 @@ class KApplicationPropsPlugin : KPropsDlgPlugin
public:
KApplicationPropsPlugin (KPropertiesDialog*);
TDEApplicationPropsPlugin (KPropertiesDialog*);
virtual void applyChanges ();
static bool supports (KFileItemList);
@ -300,5 +300,5 @@ public slots:
void slotDelExtension ();
void slotAddExtension ();
}; // class KApplicationPropsPlugin
}; // class TDEApplicationPropsPlugin

@ -158,7 +158,7 @@ public:
}; // class KURLPropsPlugin
class KApplicationPropsPlugin : KPropsDlgPlugin
class TDEApplicationPropsPlugin : KPropsDlgPlugin
{
%TypeHeaderCode
#include <kpropsdlg.h>
@ -166,7 +166,7 @@ class KApplicationPropsPlugin : KPropsDlgPlugin
public:
KApplicationPropsPlugin (KPropertiesDialog*);
TDEApplicationPropsPlugin (KPropertiesDialog*);
virtual void applyChanges ();
static bool supports (KFileItemList);
@ -174,7 +174,7 @@ public slots:
void slotDelExtension ();
void slotAddExtension ();
}; // class KApplicationPropsPlugin
}; // class TDEApplicationPropsPlugin
class KBindingPropsPlugin : KPropsDlgPlugin

@ -118,7 +118,7 @@ public:
static sipStringTypeClassMap map[] = {
{sipName_KAccel, &sipClass_KAccel},
{sipName_KApplication, &sipClass_KApplication},
{sipName_TDEApplication, &sipClass_TDEApplication},
{sipName_KAsyncIO, &sipClass_KAsyncIO},
{sipName_KAudioPlayer, &sipClass_KAudioPlayer},
{sipName_KBufferedIO, &sipClass_KBufferedIO},

@ -24,7 +24,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class KApplication : TQApplication, KInstance
class TDEApplication : TQApplication, KInstance
{
%TypeHeaderCode
#include <kapplication.h>
@ -43,14 +43,14 @@ public:
CaptionNoApp
};
KApplication (bool = 1, bool = 1);
TDEApplication (bool = 1, bool = 1);
%If ( KDE_3_3_0 - )
//ig KApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1);
//ig TDEApplication (Display*, TQt::HANDLE = 0, TQt::HANDLE = 0, bool = 1);
%End
//ig KApplication (Display*, int&, char**, const TQCString&, bool = 1, bool = 1);
KApplication (SIP_PYLIST, TQCString&, bool = 1, bool = 1) [(int&, char**, const TQCString&, bool = 1, bool = 1)];
//ig TDEApplication (Display*, int&, char**, const TQCString&, bool = 1, bool = 1);
TDEApplication (SIP_PYLIST, TQCString&, bool = 1, bool = 1) [(int&, char**, const TQCString&, bool = 1, bool = 1)];
%MethodCode
//takes argv | (a Python list of strings) | rAppName | (Python string) | allowStyles | (bool = 1) | GUIenabled | (bool = 1)
@ -71,10 +71,10 @@ public:
// The following two lines simulate the actual ctor call
// which is commented out below
KCmdLineArgs::init (nargc, argv, (char *)"unknown", (char *)"KDE Application", NULL, false);
sipCpp = new sipKApplication((bool)a1,(bool)a2);
sipCpp = new sipTDEApplication((bool)a1,(bool)a2);
// This method calls KCmdLineArgs::initIgnore, which is a private method
// sipCpp = new sipKApplication (nargc,argv, qc, a1, a2);
// sipCpp = new sipTDEApplication (nargc,argv, qc, a1, a2);
Py_END_ALLOW_THREADS
@ -84,7 +84,7 @@ public:
%End
static void addCmdLineOptions ();
static KApplication* kApplication ();
static TDEApplication* kApplication ();
KConfig* sessionConfig ();
bool isRestored () const;
void disableSessionManagement ();
@ -120,7 +120,7 @@ public:
ShutdownModeInteractive
};
bool requestShutDown (KApplication::ShutdownConfirm = ShutdownConfirmDefault , KApplication::ShutdownType = ShutdownTypeDefault , KApplication::ShutdownMode = ShutdownModeDefault );
bool requestShutDown (TDEApplication::ShutdownConfirm = ShutdownConfirmDefault , TDEApplication::ShutdownType = ShutdownTypeDefault , TDEApplication::ShutdownMode = ShutdownModeDefault );
void propagateSessionManager ();
void commitData (TQSessionManager&);
void saveState (TQSessionManager&);
@ -291,10 +291,10 @@ public slots:
void deref ();
protected:
KApplication (bool, bool, KInstance*);
TDEApplication (bool, bool, KInstance*);
%If ( KDE_3_3_0 - )
//ig KApplication (Display*, TQt::HANDLE, TQt::HANDLE, bool, KInstance*);
//ig TDEApplication (Display*, TQt::HANDLE, TQt::HANDLE, bool, KInstance*);
%End
//ig bool x11EventFilter (XEvent*);
@ -357,7 +357,7 @@ signals:
void shutDown ();
private:
KApplication (const KApplication&);
TDEApplication (const TDEApplication&);
protected:
//igx virtual void virtual_hook (int, void*);
@ -369,7 +369,7 @@ public:
%End
}; // class KApplication
}; // class TDEApplication
class KSessionManaged

@ -24,7 +24,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class KUniqueApplication : KApplication, DCOPObject
class KUniqueApplication : TDEApplication, DCOPObject
{
%TypeHeaderCode
#include <kuniqueapp.h>

@ -35,7 +35,7 @@ copyright holder.
import sys
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow
"""
@ -76,9 +76,9 @@ aboutData.addAuthor ("author2", "they did something else", "another@email.addres
# Pass the command line arguments and aboutData to
# KCmdLineArgs - this is where KDE will look for
# this information. The KApplication constructor
# this information. The TDEApplication constructor
# used below *requires* the args are processed
# *before* KApplication is instantiated. There
# *before* TDEApplication is instantiated. There
# is an alternate constructor that takes sys.argv
# as an argument (see minimal.py)
@ -96,10 +96,10 @@ KCmdLineArgs.init (sys.argv, aboutData)
# of tuples
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
# instantiate KApplication - no other TQObject
# instantiate TDEApplication - no other TQObject
# or TQWidget based classes can be instantiated
# until there is a KApplication instance
app = KApplication ()
# until there is a TDEApplication instance
app = TDEApplication ()
# instantiate the subclass of KMainWindow
mainWindow = MainWin (None, "main window")
@ -107,7 +107,7 @@ mainWindow = MainWin (None, "main window")
# create the display
mainWindow.show()
# run KApplication's event loop until the
# run TDEApplication's event loop until the
# program exits
app.exec_loop()

@ -45,7 +45,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox
TOOLBAR_NEW = 1
@ -264,7 +264,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction
STATUSBAR_LEFT = 1
@ -238,7 +238,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection
STATUSBAR_LEFT = 1
@ -202,7 +202,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -34,7 +34,7 @@ copyright holder.
import sys
from tdecore import KApplication
from tdecore import TDEApplication
from tdeui import KMainWindow
@ -56,11 +56,11 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------
# instantiate KApplication - no other TQObject
# instantiate TDEApplication - no other TQObject
# or TQWidget based classes can be instantiated
# until there is a KApplication instance
# until there is a TDEApplication instance
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
# instantiate the subclass of KMainWindow
mainWindow = MainWin (None, "main window")
@ -68,7 +68,7 @@ mainWindow = MainWin (None, "main window")
# create the display
mainWindow.show()
# run KApplication's event loop until the
# run TDEApplication's event loop until the
# program exits
app.exec_loop()

@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KSystemTray
"""
@ -38,7 +38,7 @@ Typically an application's "main window" will be a KMainWindow or
a subclass of KMainWindow (KMainWindow provides simple mechanisms
for constructing mens, toolbars, statusbars, etc). The problem with
using KMainWindow in a System Tray application is that when
KMainWindow is closed, it also shuts down KApplication and the
KMainWindow is closed, it also shuts down TDEApplication and the
program terminates.
One way around that (not necessarily the best way - see systray1.py)
@ -56,11 +56,11 @@ class MainWin (TQWidget):
# when the user right clicks the icon in the system tray and
# selects "Quit" from the popup menu
def slotQuitSelected ():
KApplication.kApplication ().quit ()
TDEApplication.kApplication ().quit ()
# The usual stuff
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
# System tray apps need an icon

@ -36,7 +36,7 @@ copyright holder.
import sys
from qt import TQLabel, TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray
# This template uses KMainWindow as the main window widget
@ -70,15 +70,15 @@ class MainWin (KMainWindow):
# system tray icon's menu
def slotQuitSelected (self):
self.exitFlag = True
KApplication.kApplication ().quit ()
TDEApplication.kApplication ().quit ()
#-------------------- main ------------------------------------------------
# The usual stuff - you can also use the KAboutData/KCmdLineArgs version
# for program startup used in other templates - the KApplication constructor
# for program startup used in other templates - the TDEApplication constructor
# used here may be obsoleted eventually
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
mainWindow.show()

@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData
from tdecore import TDEApplication, KCmdLineArgs, KAboutData
from tdeui import KMainWindow
class MainWin (KMainWindow):
@ -51,7 +51,7 @@ aboutData.addAuthor ("author2", "they did something else", "another@email.addres
KCmdLineArgs.init (sys.argv, aboutData)
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.connect (app, SIGNAL ("lastWindowClosed ()"), app.quit)

@ -44,7 +44,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox
TOOLBAR_NEW = 1
@ -188,7 +188,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction
STATUSBAR_LEFT = 1
@ -194,7 +194,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -43,7 +43,7 @@ import sys
from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection
STATUSBAR_LEFT = 1
@ -155,7 +155,7 @@ KCmdLineArgs.init (sys.argv, aboutData)
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
app = KApplication ()
app = TDEApplication ()
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -29,7 +29,7 @@ copyright holder.
import sys
from tdecore import KApplication
from tdecore import TDEApplication
from tdeui import KMainWindow
class MainWin (KMainWindow):
@ -40,7 +40,7 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
mainWindow.show()
app.exec_loop()

@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KSystemTray
@ -41,10 +41,10 @@ class MainWin (TQWidget):
#-------------------- main ------------------------------------------------
def slotQuitSelected ():
KApplication.kApplication ().quit ()
TDEApplication.kApplication ().quit ()
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
icons = KIconLoader ()

@ -30,7 +30,7 @@ copyright holder.
import sys
from qt import TQLabel, TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdecore import TDEApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray
class MainWin (KMainWindow):
@ -52,13 +52,13 @@ class MainWin (KMainWindow):
def slotQuitSelected (self):
self.exitFlag = True
KApplication.kApplication ().quit ()
TDEApplication.kApplication ().quit ()
#-------------------- main ------------------------------------------------
appName = "template"
app = KApplication (sys.argv, appName)
app = TDEApplication (sys.argv, appName)
mainWindow = MainWin (None, "main window")
mainWindow.show()

Loading…
Cancel
Save