Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Standard dektop Tcl/Tk icons?

163 views
Skip to first unread message

Richard Owlett

unread,
Apr 5, 2018, 9:06:58 AM4/5/18
to
I'm getting reacquainted with Tcl/Tk after using Tcl/Tk 8.4 on WinXP.
I'm currently using Debian with MATE desktop.
Does there exist a reasonably standard set Tcl/Tk related icons suitable
for a desktop?
My web searches turned up a plethora of icon creation tools - custom
creation *NOT* desired/desirable.
TIA

Brad Lanam

unread,
Apr 5, 2018, 10:42:46 AM4/5/18
to
What sort of icons are you looking for?
Are the icons in /usr/share/icons enough?

Richard Owlett

unread,
Apr 5, 2018, 11:32:57 AM4/5/18
to
On 04/05/2018 09:42 AM, Brad Lanam wrote:
> What sort of icons are you looking for?
> Are the icons in /usr/share/icons enough?
>

Everything else I have is in /usr/share/icons/matefaenza/apps/48
so I went there. Even backing out to .../matefaenza I found nothing and
proceeded to do web search.

Taking your 2nd question as a hint I searched all of /usr/share/icons.
There is a single icon under /usr/share/icons/default.kde4/base/
{different sizes}.

I was hoping for a wider selection including the frog used under WinXP
and the feather I've seen on some Tcl/Tk websites - purpose being
distinguishing some general categories on a busy desktop.

Thank you.

Brad Lanam

unread,
Apr 5, 2018, 11:46:29 AM4/5/18
to
On Thursday, April 5, 2018 at 8:32:57 AM UTC-7, Richard Owlett wrote:
> On 04/05/2018 09:42 AM, Brad Lanam wrote:
> > What sort of icons are you looking for?
> > Are the icons in /usr/share/icons enough?
> >
> ...
> Taking your 2nd question as a hint I searched all of /usr/share/icons.
> There is a single icon under /usr/share/icons/default.kde4/base/
> {different sizes}.
> ...

I don't know where KDE stores its icons.
They must be on the system somewhere.
That should give you some variety.
But many may be SVG now and you would need to convert them
to use them within Tcl.

If you install one of the other window managers, you could probably
get some more icons.

Ashok

unread,
Apr 5, 2018, 1:15:37 PM4/5/18
to
Not sure exactly what you are looking for but try
http://www.satisoft.com/tcltk/icons/

/Ashok

Richard Owlett

unread,
Apr 6, 2018, 6:53:05 AM4/6/18
to
http://www.satisoft.com/tcltk/icons/libraries.html demonstrates the
focus of the site is for use internal to a Tk app. I'm looking for icons
for use on a Desktop to launch a program.

Thank you.

Richard Owlett

unread,
Apr 6, 2018, 7:32:29 AM4/6/18
to
On 04/05/2018 10:46 AM, Brad Lanam wrote:
> On Thursday, April 5, 2018 at 8:32:57 AM UTC-7, Richard Owlett wrote:
>> On 04/05/2018 09:42 AM, Brad Lanam wrote:
>>> What sort of icons are you looking for?
>>> Are the icons in /usr/share/icons enough?
>>>
>> ...
>> Taking your 2nd question as a hint I searched all of /usr/share/icons.
>> There is a single icon under /usr/share/icons/default.kde4/base/
>> {different sizes}.
>> ...
>
> I don't know where KDE stores its icons.

Moot at moment as I don't have KDE.

> They must be on the system somewhere.

That raises the question "How to efficiently search for 'tcl' in
filename and having the extension 'png'?"
I suspect grep is key. However I don't know how to feed it suitable
lines which would have both the directory and filename.

> That should give you some variety.
> But many may be SVG now and you would need to convert them
> to use them within Tcl.

I'll not be using them _within_ Tcl. I would be using them to launch
apps from the MATE desktop.
Converting from SVG to png should be a tractable problem.

>
> If you install one of the other window managers, you could probably
> get some more icons.
>

Loading multiple desktops is not practical in my case including a very
low data cap on my internet connection. Will have to investigate which
specific files have icons. I suspect I've a notion of how to search.

But I'm leaving for an appointment.



Brad Lanam

unread,
Apr 6, 2018, 8:39:27 AM4/6/18
to
On Friday, April 6, 2018 at 4:32:29 AM UTC-7, Richard Owlett wrote:
> On 04/05/2018 10:46 AM, Brad Lanam wrote:
> > On Thursday, April 5, 2018 at 8:32:57 AM UTC-7, Richard Owlett wrote:
> >> On 04/05/2018 09:42 AM, Brad Lanam wrote:
> >>> What sort of icons are you looking for?
> >>> Are the icons in /usr/share/icons enough?
> >>>
> >> ...
> >> Taking your 2nd question as a hint I searched all of /usr/share/icons.
> >> There is a single icon under /usr/share/icons/default.kde4/base/
> >> {different sizes}.
> >> ...
> >
> > I don't know where KDE stores its icons.
>
> Moot at moment as I don't have KDE.
>

Whoops, saw kde in your search results and missed the other statement.
Should be plenty of icons in /usr/share/icons.
e.g. /usr/share/icons/Humanity/apps

Since you want them for the desktop, it doesn't matter whether they
are SVG or not.

> > They must be on the system somewhere.
>
> That raises the question "How to efficiently search for 'tcl' in
> filename and having the extension 'png'?"
> I suspect grep is key. However I don't know how to feed it suitable
> lines which would have both the directory and filename.

find /usr/share/icons -name '*tcl*.png' -print

But I don't think you will find anything specific for Tcl or Wish.

