def __init__(self):
wx.ScrolledWindow.__init__(self)
self.Bind(wx.EVT_PAINT, self.OnPaint)
self.Bind(wx.EVT_SIZE, self.OnResized)
self.Bind(wx.EVT_SCROLLWIN, self.OnScrolled)
# OnCreate required to avoid crashing wx in xrc creation
self.Bind(wx.EVT_WINDOW_CREATE, self.OnCreate)
# Disable physical scrolling - refresh entire display on each scroll event.
self.EnableScrolling(False, False)
# This line enables double-buffered painting for reduced flicker.
self.SetBackgroundStyle(wx.BG_STYLE_PAINT)
# The previous scroll action (for maintaining viewport during resizes).
self.prev_scroll = None
self.layout = HexViewLayout()
评论列表
文章目录