Separated also tab GUI components in modules so it will be easier to mantain the codebase in the future

This commit is contained in:
2021-04-23 12:26:35 -05:00
parent 0a0e2a4dd9
commit 5978a7749d
26 changed files with 315 additions and 26 deletions

View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
import wx
from .audio import audioTab
class audioAlbumTab(audioTab):
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 buffer"))
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
self.play = wx.Button(self.postBox.GetStaticBox(), -1, _("P&lay"))
self.play_all = wx.Button(self.postBox.GetStaticBox(), -1, _("Play &All"))
self.postBox.Add(self.load, 0, wx.ALL, 5)
self.postBox.Add(self.post, 0, wx.ALL, 5)
self.postBox.Add(self.play, 0, wx.ALL, 5)
self.postBox.Add(self.play_all, 0, wx.ALL, 5)