From f8e431cc2e6e8efef89f324e302a0d01a12f64c2 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 6 Feb 2019 11:34:54 -0600 Subject: [PATCH] Fixes in document buffers --- src/wxUI/tabs/home.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wxUI/tabs/home.py b/src/wxUI/tabs/home.py index 0b2d64c..b087e82 100644 --- a/src/wxUI/tabs/home.py +++ b/src/wxUI/tabs/home.py @@ -147,7 +147,7 @@ class topicTab(homeTab): self.list.set_size() self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown) -class documentTab(homeTab): +class documentCommunityTab(homeTab): def create_list(self): self.lbl = wx.StaticText(self, wx.NewId(), _("Documents")) self.list = widgetUtils.list(self, *[_("User"), _("Title"), _("Type"), _("Size"), _("Date")], style=wx.LC_REPORT) @@ -159,6 +159,14 @@ class documentTab(homeTab): self.list.set_size() self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown) +class documentTab(documentCommunityTab): + def create_post_buttons(self): + self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions")) + self.load = wx.Button(self.postBox.GetStaticBox(), wx.NewId(), _("Load album")) + self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post")) + self.postBox.Add(self.load, 0, wx.ALL, 5) + self.postBox.Add(self.post, 0, wx.ALL, 5) + class empty(wx.Panel): def __init__(self, parent, name): super(empty, self).__init__(parent=parent, name=name)