alejandroautalan / pygubu-designer

A simple GUI designer for the python tkinter module
GNU General Public License v3.0
836 stars 102 forks source link

Setting for single section toolbar #209

Closed BloodyRain2k closed 1 year ago

BloodyRain2k commented 1 year ago

I got a pretty wide monitor and the first thing that bothered me a little about the UI, was that there's a couple of different tabs that only hold a handful of widgets, and switching back and forth to go through what I might need next got annoying pretty fast.

So I tried to fit them all into a single frame instead. Took a while of digging through the code and how the UI works but I eventually managed to make it look like this: image

What I did not yet figure out is, how to make the setting hot-swap capable. Because I still don't fully understand how the designers UI is constructed, I didn't dare to interfere with the toolbar by reconstructing it on a settings change, so it instead requires a restart.

The changes also include small tweaks to the ToolbarFrame used, as there were a few quirks with it's scrolling. For one did it scroll to the end by leaving 2/3rds of it's width empty for no good reason, and another was that if the window was shrunk, it could become impossible to scroll back to the beginning.

I also couldn't help to fix the typos of "pallete". I am aware that this might break other forks, so if that's a concern, I'll remove that commit and resubmit the PR.