scratch2python icon indicating copy to clipboard operation
scratch2python copied to clipboard

Make a GUI

Open Secret-chest opened this issue 3 years ago • 7 comments

Make a GUI.

I'm going to use GTK+ 3 and bundle it on Windows (with an aproppiate theme).

image

(Glade mockup)

Secret-chest avatar Jan 27 '22 18:01 Secret-chest

@Secret-chest tkinter works great!

jdev082 avatar May 01 '22 13:05 jdev082

@Secret-chest tkinter works great!

@JaydenDev It is ugly, I want it to look native and it doesn't have good layout management. I might use GTK+ and bundle it on Windows since that can be done.

Secret-chest avatar May 01 '22 13:05 Secret-chest

@Secret-chest tkinter works great!

@JaydenDev It is ugly, I want it to look native and it doesn't have good layout management. I might use GTK+ and bundle it on Windows since that can be done.

You can style tkinter with styling properties. Also GTK on Windows looks even worse. image

jdev082 avatar May 01 '22 14:05 jdev082

@Secret-chest tkinter works great!

@JaydenDev It is ugly, I want it to look native and it doesn't have good layout management. I might use GTK+ and bundle it on Windows since that can be done.

You can style tkinter with styling properties. Also GTK on Windows looks even worse.

GTK on windows looks worse if you don't ship a theme. tkinter on linux looks like hell. Also, those styling properties are limited, and they still don't solve the bad layout problem.

Secret-chest avatar May 01 '22 14:05 Secret-chest

@Secret-chest tkinter works great!

@JaydenDev It is ugly, I want it to look native and it doesn't have good layout management. I might use GTK+ and bundle it on Windows since that can be done.

You can style tkinter with styling properties. Also GTK on Windows looks even worse.

GTK on windows looks worse if you don't ship a theme. tkinter on linux looks like hell. Also, those styling properties are limited, and they still don't solve the bad layout problem.

Generally, Python is a pretty terrible choice for GUIs. You can split each function into seperate python files, and share code through imports. Then have a powershell GUI for Windows that runs the individual python functions, which by itself looks native as it can get. Than on Linux use a GTK library with python.

jdev082 avatar May 01 '22 14:05 jdev082

@Secret-chest tkinter works great!

@JaydenDev It is ugly, I want it to look native and it doesn't have good layout management. I might use GTK+ and bundle it on Windows since that can be done.

You can style tkinter with styling properties. Also GTK on Windows looks even worse.

GTK on windows looks worse if you don't ship a theme. tkinter on linux looks like hell. Also, those styling properties are limited, and they still don't solve the bad layout problem.

Generally, Python is a pretty terrible choice for GUIs. You can split each function into seperate python files, and share code through imports. Then have a powershell GUI for Windows that runs the individual python functions, which by itself looks native as it can get. Than on Linux use a GTK library with python.

I'll still use GTK. I can ship a Windows 10 theme on Windows and use the system one on Linux. I can't code the same GUI 2 times.

Secret-chest avatar May 01 '22 14:05 Secret-chest

Working on it.

Image

Secret-chest avatar Sep 24 '22 08:09 Secret-chest