[wxPython] Bug in wxPython spin controls.

Sorry, I'm not up on tool bars.
JR

···

----------
From: wxpython[SMTP:wxpython@srci.iwpsd.org]
Reply To: wxpython-users@wxwindows.org
Sent: Thursday, June 01, 2000 12:41 PM
To: wxpython-users@wxwindows.org
Subject: Re: [wxPython] Bug in wxPython spin controls.

Do you have a recommendation for how to make the Tool Tips appear? Do I
need to use them explicitly?

Jan Reimers wrote:
>
> EVT_SPIN responds to EVERY possible event, which seems to include all
sorts
> of other things besides UP and DOWN clicks. See alternative below.
> JR
>
> > ----------
> > From: User[SMTP:wxpython@srci.iwpsd.org]
> > Reply To: wxpython-users@wxwindows.org
> > Sent: Thursday, June 01, 2000 10:28 AM
> > To: wxpython-users@wxwindows.org
> > Subject: [wxPython] Bug in wxPython spin controls.
> >
> >
> > I seem to have a problem with a toolbar's tooltips somehow causing a
spin
> > event as if a spin control was invoked. Whenever I move the mouse
cursor
> > over the toolbar and a tooltip tries to pop up, the spin button's
event is
> > called. Additionally, the tooltip never appears.
> >
> > from wxPython.wx import *
> >
> > class MyApp(wxApp):
> > def OnInit(self):
> > frame = wxFrame(None, -1, "Toolbar bug")
> >
> > toolbar = frame.CreateToolBar(wxHORIZONTAL | wxNO_BORDER)
> > toolbar.AddSimpleTool(100, wxNullBitmap, 'Tooltip')
> > spinbutton = wxSpinButton(toolbar, 101, style =
> > wxSP_VERTICAL)
> > toolbar.AddControl(spinbutton)
> > toolbar.Realize()
> >
> #Try replacing this:
> # EVT_SPIN(self, 101, self.OnSpin)
> #with these:
> EVT_COMMAND_SCROLL_LINEUP(self,101 ,self.OnSpin)
> EVT_COMMAND_SCROLL_LINEDOWN(self,101,self.OnSpin)
>
> > frame.Show(true)
> > return true
> >
> > def OnSpin(self, event):
> > print event
> >
> > MyApp().MainLoop()
> >
> >
> >
> >
> > _______________________________________________
> > wxPython-users mailing list wxPython-users@wxwindows.org
> > http://wxwindows.org/mailman/listinfo/wxpython-users
> >
>
>
> _______________________________________________
> wxPython-users mailing list wxPython-users@wxwindows.org
> http://wxwindows.org/mailman/listinfo/wxpython-users
>
>

_______________________________________________
wxPython-users mailing list wxPython-users@wxwindows.org
http://wxwindows.org/mailman/listinfo/wxpython-users