davbeek / gitinspectorgui

0 stars 0 forks source link

Update height of GUI window in Windows #26

Closed davbeek closed 18 hours ago

davbeek commented 1 day ago

I always update the height of the window for macOS when new rows are added to the window. The height should also be adjusted for Windows.

Alberth289346 commented 21 hours ago

Just open it at a large size?

I assume it can handle having more space than needed :)

davbeek commented 20 hours ago

The problem is that pysimplegui does not properly handle the distribution of the heights between the top settings frame height and the bottom console frame height. If the height of the top frame is too large, you get an ugly bar of white space below it, and if the height is set too small, you will always get a scrolling sidebar for the top frame, no matter how much you increase overal window size.

Alberth289346 commented 18 hours ago

Maybe pysimplegui is becoming a bit too simple?

This is a common problem with "simple" things. Quick to get started and experiment what you want to have. However, there usually isn't a good path to "beyond" what they provide.

I have no idea what exists nowadays for cross-platform support. Python itself has tkinter. It exists a few decades already, no idea of its current state.

My GUIs are trivial, basically a flat area, and I draw everything. Written in PyGame. Likely too simple for this application.

davbeek commented 18 hours ago

Indeed, see issue #3 to add DearPyGUI as an alternative GUI to PySimpleGUI.

davbeek commented 18 hours ago

Also note that Tkinter is still alive and kicking. PySimpleGUI translates to several backends, including tkinter. Tkinter itself however, is very low-level and not suitable for us.

davbeek commented 18 hours ago

Fixed, closing.