summaryrefslogtreecommitdiffstats
path: root/examples3/richtext.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/richtext.py')
-rwxr-xr-xexamples3/richtext.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples3/richtext.py b/examples3/richtext.py
index 592213d..f7eb73e 100755
--- a/examples3/richtext.py
+++ b/examples3/richtext.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -70,16 +70,16 @@ sayings = [
0
]
-class MyRichText( QVBox ):
+class MyRichText( TQVBox ):
def __init__( self, parent = None, name = None ):
- QVBox.__init__( self, parent, name )
+ TQVBox.__init__( self, parent, name )
self.setMargin( 5 )
- self.view = QTextView( self )
+ self.view = TQTextView( self )
#self.view.setText( "This is a <b>Test</b> with <i>italic</i> <u>stuff</u>" )
- paper = QBrush()
- paper.setPixmap( QPixmap( "marble.png" ) )
+ paper = TQBrush()
+ paper.setPixmap( TQPixmap( "marble.png" ) )
if paper.pixmap() != 0 :
self.view.setPaper( paper )
else :
@@ -88,12 +88,12 @@ class MyRichText( QVBox ):
self.view.setText( sayings[0] )
self.view.setMinimumSize( 450, 250 )
- buttons = QHBox( self )
+ buttons = TQHBox( self )
buttons.setMargin( 5 )
- self.bClose = QPushButton( "&Close", buttons )
- self.bPrev = QPushButton( "<< &Prev", buttons )
- self.bNext = QPushButton( "&Next >>", buttons )
+ self.bClose = TQPushButton( "&Close", buttons )
+ self.bPrev = TQPushButton( "<< &Prev", buttons )
+ self.bNext = TQPushButton( "&Next >>", buttons )
self.bPrev.setEnabled( False )
@@ -122,11 +122,11 @@ class MyRichText( QVBox ):
self.bPrev.setEnabled( True )
def main( args ):
- a = QApplication(sys.argv) # application object
+ a = TQApplication(sys.argv) # application object
richtext = MyRichText()
richtext.resize( 450, 350 );
- richtext.setCaption( "Qt Example - Richtext" )
+ richtext.setCaption( "TQt Example - Richtext" )
a.setMainWidget( richtext )
richtext.show()