def initSlider(self, parent, rect): tempSlider = Slider(parent) tempSlider.bgColor = color.gray tempSlider.vertical = False tempSlider.rect = rect tempSlider.thumbMinSize = 10 tempSlider.thumbImage = r'Images\SliderThumb.jpg' return tempSlider