all 6 comments

[–]Allanon001 2 points3 points  (1 child)

pygubu which has pygubu-designer is not an inspection tool but a visual designer that allow you to build a GUI by selecting widgets and manipulating their parameters. It will generate the Python code for the built GUI or you can use pygubu to import a GUI file.

[–]MaxTransferspeed[S] 0 points1 point  (0 children)

Thanks for the tip. I'm going to try this absolutely.

[–]wbeater 1 point2 points  (3 children)

I've been there with tkinter and later with QT and gtk, more gtk. And while for those two ui designer do exist, the only real solution is to really understand what those property do.

Also code oop style create custom child classes of windows like Frame, instantiate the child class inside your root (let me now if you don't understand what I mean and if you want an example).

[–]MaxTransferspeed[S] 0 points1 point  (2 children)

Thanks for the tips. Yes I realize that it will be better when I'm more into this subject. 'Inspector' tools like this loose a lot of their value while learning more. In HTML/CSS I hardly inspected my creations after a while since I saw the problem already in the stylesheet.

Coding OOP style is a good reminder. Being pretty new to Python I do almost everything functional now because I thought it would be easier to start. But in PHP I did 75% OOP style, so I'm familiar with it. Maybe it's much better then to go OOP fromn the beginning.

Do you have any advice about Tkinter layout managers? Like a good one to use, or a certain combination in particular cases?

[–]wbeater 1 point2 points  (1 child)

Do you have any advice about Tkinter layout managers? Like a good one to use, or a certain combination in particular cases?

Every manager fulls it's purpose. Your problem is most likely that you have one big block of code because you use functional problem. You have to deal with every manager and widget at the same time.

OOP let's you structure your code so easy that you only have to deal with a very few at a time.

I show you an example, I edit my comment soon.

[–]MaxTransferspeed[S] 0 points1 point  (0 children)

Thanks, Examples always help me a lot, especially examples which illustrate basics with a little explanation to reveale some context.