diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-23 15:51:24 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-23 15:51:24 +0100 |
commit | 21c6548234338921fe97ec67148e9fa753c694b4 (patch) | |
tree | 3432057bff20868f762ffe12fe42924be193dce4 /lib/kformula/scripts/bycodes.py | |
parent | 86480e58eafc1fa3486e03155ed34e02b4595a24 (diff) | |
download | koffice-21c6548234338921fe97ec67148e9fa753c694b4.tar.gz koffice-21c6548234338921fe97ec67148e9fa753c694b4.zip |
Update after renaming qt => tqt in PyTQt module.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'lib/kformula/scripts/bycodes.py')
-rwxr-xr-x | lib/kformula/scripts/bycodes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kformula/scripts/bycodes.py b/lib/kformula/scripts/bycodes.py index fdd84269..24a2954d 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] ) |