lawsie/guizero

guizero title font (not titlebox)

spyide opened this issue · 12 comments

I have searched for how to change the font of the title in App container or any other container created by using Window.
I am unable to find an answer and would appreciate any info on where to find it.
thank you
mp

Can you expand on what you mean by the 'title in the App container'?

Do you mean the text which is shown in the top of the window? e.g. in the bar which runs across, where it says guizero in the screenshot below?

image

If it's that I am pretty sure you can't change the font, it is set by the operating system and probably part of the an OS theme.

The screenshot isn't showing.

Still no screenshot. I think you will have to upload it directly on GitHub.com.

Regardless if you are trying to change the menu bar font, I doubt there is anyway to do it with changing the system fonts. There is certainly no way through guizero.

I don't know if it's important to you but there probably isn't a cross platform way of doing this either, macos windows for example don't have the menu bar at the top of the window.

guizerotabex
i hope this will get image through.
it seems that since we can change the text, we should somehow be able to cgange font properties, if we need to resort to tkinter.

I haven't looked in-depth (maybe a search through tkinter docs will reveal something) but I don't think you can change the font on the window titlebar. It is set through system fonts.

Closing this issue. Feel free to reopen if you have anything to add :)

@spyide this is a closed issue and its not a great place to be asking for unrelated support and advice.

There is a section in the documentation with advice on where to get help - https://lawsie.github.io/guizero/gettinghelp/

Some general advice on your points. Using the grid layout is not a good strategy for absolute positioning as any empty "cell" will be resized to zero. guizero doesnt have a concept of creating absolute (fixed / placed) layouts, all guis being essentially dynamic and changing the size and contents of the window. My recommendation for most scenarios is to use an "auto" layout and use boxes and aligns to configure where you want widgets to be. There is a section on how to create layouts in the documentation - https://lawsie.github.io/guizero/layout/

using the same keyword grid for both the box in the master and the widgets in box can become confusing. is there any way to have a different grid label for each widget in the combo?

Not currently, although I suppose you could create variables / constants for the grid positions and use those to make the code simpler. If you have a feature request pls raise a new issue a code example of what you are hoping for would be useful.