Make buttons same size as window

main
Micke Nordin 3 years ago
parent cba2be47d5
commit de0bdcdffe
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -127,11 +127,11 @@ class Cast(wx.Frame):
for cast in self.m_chromecasts: for cast in self.m_chromecasts:
friendly_name = cast.cast_info.friendly_name 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, btn.Bind(wx.EVT_BUTTON,
lambda event, chromecast=cast, muri=uri: self. lambda event, chromecast=cast, muri=uri: self.
set_chromecast(event, chromecast, muri)) 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_panel.SetSizer(self.m_sizer)
self.m_sizer.Fit(self) self.m_sizer.Fit(self)
self.m_panel.Layout() self.m_panel.Layout()

Loading…
Cancel
Save