chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.68k stars 1.02k forks source link

Tabbed output tab title is not rendered properly on tabs other than first #897

Open tionyustigal opened 11 months ago

tionyustigal commented 11 months ago

Thank you very much for creating and supporting this great application!

I am seeing an issue with the tabs title rendering. When tabbed output is specified, tab title on tabs other than first is clipped - see attached images. When a windows is resized while showing a tab with the clipped title, the title is displayed properly on that tab.

This is happening on several different Linux versions including Ubuntu 20.04, etc.

@Gooey(program_name="Gooey Tabbed Groups Issue Report", tabbed_groups=True, ) def main(): parser = GooeyParser(description="Second tab title is truncated until window resize")

arg_group1 = parser.add_argument_group("Argument Group 1", description="Argument Group 1 help")

arg_group1.add_argument("--param1",
        metavar="Parameter 1",
        action="store",
        help="Parameter 1 Help"
        )

arg_group2 = parser.add_argument_group("Argument Group 2", description="Argument Group 2 help")

arg_group2.add_argument("--param2",
        metavar="Parameter 2",
        action="store",
        help="Parameter 2 Help"
        )

args = parser.parse_args()

if name == "main": main()


 - [ ] Screenshots are attached
![tab1](https://github.com/chriskiehl/Gooey/assets/99865803/6a664257-8b56-417a-a981-989c65758785)
![tab2](https://github.com/chriskiehl/Gooey/assets/99865803/275be2e9-90ee-4745-bfec-76c6fc7fefcd)
![tab2resized](https://github.com/chriskiehl/Gooey/assets/99865803/d7a5e6ae-8f4d-443e-bb2d-2914d4065fa7)