From 1f7a47b7e79d00e6ebb1d8f8753df5daa23810a6 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 6 Jan 2022 17:26:47 +0100 Subject: [PATCH] Add spacers --- src/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 0935e47..f466670 100644 --- a/src/main.py +++ b/src/main.py @@ -85,6 +85,7 @@ class Cast(wx.Frame): def show_provider_list(self, _) -> None: self.m_sizer.Clear(delete_windows=True) self.m_sizer = wx.BoxSizer(wx.VERTICAL) + self.m_sizer.AddStretchSpacer() closebtn = wx.Button(self.m_panel, -1, label="Close", size=(WIDTH, BTN_HEIGHT)) closebtn.Bind(wx.EVT_BUTTON, lambda event: self.Destroy()) self.m_sizer.Add(closebtn) @@ -106,6 +107,7 @@ class Cast(wx.Frame): self.m_selected_provider = self.m_providers[provider_index] self.m_sizer.Clear(delete_windows=True) self.m_sizer = wx.BoxSizer(wx.VERTICAL) + self.m_sizer.AddStretchSpacer() bck_callback = lambda event: self.show_provider_list(event) self.add_back_button(bck_callback) channel_index = 0 @@ -124,6 +126,7 @@ class Cast(wx.Frame): def show_video_list(self, _, index=0) -> None: self.m_sizer.Clear(delete_windows=True) self.m_sizer = wx.BoxSizer(wx.VERTICAL) + self.m_sizer.AddStretchSpacer() channel = self.m_selected_provider.get_channel_by_index(index) if channel.wait(): with wx.BusyInfo("Please wait, working..."): @@ -172,8 +175,8 @@ class Cast(wx.Frame): self.m_sizer = wx.GridBagSizer() self.m_control = wx.media.MediaCtrl( self.m_panel, - size=(WIDTH, HEIGHT/2), - style=wx.SIMPLE_BORDER, + # size=(WIDTH, HEIGHT/2), + # style=wx.SIMPLE_BORDER, szBackend=wx.media.MEDIABACKEND_GSTREAMER, ) play_button = wx.Button(self.m_panel, -1, "Play")