associating a slider with a label

Nathan smith <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hi folks,


I'm sure the dev in particular is likely sick of seeing these sorts of 
questions.


In the pip release of wxPython (4.1.0) I've had very few issues with 
accessibility with the widgets I most commonly use.

Indeed, as long as i put a StaticText widget first before either a 
textCTRL or a listCTRL widget they seem to work perfectly well with 
screen readers which pick up what they are supposed to be.


This however can not be said for sliders who no matter what I do refuse 
to work.

It's very strange as so far as I can see, 4.0.1 did not have this issue 
(though I now can not install that package because of one reason or 
another long story).


For reference, here is my slider creation:


   labelsld = wx.StaticText(panel, -1, "Volume.")
   hbox1.Add(labelsld, 0, wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)
   self.sld = wx.Slider(panel, value = 0, minValue = 0, maxValue = 100, 
style = wx.SL_HORIZONTAL|wx.SL_LABELS, name="Application volume")
   self.sld.SetName("Application volume.")
   self.sld.SetValue(int(g.appvolume*100))
   self.sld.Bind(wx.EVT_SLIDER, self.change_volume)
   hbox1.Add(self.sld,1,wx.EXPAND|wx.ALIGN_LEFT|wx.ALL,5)


Is there any workarounds for this?

My thanks in advance.

Nathan

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/95f16ebb-ffb3-29b6-747a-b3d08bf4bab8%40gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.