r/learnpython 2d ago

a low ram ui module for python (except tkinker)

i have used python for a while now but i am unable to make afew projects just because it needs ui and i dont want tkinker tbh i want more plain modern(like half of discord) look is there any python module with similar concept with low ram usage(comparatively)
note- i tried tkinker and it is soo limiting for me

1 Upvotes

7 comments sorted by

3

u/szank 2d ago

pyQT, whatever native API your OS has

0

u/Informal-Chance-6067 1d ago

Happy cake day!

1

u/Diapolo10 2d ago

Even if tkinter isn't good-looking enough, have you tried customtkinter?

If that's still not enough, PySide is probably what I'd suggest if you want to avoid anything web-based.

You could also try flet, which is a Flutter wrapper for Python, but that's not really native. It's also technically currently in beta, with the upcoming next release being 1.0.

1

u/riklaunim 2d ago

Discord is web ui in a wrapper. Outside of that Qt and Kivy.

1

u/Agreeable_Lynx9194 1d ago

For the Discord look specifically, look at pywebview, it renders plain HTML and CSS in the OS's native webview so you get the modern feel without Electron's RAM footprint. The Qt/PySide route others mentioned is the solid native option, but since Discord itself is a web UI, a system-webview wrapper gets you closer to that look than any native toolkit will.

2

u/strummed-strings 14h ago

python isn't really meant to have gui. it doesn't have a native renderer. every gui library in python are just wrappers, giving you less granular control. there is no "low ram but looks good".

if you need control, you either go lower with c/c++; or if you want easier costumization, you have to accept the high ram usage and go higher with something like js and electron.

1

u/Educational_Virus672 11h ago

yes but by your definition python is also just a C wrapper
i think you define python gui as a direct call to a lower level or web which is true but is kinda wrong when you look into "what falls under wrapper" it is more like api then wrapper
still thanks for suggestion