diff --git a/main.py b/main.py index 1d43876..c29ebaa 100644 --- a/main.py +++ b/main.py @@ -127,11 +127,11 @@ class Cast(wx.Frame): for cast in self.m_chromecasts: friendly_name = cast.cast_info.friendly_name - btn = wx.Button(self.m_panel, id=-1, label=friendly_name) + btn = wx.Button(self.m_panel, id=-1, label=friendly_name, size=(480,40)) btn.Bind(wx.EVT_BUTTON, lambda event, chromecast=cast, muri=uri: self. set_chromecast(event, chromecast, muri)) - self.m_sizer.Add(btn) + self.m_sizer.Add(btn, wx.ALIGN_CENTER_VERTICAL) self.m_panel.SetSizer(self.m_sizer) self.m_sizer.Fit(self) self.m_panel.Layout()