Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hirokun2016 opened this issue Jun 3, 2023 · 1 comment
Open

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

hirokun2016 opened this issue Jun 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hirokun2016
Copy link

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 hirokun2016 added the bug Something isn't working label Jun 3, 2023
@ObaraEmmanuel
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants