From 21c6548234338921fe97ec67148e9fa753c694b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 23 Jan 2023 15:51:24 +0100 Subject: Update after renaming qt => tqt in PyTQt module. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- lib/kformula/scripts/bycodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/kformula/scripts') 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] ) -- cgit v1.2.1