[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


>have an idea that would require GUI
>spend 5 seconds reading about GUI frameworks
>immediately lose all interest
>>
Use godot
>>
>>107084393
literally just vibecode it
>>
>>107084393
>learn python
>use tkinter
>everyone says tkinter looks like ass and i shouldnt bother
>actually -learn- how to use tkinter
>get called a front-end dev who doesn't know how to code
>fine; whatever. do it in c++ and qt
>get told it doesn't count and i cheated
god
damn it
>>
>>107084723
python tkinter is bound by pickling
>>
>>107084393
>drawing gui is easy dude
>check api
>draw a rectangle with
>SELF.SYSTEM.INVOKE()-->{SELF().REDIRECT-->DRWRKT(...10 required parameters here, half of them undocumented, the other half refactored many times...)
>>
>>107084393
Electron is where it's at.
A pain in the ass but still better than anything else.
>>
>>107084393
Just use tkinter, it's close enough.
>>
>>107084828
>>107084844
should have clarified, this is an mcu project.
>>
>>107084393
If it can be done with a cobbled together tui, it isn't worth doing.
>>
>>107084923
You should try asking on >>>/tv/ in that case
>>
>>107084942
:D
>>
>>107084393
import QtQuick
import QtQuick.Controls

Rectangle {
Button {
Text {
text: "this was solved by QML btw."
}
}
}
>>
>>107084393
the crazy part is that it didn't have to be this way. the original concept behind x11 was that you would send drawing commands to a socket - imagine cairo or any other vector graphics library, and the server would then send you the user events through that same socket. the good thing about this was that, being just a socket, you could use it with select, poll and all the others. the other good thing was that you could leave the complex stuff (text rendering, scaling, anti-aliasing, etc.) to the xorg server

but the x11 protocol was the worst implementation possible of a pretty good idea. and being so bad it eventually became unmaintainable and they had to drop a lot of features: you are not supposed to use x11 drawing primitives, they are officially broken. the way you are supposed to use x11 in 2025 is just asking for an opengl/vulkan context or a framebuffer and render everything yourself (wayland took this approach too). this means that you have to use a library, and there are only 2 libraries: gtk and qt. these two come with several abstraction layers that take the x11 socket away from you, so you can't really use select, poll, epoll or anything like that anymore

this is why those two frameworks have to implement they ad-hoc event loop and everything has to go through it so you have to structure your program around it
>>
>>107084923
>>107084942
Model Controller Universe?
>>
use swing
>>
not to derail but why did stuff like VB die out? im a zoom-zoom and i think it'd be useful for making task-specific programs that only i'd ever use, kinda like the programs i'd make on my ti-84 in high school.
>>
>>107084393
>use vibe code
>get full code with gui
>>
>>107085370
It was killed by millennials. Not the first (or last) time that happened.
>>
>>107085370
VB as a language died out because there's no use case anymore. C# is a lot better. IT actually supports the same Winforms builder even today.
Basically all visual GUI development tools have been killed. Everybody writes GUIs and websites in pure code now. I don't know why, I always thought these GUI dev tools looked promising.
>>
>>107085509
C# is not a lot better. They might as well have just skipped C# and only adopted VB for .Net.
>>
>>107085646
Well I sure as hell prefer C# to VB. I don't like VB as a language, but I like the old tooling around VB6.
>>
if react is good enough for windows 11, it's good enough for you anon
>>
>>107084393
haha OP I love froggo XD
>>
>>107085509
>I always thought these GUI dev tools looked promising
They tend to be fine until you need to deal with variable-sized content. Including of the buttons in the layout because users change the font scaling and the language.
Describing the semantics of how to resize with all that stuff going on is just so much easier with linguistic solutions. And buttons are pretty trivial anyway.
Unless you use GTK, but then you like self-harm anyway.
>>
>>107085721
this but unironically. you're probably not building anything important enough to be hindered by just using React if GUI shit pisses you off so much.
>>
>>107084393
What's your idea? I'll tell you what the problems with it are.
>>
>>107084600
This unironically. I've been using it for my latest project because there are no good cross-platform GUIs. godot just werks, werks on phone, linux and windows out of the box without time-wasting tinkering.
>>
File: 1735009760612515.jpg (61 KB, 695x596)
61 KB
61 KB JPG
>>107084393
my first 'GUI' was out of necessity when i just started learning how to automate my own job. I slapped it together with python constantly providing updates saved to a file, but instead of using something reasonable like tkinter or some other python module i made an HTA file (HTML/JS) that interacted with the python using vbscript

this was like, 5 years ago. 0/10 wouldnt do it this way again but it somehow 'just worked'
>>
just find an open source program, slightly edit it, close the source and BOOM you got it. I make millions a year doing this
>>
How hard would it theoretically be to develop a webui for a CLI based toolkit like Axolotl?
>>
>>107088242
>cross-platform
why? why the fuck do you need cross-platform
>>
>>107088720
Because my work PC is Windows and my personal PC is Linux and I'd like to be able to use it on both.
>>
File: 2025-11-03 07.58.46.png (1.74 MB, 1920x1021)
1.74 MB
1.74 MB PNG
>he didn't spend years making his own GUI
smdh
>>
How good are llm's at creating gui's btw? Cause writing them by hand is either cumbersome or a pita.
>>
>>107084965
I remember how shit this was to use. The slots and whatever else. I just remember it sucking.
>>
>>107085370
VB is good for that.
The biggest problem is that there's no GUI scaling.
Which in offices wouldn't be a problem until some fucking retard from IT procures 2 in 1 flippy notebooks with a screen size of 10" and now a window made for 16" screens won't show and requires a redesign and it's COVID and no one has a monitor / is going to borrow a monitor from work.

I think the reason why they're dead though is just security.
VB can call system DLLs and do anything which made IT Sec scared of Accountants who learnt a bit of code.
>>
>>107085509
>all visual GUI development tools have been killed
Doesn't Qt have one?
>>
>>107084723
>>get told it doesn't count and i cheated
Yes. You should have used PySide6 anon
>>
>>107084723
>everyone says tkinter looks like ass
well, it does. it's good enough when I quickly need to make a functional GUI for myself, but that's it. users today are used to Electron apps everywhere.
>>
>>107089232
how did you make this? it looks pretty rad
>>
>>107084923
Micro controller unit?
>>
>>107090265
I made my own library. Renderer is written in OpenCL lmao.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.