diff -r c02818d7e29f -r 7e61baa047f0 controls/LogViewer.py --- a/controls/LogViewer.py Mon Aug 14 22:30:41 2017 +0300 +++ b/controls/LogViewer.py Mon Aug 14 23:27:15 2017 +0300 @@ -37,6 +37,7 @@ THUMB_SIZE_RATIO = 1. / 8. + def ArrowPoints(direction, width, height, xoffset, yoffset): if direction == wx.TOP: return [wx.Point(xoffset + 1, yoffset + height - 2), @@ -47,6 +48,7 @@ wx.Point(xoffset + width / 2, yoffset - 2), wx.Point(xoffset + width - 1, yoffset - height + 1)] + class LogScrollBar(wx.Panel): def __init__(self, parent, size): @@ -179,6 +181,7 @@ BUTTON_SIZE = (70, 15) + class LogButton(): def __init__(self, label, callback): @@ -223,6 +226,7 @@ DATE_INFO_SIZE = 10 MESSAGE_INFO_SIZE = 18 + class LogMessage: def __init__(self, tv_sec, tv_nsec, level, level_bitmap, msg): @@ -281,6 +285,7 @@ (_("1m"), MINUTE), (_("1s"), SECOND)] + class LogViewer(DebugViewer, wx.Panel): def __init__(self, parent, window):