Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'element': 0.07; 'tkinter': 0.07; 'string': 0.09; 'creation,': 0.09; 'occurrences': 0.09; 'principals': 0.09; 'python': 0.11; 'jan': 0.12; 'subject:GUI': 0.16; 'subject:questions': 0.16; 'tkinter.': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'example': 0.22; 'coding': 0.22; 'header:User-Agent:1': 0.23; 'text.': 0.24; 'class.': 0.26; 'skip:" 30': 0.26; 'updating': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'character': 0.29; "i'm": 0.30; '3.x': 0.31; 'are:': 0.33; 'entry': 0.36; 'method': 0.36; 'should': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'easy': 0.60; 'most': 0.60; 'subject: ': 0.61; 'making': 0.63; 'show': 0.63; 'url:index': 0.63; 'holding': 0.65; 'here': 0.66; 'header:Reply- To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'url:htm': 0.73; 'received:89': 0.85; 'navigate': 0.91 Date: Sun, 31 Mar 2013 16:33:11 +0300 From: Jan Riechers User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python GUI questions References: <4250fe44-c09c-48a8-aca2-51c1a8bc3a48@googlegroups.com> In-Reply-To: <4250fe44-c09c-48a8-aca2-51c1a8bc3a48@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: janpeterr@freenet.de 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364737881 news.xs4all.nl 6967 [2001:888:2000:d::a6]:37920 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42370 On 19.03.2013 21:01, maiden129 wrote: > Hello, > > I'm using python 3.2.3 and I'm making a program that show the of occurrences of the character in the string in Tkinter. > > My questions are: > > How can I make an empty Entry object that will hold a word that a user will enter? > > How to make an empty Entry object that will hold a single character that the user will enter? > > [..] > Hello, here is a very good documentation about Tkinter and its most likely that the same principals of coding apply to Python 3.x when it comes down to the Tkinter part: http://www.pythonware.com/library/tkinter/introduction/index.htm Also as an tip, you can make use of a StringVar object for example - those are (if Im not completely wrong) meant to hold values which you can then access from the interface. Alike a binding to any element holding text. Which should take care of the updating part if you call a proper "StringVar/yourVariableName".set method of that particular class. As for the UI creation, have a look at that documentation, its very easy to navigate inside if you know what you are looking for. Regards Jan