You may know this already, but you can create a file, e.g. myapp.desktop
in your Desktop folder, and the desktop icon will show up. It will not
be executable the first time, different window managers have different
methods of fixing permissions. I think with mate, iirc, just double-click
and select "mark as trusted".

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name[en_US]=BallroomDJ
Name[en_GB]=BallroomDJ
GenericName=Ballroom Music Player
Exec=/home/bll/music-local/linux/64/tcl/bin/tclsh /home/bll/music-local/ballroomdj.tcl
Terminal=false
Icon=/home/bll/music-local/i/bdj_icon_dt.png
Type=Application
Categories=Application;Music Player
Comment[en_US]=Ballroom Music Player
Comment[en_GB]=Ballroom Music Player

Rich

unread,
Apr 6, 2018, 9:47:41 AM4/6/18
to
Richard Owlett <row...@cloud85.net> wrote:
> That raises the question "How to efficiently search for 'tcl' in
> filename and having the extension 'png'?"
> I suspect grep is key. However I don't know how to feed it suitable
> lines which would have both the directory and filename.

You want to search for "tcl" in the filename or directory name, but
find only files that have an extension of png?

If I've interpreted your search correctly, there are several ways to do
this (these are all generally best either piped to less ( | less ) or
redirected to a file ( > dest_file ), otherwise everything will scroll
by to quickly to read):

1) Use find to retreive all filenames ending in png, then grep to
filter out names with 'tcl' in them somewhere:

find <start-dir> -name \*.png | grep -i tcl

Note that if you have cd'ed already to <start-dir> then you can use .
(current directory) to tell find to "look from here".

1) Use find to get a list of all files, then use grep to filter for
ending in png and containing tcl (the advantage here is that you can
tell grep to ignore case (the -i option) and so find .png .PNG .PnG
.pNg etc. all in one):

find <start-dir> -type f | grep -i "[.]png$" | grep -i tcl

The first invocation of grep above filters for only lines ending in
.png (case insensitive). The square brackets are to tell grep to look
for a literal period, otherwise period means "any character". The
second filters the output of the first for only lines containing "tcl"
(anywhere, case insensitive).

Richard Owlett

unread,
Apr 6, 2018, 4:34:18 PM4/6/18
to
Thought something similar would exist.
Yesterday in >60's.
Next 36+ hours, freeze warning.
THEREFORE time available
Thank you


Richard Owlett

unread,
Apr 8, 2018, 8:37:23 AM4/8/18
to
I don't grok the last dozen lines although it's plain what it tells the
system. MATE has a "Create Launcher" app that with similar functionality.

Richard Owlett

unread,
Apr 8, 2018, 8:43:01 AM4/8/18
to
On 04/06/2018 08:47 AM, Rich wrote:
> Richard Owlett <row...@cloud85.net> wrote:
>> That raises the question "How to efficiently search for 'tcl' in
>> filename and having the extension 'png'?"
>> I suspect grep is key. However I don't know how to feed it suitable
>> lines which would have both the directory and filename.
>
> You want to search for "tcl" in the filename or directory name, but
> find only files that have an extension of png?
>
> If I've interpreted your search correctly, there are several ways to do
> this (these are all generally best either piped to less ( | less ) or
> redirected to a file ( > dest_file ), otherwise everything will scroll
> by to quickly to read):
>
> 1) Use find to retreive all filenames ending in png, then grep to
> filter out names with 'tcl' in them somewhere:
>
> find <start-dir> -name \*.png | grep -i tcl
>
> Note that if you have cd'ed already to <start-dir> then you can use .
> (current directory) to tell find to "look from here".
>
> 1) Use find to get a list of all files, then use grep to filter for
> ending in png and containing tcl (the advantage here is that you can
> tell grep to ignore case (the -i option) and so find .png .PNG .PnG
> .pNg etc. all in one):
>
> find <start-dir> -type f | grep -i "[.]png$" | grep -i tcl

That line is what I was looking for. It gives me ideas for further
refinements for my particular use-case. Will need to explore "find" and
"grep" further.

Donald Arseneau

unread,
Apr 17, 2018, 9:13:34 PM4/17/18
to
Richard Owlett <row...@cloud85.net> writes:

>> find <start-dir> -name \*.png | grep -i tcl

Well if you use the good-old slocate, and have the filename
database updated by cron (which used to be the default, but
not these days)

locate '*tcl*.png'


--
Donald Arseneau as...@triumf.ca

Peter Dean

unread,
Apr 18, 2018, 3:44:58 AM4/18/18
to
On 18/04/18 11:13, Donald Arseneau wrote:
> Well if you use the good-old slocate, and have the filename
> database updated by cron (which used to be the default, but
> not these days)
>
> locate '*tcl*.png'

I didn't know that. It's package 'mlocate' on arch linux. I found many
a *lightcloud*.png

Richard Owlett

unread,
Apr 18, 2018, 8:49:01 PM4/18/18
to
Thank you for the reference to mlocate. It will solve some quite
unrelated problems.

Debian with MATE desktop has adequate tools for searching for resident
{ww?} "tcl icons".

I was looking for a web source of icons which would say:
1. this is a link to a Tcl/Tk program.
2. it performs task XYZ.

There are various programs that allow creation of icons meaningful to *ME*.

I was looking for icons meaningful to a wider audience.

Hope that makes sense <snicker ;>




tombert

unread,
May 2, 2018, 6:40:21 PM5/2/18
to
I'am using the following icons which you can freely download on the internet:

faba
humanity
humanity-dark
moka
numix
numix-circly
numix-shine
munix-symbolic
munix-utouch
nuvola
oxygen
tangerine
tango

Combining this collection you get ~6000 icons.
0 new messages