Forum Archive

Pythonista Text underscore

DavinE

I have an Problem with Text Buttons....
All of them have an underscore but i don‘t know why.....

Is it possible to fix this ?

JonB

Example?

How do you create your button.

DavinE

Like this:

sectionMainMaterialButton__plus = size_to_fit(getButton_area(ui.Button(name='sectionMainMaterialButton__plus'), 'sectionMainMaterialButton__plus', self.DEVICE, 2))
            sectionMainMaterialButton__plus.action = self.sectionMainMaterialSetCount__ACTION_Button
            sectionMainMaterialButton__plus.width = easyWidth
            sectionMainMaterialButton__plus.height = ((sectionMainMaterialButton__3.height * 2) + (At.gap))
            attach(sectionMainMaterialButton__plus).below(sectionMainMaterialButton__minus)

on my iPhone it‘s correct but on my Father's iPhone are underscore

mikael

@DavinE, your code does not show how you set the ui.Button title.

Also, are you using some special font?

DavinE

@mikael set it like this:

b.title = '+' 

And my Font:

return 'Anonymous Pro'

I call it over an Function

DavinE

@mikael , @JonB

here two Pics maybe it's better to see.... i didn't found any solution..

My Pics are from two different iPhones
not underscored

underscored

mikael

@DavinE, from some hints online I gather that the underlining might be connected to user having activated ”Button Shapes” in accessibility settings.

No clue what that might be in German, but at least I have the setting under Accessibility > Display and text size (4th option) > Button Shapes (3rd option).

7upser

In german its named: Tastenformen
(einstellungen / bedienungshilfen / anzeige & textgröße / tastenformen)

Never heard this before, i think Apple create a new word....

cvp

@7upser said:

einstellungen / bedienungshilfen / anzeige & textgröße / tastenform

Google Translate

7upser

I know tastenform but never heard the plural.
(btw. plural is in the word tasten)
And 'operating aids' sounds like my iPad has Aids but is still operating.😷😛

DavinE

@mikael said:

@DavinE, from some hints online I gather that the underlining might be connected to user having activated ”Button Shapes” in accessibility settings.

No clue what that might be in German, but at least I have the setting under Accessibility > Display and text size (4th option) > Button Shapes (3rd option).

omg.... but Thanks this is right....

@7upser said:

In german its named: Tastenformen
(einstellungen / bedienungshilfen / anzeige & textgröße / tastenformen)

Never heard this before, i think Apple create a new word....

Ich danke dir xD
was haben die bitte genommen ^^ Tastenformen......
weiste wie lange ich danach gesucht hatte....

aber schön das ich nix änder muss ^^