diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-08 11:55:55 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-23 00:52:28 +0100 |
| commit | cddd660ca43dbe5d4ce0f7ed6bacee48ea46da93 (patch) | |
| tree | 277dba53239d6367cf2946458757600caf6e82a5 /examples/pyTDEHTMLPart.py | |
| parent | 79ced6fbbdda1158aef437760ee0455fb9a9016d (diff) | |
| download | pytde-cddd660ca43dbe5d4ce0f7ed6bacee48ea46da93.tar.gz pytde-cddd660ca43dbe5d4ce0f7ed6bacee48ea46da93.zip | |
Update after renaming qt => tqt in PyTQt module.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'examples/pyTDEHTMLPart.py')
| -rw-r--r-- | examples/pyTDEHTMLPart.py | 8 |
1 files changed, 4 insertions, 4 deletions
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("<qt>Save changes to Document?<br/>(Does not make sense, we know, but it is just a programming example :-)</qt>")) 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 |
