/usr/lib/python2.7/dist-packages/hachoir_wx/field_view/field_menu_fwd.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 20 21 22 23 24 | # -*- coding: utf-8 -*-
from wx import EVT_MENU
from wx.xrc import XRCID
class field_menu_fwd_t:
def __init__(self, imp):
self.imp = imp
def on_field_view_ready(self, dispatcher, view):
assert view is not None
view.Bind(EVT_MENU, self.imp.on_addr_rel,
id=XRCID('field_menu_address_relative'))
view.Bind(EVT_MENU, self.imp.on_addr_abs,
id=XRCID('field_menu_address_absolute'))
view.Bind(EVT_MENU, self.imp.on_addr_hex,
id=XRCID('field_menu_address_base_hex'))
view.Bind(EVT_MENU, self.imp.on_addr_dec,
id=XRCID('field_menu_address_base_dec'))
view.Bind(EVT_MENU, self.imp.on_dump_to_disk,
id=XRCID('field_menu_dump_to_disk'))
view.Bind(EVT_MENU, self.imp.on_parse_substream,
id=XRCID('field_menu_parse_substream'))
|