Hallo,
The Tint Color of segmented Control doesn't work.
This is only on my iPad Pro (10.5). My old iPad Air doesn't have these problem.
I have the Problem using a pyui file OR using a class (ui.view, using a py file) with something like that:
Btw.: the button works correct.
import ui
class cUIViewMain(ui.View):
def __init__(self):
self.background_color = 'lightgrey'
self.width = 250
self.height = 100
self.btn01 = self.makeButtons('btn01')
vSeg01 = ('A1', 'A2', 'A3', 'A4')
self.seg01 = self.makeSegmentedControl(vSeg01)
self.style()
def layout(self):
self.btn01.frame = (10, 5, 80, 40)
self.seg01.frame = (10, 50, 200, 40)
def style(self):
self.btn01.tint_color = 'yellow'
self.seg01.tint_color = 'yellow' #funktioniert nicht (https://forum.omz-software.com/topic/4652/tint-color-can-t-be-set/6)
def makeButtons(self, vName):
button = ui.Button()
button.title = vName
button.border_width = 1
self.add_subview(button)
return button
def makeSegmentedControl(self, vSegments):
vSegmentedControl = ui.SegmentedControl()
vSegmentedControl.segments = vSegments
self.add_subview(vSegmentedControl)
return vSegmentedControl
if __name__ == '__main__':
vView = cUIViewMain()
vView.present('sheet')
I know there is a thread, but this is not the same.
https://forum.omz-software.com/topic/4652/tint-color-can-t-be-set
