/usr/lib/python2.7/dist-packages/hachoir_wx/field_view/field_split_menu.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 14 15 16 17 18 19 | # -*- coding: utf-8 -*-
from wx import GetNumberFromUser
from hachoir_core.i18n import _
class field_split_menu_t:
def __init__(self, parent, menu):
self.parent = parent
self.menu = menu
self.Bind = self.menu.Bind # see note in field_menu.py
def ask_split(self, caption, min, max):
num = GetNumberFromUser(_('Enter split offset:'), '',
caption, min, min, max, self.parent)
if -1 == num:
return None
else:
return num
|