From eea264a099db8c376c46e1ea44dda247a6928070 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 31 Jan 2019 16:47:27 -0600 Subject: [PATCH] Added topic buffer's GUI --- src/wxUI/tabs/home.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/wxUI/tabs/home.py b/src/wxUI/tabs/home.py index 7c0d446..6e66b74 100644 --- a/src/wxUI/tabs/home.py +++ b/src/wxUI/tabs/home.py @@ -136,6 +136,17 @@ class friendsTab(homeTab): self.list.set_windows_size(0, 400) self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown) +class topicTab(homeTab): + def create_list(self): + self.lbl = wx.StaticText(self, wx.NewId(), _("Topics")) + self.list = widgetUtils.list(self, *[_("User"), _("Title"), _("Posts"), _("Last")], style=wx.LC_REPORT) + self.list.set_windows_size(0, 200) + self.list.set_windows_size(1, 64) + self.list.set_windows_size(2, 15) + self.list.set_windows_size(2, 250) + self.list.set_size() + self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown) + class empty(wx.Panel): def __init__(self, parent, name): super(empty, self).__init__(parent=parent, name=name)