/usr/lib/python2.7/dist-packages/hachoir_wx/frame_view/frame_view_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 | # -*- coding: utf-8 -*-
import wx
class frame_view_fwd_t:
def __init__(self, imp):
self.imp = imp
def on_frame_view_ready(self, dispatcher, view):
assert view is not None
view.Bind(wx.EVT_ACTIVATE, self.on_activated)
view.Bind(wx.EVT_SHOW, self.on_shown)
def on_activated(self, event):
if event.GetActive():
self.imp.on_activated()
def on_shown(self, event):
if event.GetShow():
self.imp.on_activated()
|