Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81167

Re: GUI toolkit(s) status

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'indexing': 0.07; 'alternatives': 0.09; 'framework.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'screen.': 0.09; 'scripting': 0.09; 'target,': 0.09; 'tcl/tk': 0.09; 'width': 0.09; 'api': 0.11; 'python': 0.11; 'jan': 0.12; 'language,': 0.12; 'posted': 0.15; 'buggy': 0.16; 'complexity,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:GUI': 0.16; 'tcl': 0.16; "tk's": 0.16; 'apps': 0.16; 'index': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'seems': 0.21; 'memory': 0.22; 'handles': 0.22; 'creating': 0.23; 'header:User-Agent:1': 0.23; 'adds': 0.24; 'byte': 0.24; 'prototype': 0.24; 'replace': 0.24; 'unicode': 0.24; '(or': 0.24; 'source': 0.25; 'handling': 0.26; 'tracker': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'correct': 0.29; 'am,': 0.29; 'subject:) ': 0.29; 'characters': 0.30; 'especially': 0.30; 'cocoa': 0.31; 'easy,': 0.31; 'anyone': 0.31; 'text': 0.33; 'open': 0.33; 'implemented': 0.33; 'mac': 0.33; 'problem': 0.35; 'knows': 0.35; 'but': 0.35; 'really': 0.36; 'choosing': 0.36; 'largely': 0.36; 'possible': 0.36; 'project': 0.37; 'starting': 0.37; 'christian': 0.38; 'apple': 0.38; 'todo': 0.38; 'needed': 0.38; 'to:addr:python- list': 0.38; 'does': 0.39; 'moving': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'easy': 0.60; 'most': 0.60; 'full': 0.61; 'new': 0.61; 'different': 0.65; 'specialized': 0.65; 'nobody': 0.68; 'day': 0.76; 'hit.': 0.84; 'manpower': 0.84; 'received:fios.verizon.net': 0.84; 'windowing': 0.84; 'feet': 0.93; 'received:108': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: GUI toolkit(s) status
Date Thu, 20 Nov 2014 23:34:37 -0500
References <5da0e7df-fd85-42b8-abfd-4db0dd9ff519@googlegroups.com> <7xwq6qgty4.fsf@ruckus.brouhaha.com> <mailman.16008.1416472839.18130.python-list@python.org> <m4kaqg$p62$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-108-16-203-145.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <m4kaqg$p62$1@dont-email.me>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16082.1416544509.18130.python-list@python.org> (permalink)
Lines 47
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416544509 news.xs4all.nl 2848 [2001:888:2000:d::a6]:37130
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81167

Show key headers only | View raw


On 11/20/2014 4:04 AM, Christian Gollwitzer wrote:

> Tcl nor Tk support Unicode outside the BMP. Full Unicode support is a
> big todo item on the wishlist for Tcl 9, for Tk nobody really knows. We
> are lacking manpower and people with specialized knowledge.

Tcl/Tk currently use UCS-2, which only handles BMP chars. Alternatives 
to support astral chars:

UTF-32 (Python's 3.2- wide build): Easy, especially starting from USC-2. 
  The main problem is the memory hit.  However, most tk apps are not 
text heavy, so this seems like a possibility.  Does anyone ever try to 
put a gigabyte text in a Text widget?

UTF-16 (Python's 3.2- narrow build): Easy but buggy when it comes to 
indexing and slicing.

UTF-16+: I posted on the tracker a prototype of how to make indexing 
correct by adding an auxiliary index of non-BMP chars.  It makes 
indexing O(k), where k is the number of astral chars.

UFT-8: Makes indexing O(n).

Python FSR (3.3+ Unicode): Handling variable byte width adds complexity, 
but Python has already implemented this pretty efficiently.  Python is 
open source with a liberal licenc

To me, an important consideration for choosing is what the OSes require 
to put characters on the screen.  Are they all the same?

> Apple is a
> moving target, they pulled the rug from under Tk's feet twice over the
> past 10 years. Nobody knows if Tk will continue to exist on the mac if
> Cocoa is withdrawn some day and replaced by a new and completely
> different windowing framework.

> Python has largely replaced Tcl as the
> first-choice scripting language, and that also does not help to attract
> people working on Tcl/Tk.

A possible solution for Tk is to replace the non-C Tcl parts of TK with 
Python (or the CPython API functions as needed for speed).  I have no 
idea how horrendous a project creating Py/Tk would be.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-19 23:59 -0800
  Re: GUI toolkit(s) status Paul Rubin <no.email@nospam.invalid> - 2014-11-20 00:25 -0800
    Re: GUI toolkit(s) status Chris Angelico <rosuav@gmail.com> - 2014-11-20 19:40 +1100
      Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-20 10:04 +0100
        Re: GUI toolkit(s) status Chris Angelico <rosuav@gmail.com> - 2014-11-20 20:17 +1100
        Re: GUI toolkit(s) status Terry Reedy <tjreedy@udel.edu> - 2014-11-20 23:34 -0500
          Re: GUI toolkit(s) status Paul Rubin <no.email@nospam.invalid> - 2014-11-20 20:49 -0800
            Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-21 08:57 +0100
          Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-21 09:13 -0500
            Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 00:59 -0800
              Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-22 12:40 -0500
                Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 10:49 -0800
          Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:38 -0800
            Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:49 -0800
          Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 10:33 -0800
            Re: GUI toolkit(s) status Christian Gollwitzer <auriocus@gmx.de> - 2014-11-22 20:34 +0100
              Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-24 11:24 -0800
        Re: GUI toolkit(s) status Kevin Walzer <kw@codebykevin.com> - 2014-11-21 09:05 -0500
        Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-21 12:15 -0800
        Re: GUI toolkit(s) status Michael Torrie <torriem@gmail.com> - 2014-11-21 21:07 -0700
          Re: GUI toolkit(s) status Dave Cook <davecook@nowhere.net> - 2014-11-26 09:40 +0000
            Re: GUI toolkit(s) status Mark Summerfield <list@qtrac.plus.com> - 2014-11-26 03:47 -0800
              Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-26 06:36 -0800
                Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-26 07:11 -0800
            Re: GUI toolkit(s) status Michael Torrie <torriem@gmail.com> - 2014-11-26 20:19 -0700
        Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 00:12 -0800
        Re: GUI toolkit(s) status wxjmfauth@gmail.com - 2014-11-22 02:46 -0800
        Re: GUI toolkit(s) status Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-24 08:18 -0700

csiph-web