Make buttons same size as window
This commit is contained in:
parent
cba2be47d5
commit
de0bdcdffe
1 changed files with 2 additions and 2 deletions
4
main.py
4
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()
|
||||
|
|
Loading…
Add table
Reference in a new issue