/usr/lib/python2.7/dist-packages/hachoir_wx/hex_view/compat_all.py is in python-hachoir-wx 0.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # -*- coding: utf-8 -*-
MAX_LINE_TEST = 10 * 1024
def get_width_chars(view):
if not view.GetLineLength(0):
padding = ' ' * MAX_LINE_TEST
view.SetValue(padding)
return view.GetLineLength(0) // 3
def get_height_chars(view):
return view.GetClientSize()[1] // view.GetCharHeight()
|