Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python,': 0.02; 'anyway.': 0.05; 'subject:Python': 0.06; 'utf-8': 0.07; 'bindings': 0.09; 'lawrence': 0.09; 'metrics': 0.09; 'gui': 0.12; 'fancy': 0.16; 'language?': 0.16; 'ought': 0.16; 'partly': 0.16; 'personally,': 0.16; 'portable': 0.16; 'python;': 0.16; 'subject:GUI': 0.16; 'subject:desktop': 0.16; 'text?': 0.16; 'tk.': 0.16; 'tkinter.': 0.16; 'used"': 0.16; 'well-known': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'platforms': 0.22; 'comfortable': 0.22; 'header:User- Agent:1': 0.23; 'certainly': 0.24; 'unicode': 0.24; "i've": 0.25; '(for': 0.26; 'header:In-Reply-To:1': 0.27; 'received:24': 0.27; 'chris': 0.29; 'am,': 0.29; 'code': 0.31; 'that.': 0.31; '(although': 0.31; '25,': 0.31; 'font': 0.31; 'piece': 0.31; 'produces': 0.31; 'subject:next': 0.31; 'fri,': 0.33; 'could': 0.34; 'possible.': 0.35; 'but': 0.35; 'adjust': 0.36; 'received:10.0': 0.36; 'received:10': 0.37; 'starting': 0.37; 'easiest': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'obtain': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'easy': 0.60; 'results.': 0.60; 'most': 0.60; 'received:unknown': 0.61; 'gone': 0.61; 'first': 0.61; 'you.': 0.62; 'times': 0.62; 'such': 0.63; 'pick': 0.64; 'more': 0.64; 'received:bluehost.com': 0.68; 'jul': 0.74; 'yourself': 0.78; 'discover': 0.82; '"just': 0.84; 'bounding': 0.84; 'chinese,': 0.84; 'etc),': 0.84; 'fonts': 0.84; 'glenn': 0.84; 'pike': 0.84; 'subject:Project': 0.84 X-Authority-Analysis: v=2.1 cv=C4B6l2/+ c=1 sm=1 tr=0 a=bHMQH+OLnPEWGwbUEerQzQ==:117 a=bHMQH+OLnPEWGwbUEerQzQ==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=tcnv99F1KMcA:10 a=KKSEZ5ktTpMA:10 a=aDqhzxAoLLkA:10 a=9HSTQGAzAAAA:8 a=7j9GTTBHwvYA:10 a=63V5aWGNYnoA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=BrDiTsk0AAAA:8 a=SqnqX_aoYdfejm8mzu4A:9 a=QEXdDO2ut3YA:10 a=-hJg1tCh9CgA:10 a=pGLkceISAAAA:8 a=6JI5u52nN_0oDqvyCOIA:9 a=1iyNq2j4gQ72LbjD:21 a=khp_bdStrmQM0CMt:21 a=4IGolAjyicr_07bc:21 a=_W_S_7VecoQA:10 Date: Thu, 24 Jul 2014 12:11:27 -0700 From: Glenn Linderman User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Exploring Python for next desktop GUI Project References: <93c42547-557b-4839-baba-9ed54120595e@googlegroups.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------060902010802090104000308" X-Identified-User: {1756:box1033.bluehost.com:areliabl:nevcal.com} {sentby:smtp auth 24.182.57.62 authed with test@nevcal.com} X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 110 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406229500 news.xs4all.nl 2881 [2001:888:2000:d::a6]:41400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75173 This is a multi-part message in MIME format. --------------060902010802090104000308 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/24/2014 11:15 AM, Chris Angelico wrote: > On Fri, Jul 25, 2014 at 4:04 AM, Mark Lawrence wrote: >> On 24/07/2014 17:18, Chris Angelico wrote: >>> The first one is certainly possible. Pick any of the well-known >>> toolkits (Tkinter, wxwidgets, GTK, etc), and see how it feels. All of >>> them are portable across the three platforms you name, so see which >>> one is most comfortable for you to code in and produces the best >>> results. >> >> s/wxwidgets/wxpython/ unless you fancy wrapping it yourself :) >> > Yeah that. And pygtk rather than GTK. Or I could have gone the other > way and said Tk instead of Tkinter. One way or another, I ought to > have been more consistent. Anyway. Pick a good toolkit, get to know > it, and use it. Personally, I like GTK, but that's partly because its > bindings come with Pike, and I did GUI work with Pike before I did > with Python; the same advantage, for someone starting with Python, > goes to Tk. But the main thing is, it's easy to be cross-platform - > take whatever feels good to you. > > ChrisA Not knowing any of these GUI platforms (although I've read some about Tk), I have some questions. * Which of them use UTF-8 as their native Unicode interface? * Which makes it easiest to discover and adjust font metrics such as kerning? * Which makes it easiest to obtain bounding rectangles of a piece of text? * Which makes it easiest to use a set of fonts such as Times (for Latin) and others for Cyrillic, Chinese, and Korean? Or which supplies a font configuration that can "just be used" for any language? Glenn --------------060902010802090104000308 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 7/24/2014 11:15 AM, Chris Angelico wrote:
On Fri, Jul 25, 2014 at 4:04 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
On 24/07/2014 17:18, Chris Angelico wrote:
The first one is certainly possible. Pick any of the well-known
toolkits (Tkinter, wxwidgets, GTK, etc), and see how it feels. All of
them are portable across the three platforms you name, so see which
one is most comfortable for you to code in and produces the best
results.

s/wxwidgets/wxpython/ unless you fancy wrapping it yourself :)

Yeah that. And pygtk rather than GTK. Or I could have gone the other
way and said Tk instead of Tkinter. One way or another, I ought to
have been more consistent. Anyway. Pick a good toolkit, get to know
it, and use it. Personally, I like GTK, but that's partly because its
bindings come with Pike, and I did GUI work with Pike before I did
with Python; the same advantage, for someone starting with Python,
goes to Tk. But the main thing is, it's easy to be cross-platform -
take whatever feels good to you.

ChrisA
Not knowing any of these GUI platforms (although I've read some about Tk), I have some questions.

* Which of them use UTF-8 as their native Unicode interface?

* Which makes it easiest to discover and adjust font metrics such as kerning?

* Which makes it easiest to obtain bounding rectangles of a piece of text?

* Which makes it easiest to use a set of fonts such as Times (for Latin) and others for Cyrillic, Chinese, and Korean? Or which supplies a font configuration that can "just be used" for any language?

Glenn
--------------060902010802090104000308--