Python Forum
[Tkinter] Tkinter - unicode
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tkinter - unicode
#1
Hi,

I'm writing a program that needs a large Tkinter label, with multiline symbols in it.
Most fonts are 8 x 16 glyphs = rectangular. Visually that is not OK for me , I want square 16x16 glyphs.
Only Japanese, Chinese and Korean fonts have that, but there unicode does not seem to offer the simple symbols
that i need in 16x16.

Question: where can i find 16x16 glyphs with simple things, that i can write to a label?
I only need 2 or 3 different ones:
- an empty box
- a filled box with any color or pattern

(I've investigated making those myself, but that does not look like a piece of cake) Wink

thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply
#2
Have you tried flaticon.com?
Another source glyphsearch.com
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#3
(Jul-17-2020, 08:08 AM)menator01 Wrote: Have you tried flaticon.com?
Another source glyphsearch.com

No I did not know about these. Awesome sites.
This makes my previous question obsolete, but generates a new one.

The flaticon ones, i can download (with obligatory source reference) as 16x16 png 's.
But, i can make what i want as 16x16 png's using photoshop. I'm a photographer.

Only, how do i string a number of png's together (randomly) and write them to a label?

thx,
Paul

OK, it will not do what i want using a label.
The solution is to create the png glyphs with photoshop, and stick them on a canvas.
Works like a charm.
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply
#4
You can just copy paste unicode characters from this link:
here

You can easily use the image parameter from a label.

label = Label(root, image=imagename)
Reply
#5
(Jul-17-2020, 06:52 PM)BitPythoner Wrote:
You can easily use the image parameter from a label.
label = Label(root, image=imagename)

Thanks, i'm working on it.
My problem was purely cosmetical, but testing showed that canvas is a better
option than label for what i want to do.

Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020