diff options
Diffstat (limited to 'app_templates/kdeapp/src/kdeapp.py')
-rwxr-xr-x | app_templates/kdeapp/src/kdeapp.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app_templates/kdeapp/src/kdeapp.py b/app_templates/kdeapp/src/kdeapp.py index 842d283..68d07af 100755 --- a/app_templates/kdeapp/src/kdeapp.py +++ b/app_templates/kdeapp/src/kdeapp.py @@ -15,7 +15,7 @@ # # ########################################################################### -from PyTQt.qt import * +from PyTQt.tqt import * from tdecore import * from tdeui import * import sys @@ -55,7 +55,7 @@ class KdeApp(TDEMainWindow): self.connect(self._view, PYSIGNAL("signalChangeCaption"), self.changeCaption) def load(self,url): - target = QString() + target = TQString() # the below code is what you should normally do. in this # example case, we want the url to our own. you probably # want to use this code instead for your app @@ -124,7 +124,7 @@ class KdeApp(TDEMainWindow): def dropEvent(self,event): # this is a very simplistic implementation of a drop event. we - # will only accept a dropped URL. the Qt dnd code can do *much* + # will only accept a dropped URL. the TQt dnd code can do *much* # much more, so please read the docs there urls = KURL.List() @@ -150,7 +150,7 @@ class KdeApp(TDEMainWindow): # button is clicked ## this brings up the generic open dialog - #KURL url = KURLRequesterDlg::getURL(QString::null, this, i18n("Open Location") ); + #KURL url = KURLRequesterDlg::getURL(TQString::null, this, i18n("Open Location") ); # standard filedialog url = KFileDialog.getOpenURL(None, One, self, i18n("Open Location")) @@ -181,14 +181,14 @@ class KdeApp(TDEMainWindow): self._printer = KPrinter() if self._printer.setup(self): - # setup the printer. with Qt, you always "print" to a - # QPainter.. whether the output medium is a pixmap, a screen, + # setup the printer. with TQt, you always "print" to a + # TQPainter.. whether the output medium is a pixmap, a screen, # or paper - p = QPainter() + p = TQPainter() p.begin(self._printer) # we let our view do the actual printing - metrics = QPaintDeviceMetrics(m_printer) + metrics = TQPaintDeviceMetrics(m_printer) self._view.print_(p, metrics.height(), metrics.width()) # and send the result to the printer |