1 ##===-- eventwin.py ------------------------------------------*- Python -*-===##
3 ## The LLVM Compiler Infrastructure
5 ## This file is distributed under the University of Illinois Open Source
6 ## License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
13 class EventWin(cui.TitledWin):
14 def __init__(self, x, y, w, h):
15 super(EventWin, self).__init__(x, y, w, h, 'LLDB Event Log')
17 super(EventWin, self).draw()
19 def handleEvent(self, event):
20 if isinstance(event, lldb.SBEvent):
22 h = self.win.getmaxyx()[0]
23 self.win.addstr(h-1, 0, lldbutil.get_description(event))