Formation icon indicating copy to clipboard operation
Formation copied to clipboard

Is there a way to change the text of the title bar?

Open hirokun2016 opened this issue 2 years ago • 1 comments

Hi, I am trying to find a solution on how to change the text of the title bar of the main window. Is there such a way for this?

Regards, Bryan

hirokun2016 avatar Jun 03 '23 11:06 hirokun2016

@hirokun2016 This will be much easier in the new release which will be out today or tomorrow at the latest. For the older version you can change the title in your code as follows

from formation import AppBuilder

builder = AppBuilder(path="somefile.xml")
builder._app.title("My title")

builder.mainloop()

._app gives you access to the underlying toplevel window. In the new version it will be possible to change the title in the editor. Let me know if that works.

ObaraEmmanuel avatar Jun 03 '23 16:06 ObaraEmmanuel

@ObaraEmmanuel This issue has been resolved. Please close it to avoid confusion.

KavyanshKhaitan2 avatar Jun 06 '24 10:06 KavyanshKhaitan2

To change the text of the title bar now, follow these steps: image

KavyanshKhaitan2 avatar Jun 06 '24 10:06 KavyanshKhaitan2

@KavyanshKhaitan2 thanks for the clear illustration.

ObaraEmmanuel avatar Jun 06 '24 10:06 ObaraEmmanuel

@KavyanshKhaitan2 thanks for the clear illustration.

You're welcome!

KavyanshKhaitan2 avatar Jun 12 '24 16:06 KavyanshKhaitan2