Tk Source Code

View Ticket
Login
Ticket UUID: 21add63ee0e5d5f464c902ac0dd1e50d4afb5106
Title: Would it be possible to add light CSS support?
Type: RFE Version: 9
Submitter: dkf Created on: 2024-05-24 09:22:57
Subsystem: 02. Appearance Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2024-05-24 09:22:57
Resolution: None Closed By: nobody
    Closed on:
Description:

[Ticket moved from Tcl 00afb52913]

Hey Tcl/TK folks,

This is a Tk RFE suggestion.

But before I describe it, I wanted to pick "shevy" as name, but the 
webformular insisted that I have to use 6 chars. That's making me
a sad panda. I think the combination nick + email should suffice
UNLESS someone else may have that nick; but not if it is "not enough
characters", that's ... silly.

Anyway.

I have been using ruby-gtk3 for a few years, and they support some
of CSS. I don't care to suggest that Tk supports all of it, mind
you, but light weight CSS - borders, colours, padding ... these
elementary things.

I am using this in ruby-gtk3 so far but I have not figured out a
way to do so in tk; nor do I know what is supported.

Would it be possible for the dev team to consider a light weight
CSS implementation? Really just the very basics, and examples
that show how this can be used.

I already use ruby-gtk for my own needs, and I use the commandline
anyway (Linux guy here), but for elderly relatives I have to get
a GUI, since they can't use the commandline, and use windows.
Tk works quite well on windows; I got my examples working on
the first try (ruby-gtk is more work to get working).

CSS support, even if only basic and light weight, would help me
out a LOT. I already use www-related aspects since many years,
so using parts of this for ruby-gtk3 was trivial, and now I'd
love this for tk as well. (I actually use tk via the ruby-tk
bindings, but I assume it should work fine; for ruby-gtk we
use gobject-introspection and while it's not perfect, it 
works fine for simple use cases really).