Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
XDC2012: Programming languages for X application development
Posted Oct 4, 2012 11:57 UTC (Thu) by njwhite (subscriber, #51848)
Tk 8.5 on my Debian is at least as attractive as GTK applications, to me.
> Tk does not integrate into a desktop at all
If one uses ttk widgets it will use the desktop theme, AFAIK. But I've never bothered with it, because regular widgets in Tk 8.5 are quite pretty, and not very different to the default widget styles of Qt and Gtk.
Posted Oct 4, 2012 16:18 UTC (Thu) by intgr (subscriber, #39733)
Are we talking about the same Tk that appears when you run gitk, hgk or use Tkinter in Python? Because every time I do, I feel like I'm going through a time machine, decades back, to the days of Motif.
And they still have no grid widget (list widget with multiple columns), so it has to be emulated via multiple single-column list widgets. Srsly?
Posted Oct 4, 2012 18:13 UTC (Thu) by dskoll (subscriber, #1630)
Tk, in its default configuration, does look old, but I don't think ugly. I don't think gitk's interface is any uglier than those of my other desktop tools like Firefox, claws-mail, etc.
And the whole point of Tcl/Tk is that it's easy to build up "megawidgets" from simpler widgets so you don't *need* a multicolumn list box. Once the code is written to make a megawidget, you just use it.
If you don't like writing your own widget code, there are plenty of
libraries (eg, BWidget) that have all the widgets you'd ever need.
Posted Oct 4, 2012 18:24 UTC (Thu) by juliank (subscriber, #45896)
Posted Oct 4, 2012 22:25 UTC (Thu) by njwhite (subscriber, #51848)
I really feel like we must be talking past each other somehow. Here are screenshots from a couple of little GUI programs I wrote recently, with Debian's Tk 8.5, doing nothing fancy whatsoever:
Motif may well be older than me too; I really don't think Tk looks particularly dated. Tk 8.4 did, 'cos it didn't use proportional fonts (at least by default), but Tk 8.5 looks as modern as anything else to me. And as I mentioned above, it's really nice to code in.
Posted Oct 4, 2012 22:53 UTC (Thu) by juliank (subscriber, #45896)
I want my graphical applications to look great, not OK. They a sort of a distraction from the main part of the screen content, the terminal. That's why I don't use stuff like Tk, Xfce, or Enlightenment. They're all ugly and inconsistent compared to the wonderful GNOME 3 desktop (GNOME 3 has other important problems though, like crashes on user switch).
Posted Oct 5, 2012 13:28 UTC (Fri) by dskoll (subscriber, #1630)
They're all ugly and inconsistent compared to the wonderful GNOME 3 desktop
Ah, I see. You're being ironic.
Seriously... "ugly" is absolutely in the eye of the beholder and I find Tk apps no more ugly than Qt or gtk+ ones.
Posted Oct 5, 2012 21:51 UTC (Fri) by sramkrishna (subscriber, #72628)
Posted Oct 5, 2012 12:32 UTC (Fri) by man_ls (guest, #15091)
Also, there are varying degrees of ugliness. I have deduced through various experiences that my aesthetic sense is a bit advanced for a developer, but completely backwards for regular people. The screenshots you posted are (no offense meant) definitely in developer-only land: function over form.
Posted Oct 5, 2012 12:38 UTC (Fri) by mpr22 (subscriber, #60784)
Why do people think that white backgrounds are only for text documents?
Posted Oct 6, 2012 9:16 UTC (Sat) by man_ls (guest, #15091)
In fact, darker backgrounds on web pages decrease readability. I find white text on a dark background particularly nasty: after reading such a page I see dark spots everywhere for a minute or so. I have configured my terminal windows to be black on white too and now live in a bright, sunny world.
Posted Oct 10, 2012 15:58 UTC (Wed) by Tet (subscriber, #5433)
Nope. Still intolerable and undesirable here. TFTs have made it not quite as bad as before, but I still prefer light text on a dark background 90% of the time. How anyone can work with a dark on light terminal is beyond me. But hey, everyone's personal preferences are different.
Posted Oct 6, 2012 7:13 UTC (Sat) by dirtyepic (subscriber, #30178)
Everyone knows text documents should be chunky white text on a blue background. Those white backgrounds just give you screen burn.
Posted Oct 6, 2012 10:48 UTC (Sat) by wazoox (subscriber, #69624)
Posted Oct 6, 2012 6:55 UTC (Sat) by dirtyepic (subscriber, #30178)
Posted Oct 7, 2012 19:50 UTC (Sun) by Seegras (subscriber, #20463)
Anyway: The problem here is, this beast comes with _another_ totally different look and feel.
What's needed is a consistent look & feel all over all applications, no matter what language they're written in. And the whole thing has to be theme-able, so I can change the look & feel of the whole desktop at the same time.
It's a big strength of Windows and MacOS that every application looks the same (apart from idiots taking pains "their" application looks different. They belong into the user interface hall of shame). But it's a big strength of the X11 toolkits (Gtk, Qt, even Athena) that the look of all the applications written in them is theme-able globally. You don't want to loose that, you want to expand it over different toolkits.
Posted Oct 8, 2012 18:28 UTC (Mon) by jond (subscriber, #37669)
We have that, now. You can write GTK apps in C, C++, Java, Perl, Python… You can write Qt apps in C++, Java, Perl, Python… (not sure about C). The problem is we have it more than once :)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds