Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'interpreter': 0.05; 'shipped': 0.05; 'tkinter': 0.07; 'correspond': 0.09; 'defines': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tcl/tk': 0.09; 'wrapped': 0.09; 'api': 0.11; 'python': 0.11; 'gui': 0.12; 'jan': 0.12; 'language.': 0.14; 'windows': 0.15; '10:05': 0.16; 'libraries.': 0.16; 'mixture': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:GUI': 0.16; 'subject:programming': 0.16; 'tcl': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; "python's": 0.19; 'written,': 0.19; 'starts': 0.20; 'written': 0.21; 'seems': 0.21; 'separate': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'library,': 0.24; 'text.': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'am,': 0.29; 'subject:please': 0.30; 'yes.': 0.31; 'run': 0.32; 'entirely': 0.33; 'framework': 0.33; 'updated': 0.34; 'classes': 0.35; 'one,': 0.35; 'but': 0.35; 'there': 0.35; 'functions.': 0.36; 'too': 0.37; 'project': 0.37; 'button': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'improved': 0.60; 'most': 0.60; 'subject: ': 0.61; 'received:173': 0.61; 'back': 0.62; 'kind': 0.63; 'such': 0.63; 'july': 0.63; 'decided': 0.64; 'different': 0.65; 'present.': 0.74; '2011.': 0.77; '"look': 0.84; 'believe,': 0.84; 'facto': 0.84; 'received:fios.verizon.net': 0.84; 'ships': 0.84; 'url:canterbury': 0.84; 'worthwhile.': 0.84; 'subject:want': 0.91; 'url:nz': 0.93; 'subject:answer': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: GUI:-please answer want to learn GUI programming in python , how should i proceed. Date: Sat, 14 Dec 2013 16:00:55 -0500 References: <9f5d28ce-504d-40db-baa2-ff3699ab05c7@googlegroups.com> <20131214180549.59e9831a6faf098b754ea00a@gmx.net> <52ACB936.3020000@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52ACB936.3020000@gmail.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: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387054870 news.xs4all.nl 2904 [2001:888:2000:d::a6]:47457 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61918 On 12/14/2013 3:01 PM, Michael Torrie wrote: > On 12/14/2013 10:05 AM, Wolfgang Keller wrote: >> Tkinter is a bit "special" to use since it's not just a library, but >> uses some kind of RPC. It seems that "look and feel" have been greatly >> improved lately. > > I know Tkinter originated with the Tcl/Tk language. Tcl is the language. Its standard interpreter is written in C, as with Python. (I do not know if there are other Tcl implementations.) Tk is the gui framework written, I believe, in a mixture of Tcl and C. Tkinter (Tk interface) is entirely a Python to Tcl/Tk and back interface. > With Tkinter in Python is it still using Tcl/Tk under the hood? Yes. _tkinter.c defines Python-callable functions that call Tcl/Tk C api functions. tkinter.py defines Python classes and methods. The methods call _tkinter functions. Most of the classes correspond to Tk widgets such as Button and Text. > IE embeds the Tcl language interpreter into Python's interpreter? Both interpreters run in one process. > If so I've always found > it a bit strange that the de facto GUI library that's shipped with > Python ships an entirely different language with it under the hood. Tcl/Tk is only shipped with the Windows Python installer. On other systems, it is a separate install if not already present. There once (over 10 years ago) was a project to re-write Tk entirely in C. What I read it that people decided that Tk made too much use of Tcl functions to make that worthwhile. There have been starts on projects to write a gui framework based on Python and wrapped C libraries. PyGui is one, last updated July 2011. http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ -- Terry Jan Reedy