Forum Archive

Set the title on a ui.View

MontieFernandes

I bet there’s a simple answer to this but I haven’t been able to find it... When I run some of the bundled examples on either my iphone or ipad the views have a title on the title bar of the view (Calculator in Calculator, & Color Mixer in ColorMixer for example). How is this title set? It doesn’t seem to be in either the py or pyui files. When I run my scripts the title bar is blank. Can anyone help? https://myip.kim/ https://birthdaywishes.onl/ https://elecpay.in/tneb/

pulbrich

Have a look at the name attribute of your view instance. You can either set it at creation time with the name= parameter or later as myView.name = 'fancy'