From cddd660ca43dbe5d4ce0f7ed6bacee48ea46da93 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sun, 8 Jan 2023 11:55:55 +0100 Subject: Update after renaming qt => tqt in PyTQt module. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- examples/pyTDEHTMLPart.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/pyTDEHTMLPart.py') diff --git a/examples/pyTDEHTMLPart.py b/examples/pyTDEHTMLPart.py index 333247d..187cad6 100644 --- a/examples/pyTDEHTMLPart.py +++ b/examples/pyTDEHTMLPart.py @@ -43,7 +43,7 @@ lifted from the TDE classref. # If you import more classes, don't forget to add them here (some of these # are extras/not used) -from PyTQt.qt import TQString, TQStringList +from PyTQt.tqt import TQString, TQStringList from tdecore import TDECmdLineArgs, KURL, TDEApplication, i18n, TDEAboutData, BarIcon, KLibLoader from tdeui import TDEMainWindow, KMessageBox, TDEAction, KStdAction, KKeyDialog, KEditToolbar from tdeio import TDETrader @@ -135,14 +135,14 @@ class pyPartsMW (KParts.MainWindow): res = KMessageBox.warningYesNoCancel(self,\ i18n("Save changes to Document?
(Does not make sense, we know, but it is just a programming example :-)
")) if res == KMessageBox.Yes: - #// save document here. If saving fails, return False - return True + #// save document here. If saving fails, return False + return True elif res == KMessageBox.No: return True else: #// cancel - return False + return False def queryExit(self): #// this slot is invoked in addition when the *last* window is going -- cgit v1.2.3