Re: [Discuss-gnuradio] trying to add a button...

2005-05-10 Thread Eric Blossom
On Tue, May 10, 2005 at 10:45:03PM +0100, mjam01 wrote: > Hi guys, > > I'm trying to add a button to the tvrx_wfm_rcv_gui.py code with the > following placed under the vbox sliders: > > > button_freq_up = wx.Button(self, panel, 'FREQ UP') > vbox.Add(button_freq_up, 0, wx.ALL | wx.EXPAND, 5) > se

Re: [Discuss-gnuradio] trying to add a button...

2005-05-10 Thread mjam01
yup, that works. thanks! :) On 5/10/05, James Cooley <[EMAIL PROTECTED]> wrote: > This sort of code worked for me: > > hbox = wx.BoxSizer (wx.HORIZONTAL) > > btn = wx.Button(self.panel, 1001, "STOP", style=wx.BU_EXACTFIT) > wx.EVT_BUTTON(self.panel, 1001, self.quit) >

Re: [Discuss-gnuradio] trying to add a button...

2005-05-10 Thread James Cooley
This sort of code worked for me: hbox = wx.BoxSizer (wx.HORIZONTAL) btn = wx.Button(self.panel, 1001, "STOP", style=wx.BU_EXACTFIT) wx.EVT_BUTTON(self.panel, 1001, self.quit) vbox.Add(btn, 0, wx.EXPAND) mjam01 wrote: Hi guys, I'm trying to add a button to the tvrx_w

[Discuss-gnuradio] trying to add a button...

2005-05-10 Thread mjam01
Hi guys, I'm trying to add a button to the tvrx_wfm_rcv_gui.py code with the following placed under the vbox sliders: button_freq_up = wx.Button(self, panel, 'FREQ UP') vbox.Add(button_freq_up, 0, wx.ALL | wx.EXPAND, 5) self.Bind(wx.EVT_BUTTON, self.set_freq_up, button_freq_up) I get this erro