News for hackers. Stuff that matters.
Re:Writing GUI Apps Using the Red Programming Language by ausjke on Sunday December 24, 2017 @02:09PM (#16000819)
what about tcl/tk for GUI? mature, fast, and ubiquitous
Re:Writing GUI Apps Using the Red Programming Language by throwaway7645 on Sunday December 24, 2017 @08:27PM (#16002185)
I've written a few minor Tk based apps in Python and if you look at Rebol (Red's ancestor) it is much much much easier to build a similar GUI. This Rebol guy has several sites where he builds dozens of small applications that are almost freaking one liners:

http://guitarz.org/howtomakeaprogram.com/howtomakeaprogram.h...

http://easiestprogramminglanguage.com/easiest_programming_la...

http://business-programming.com/business_programming.html

http://personal-programming.com/personal-programming.html

Re:Writing GUI Apps Using the Red Programming Language by coldtea on Sunday December 24, 2017 @02:14PM (#16000844)
Also atrocious looking and alien feeling on every system.
Re:Writing GUI Apps Using the Red Programming Language by bch on Sunday December 24, 2017 @03:08PM (#16001095)
Re:Writing GUI Apps Using the Red Programming Language by cturner on Sunday December 24, 2017 @05:18PM (#16001604)
I am using python to wrap Windows-C this week. I tried Idle again for the first time in years. Its text navigation is nasty, and caused me to go to shift editor. For example, ctrl+shift+arrows highlighting is something I do all the time and Idle's behaviour is inconsistent with Windows convention.

It is hard to know how to make it mainstream from where it is. If they changed keyboard behaviour to align with Windows-convention, it may annoy parts of its existing userbase who have become accustomed to it.

Re:Writing GUI Apps Using the Red Programming Language by jcelerier on Monday December 25, 2017 @09:29AM (#16004185)
quite frankly, the two screenshots you posted are atrocious and a good reason to show people why one wouldn't use TCL/Tk
Re:Writing GUI Apps Using the Red Programming Language by bch on Monday December 25, 2017 @12:07PM (#16004821)
Genuinely curious - I’d like to see a more in depth criticism and/or compare/contrast side-by-side.
Re:Writing GUI Apps Using the Red Programming Language by jcelerier on Monday December 25, 2017 @12:48PM (#16004978)
* the spacing between items is entirely wrong

* the bezels don't look native (but look pretty much like 1990 toolkits like Motif)

* In your first screenshot:

- The checkbox seemingly changes size whenever it's checked or not.

- Likewise for the radio button, and the "small" one for some reason seems aliased or something like this.

- The small Tk logo in the tree view is also aliased and let's not talk about the canvas which looks like it's taken straight from a 1990's example.

- The tab sizes are weird and the spacing between the icon, the text and the border is uncanny, to say the least. Here's some example with Qt : https://i.stack.imgur.com/eoHaS.png or GTK: https://lists.gnu.org/archive/html/emacs-devel/2010-04/pngNP...

- The form containers (Label 1, Label 2, Label 3, Label 4) all have different sizes ; their bottom should be aligned.

* For your second screenshot, hre's another one fairly similar in concept (looks like it's made with GTK), but much prettier:

https://i.stack.imgur.com/7v6Ja.png

The most blatant thing is that the label "Direction" isn't aligned at all with the widgets that follow it. The placement of the widgets seems quite random, too. And why is there so much vertical spacing between the three rows of widgets ? But overall, notice how all the widgets in the GTK one line up nicely and have consistent margin and padding.

As an example I did a rough sketch (without caring too much) of the UI of the first screen shot with Qt. It took me 17 minutes (http://sendvid.com/f6gbp6el), with no prior try and without of a lot of habit with the Qt designer: https://i.imgur.com/4MLh48R.png and already I find it to look more professionnal (except of course the goofy canvas try :p). Another fifteen minutes and I feel like most of the Tk ui could be matched without too much stress.

Re:Writing GUI Apps Using the Red Programming Language by ausjke on Sunday December 24, 2017 @03:36PM (#16001203)
tk works with multiple script languages and does have a nice looking these days, probably not fancy, but get the job done quickly and good enough for most use cases.
Re:Writing GUI Apps Using the Red Programming Language by xeeeeeeeeeeenu on Sunday December 24, 2017 @03:24PM (#16001166)
Not true. It uses native themes under Windows and OS X.
Re:Writing GUI Apps Using the Red Programming Language by jitl on Sunday December 24, 2017 @03:53PM (#16001261)
http://www.tkdocs.com/images/idle_onewindow.png

Sure it has “native” widgets... but the layouts created have horrible, alien spacing and design.

This is completely unacceptable look and feel for a consumer macOS program.

Re:Writing GUI Apps Using the Red Programming Language by bch on Sunday December 24, 2017 @04:32PM (#16001391)
Can you expound on that?