diff options
Diffstat (limited to 'lib/kformula')
| -rw-r--r-- | lib/kformula/prototype/engine.py | 2 | ||||
| -rwxr-xr-x | lib/kformula/prototype/main.py | 2 | ||||
| -rwxr-xr-x | lib/kformula/prototype/unicode.py | 2 | ||||
| -rwxr-xr-x | lib/kformula/scripts/bycodes.py | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/kformula/prototype/engine.py b/lib/kformula/prototype/engine.py index 4ad207f9a..a0d6ab1f7 100644 --- a/lib/kformula/prototype/engine.py +++ b/lib/kformula/prototype/engine.py @@ -18,7 +18,7 @@ Boston, MA 02110-1301, USA. """ -from PyTQt.qt import * +from PyTQt.tqt import * class BasicElement: diff --git a/lib/kformula/prototype/main.py b/lib/kformula/prototype/main.py index 953bc060b..c58553407 100755 --- a/lib/kformula/prototype/main.py +++ b/lib/kformula/prototype/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from TQt.qt import * +from TQt.tqt import * from engine import Widget diff --git a/lib/kformula/prototype/unicode.py b/lib/kformula/prototype/unicode.py index ca495d258..10e0f8483 100755 --- a/lib/kformula/prototype/unicode.py +++ b/lib/kformula/prototype/unicode.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from TQt.qt import * +from TQt.tqt import * from xml.sax import saxutils, handler, make_parser class Form1(TQWidget): diff --git a/lib/kformula/scripts/bycodes.py b/lib/kformula/scripts/bycodes.py index fdd842693..24a2954d6 100755 --- a/lib/kformula/scripts/bycodes.py +++ b/lib/kformula/scripts/bycodes.py @@ -20,7 +20,7 @@ """ import sys import string -from TQt import qt +from TQt import tqt def decode( fd, font, line ): begin = string.find( line, '"' ) @@ -39,10 +39,10 @@ def decode( fd, font, line ): char_list.append( string.atoi( second, 16 ) ) else: char_list.append( string.atoi ( str, 16 ) ) - fm = qt.TQFontMetrics( qt.TQFont( font ) ) + fm = tqt.TQFontMetrics( tqt.TQFont( font ) ) in_font = True for c in char_list: - if not fm.inFont( qt.TQChar( c ) ): + if not fm.inFont( tqt.TQChar( c ) ): in_font = False fd.write( str + ' ' + str( in_font ) + '\n') @@ -56,7 +56,7 @@ def parse( file, font ): line = fd.readline() if __name__ == '__main__': - a = qt.TQApplication( sys.argv ) + a = tqt.TQApplication( sys.argv ) if len( sys.argv ) == 2: sys.argv.append( 'Arev Sans' ) parse ( sys.argv[1], sys.argv[2] ) |
