lasercata / Cracker

A useful software about cryptography, numbers and passwords.
GNU General Public License v3.0
4 stars 0 forks source link

No new line with the translation of the about tab #2

Closed lasercata closed 3 years ago

lasercata commented 3 years ago

With the new translation of the presentation text, the about window is too much large (larger than the screen), because there is no new line ('\n') in both translations, and it is set as a label, so there is no auto line jump (like there would be in a QText widget. Adding the new line character in both translations should solve the problem.

EleriasQueflunn commented 3 years ago

Sorry, I don't see your issue. That's true but I think it would be better to configure QText to have a fixed size Widget which does automatic line return. Is it possible ?

lasercata commented 3 years ago

The problem was this : Screenshot_2020 12 05_21h57 52

I solved this issue by using the NewLine class (from modules/base/base_functions.py) :

NewLine(100).text_set(tr('text'))

Normal width : Screenshot_2020 12 05_22h33 19