Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'inserts': 0.07; 'python': 0.09; 'alan': 0.09; 'received:mail-vb0-f46.google.com': 0.09; 'gui': 0.11; 'dec': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Entry': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.17; 'unicode': 0.17; 'widget': 0.17; 'received:209.85.212.46': 0.18; 'insert': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'rest': 0.28; 'received:209.85.212': 0.28; 'character.': 0.29; 'lot.': 0.29; 'toolkit': 0.29; 'character': 0.29; 'probably': 0.29; 'function': 0.30; 'to:addr :python-list': 0.33; 'entry': 0.33; 'received:google.com': 0.34; 'whatever': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'method': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; "you'll": 0.62; '30,': 0.62; 'world': 0.63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nA/hy1cxCjoRnU5UGj3rWnVgDDVh8a3T0JprXDeAJAs=; b=avsq9ddI1OH838GH6cAyyv5ZAncUFm3rHkPi/AdbotvQT9SKaD59x3MscZYp2eFX2i eEY7D5QLlpfI1607BkHeGmaxA3IOEH3IN1DU8BwitJkCuxo07eX6/MqWquHb3aGRsN9B 1Q/TGEgCCl4TMtmsq8nrhOIdMEAQV9CJpBbBYXIxfC1QFCt3Ne96VsikjdP92kdbglCR AD7XGIPw1Bbeu5/NsLC5UdYT9BR4u3chHDZBCciPNKtairBAjzGEDXSbg0CS6+hvVi0a K1lh2ziCmpVT9RkNOJ+tLozksEy2X3N8L0BOfc5udGbXq8UNcu1leSgoQzSO799xDwge vCog== MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 30 Dec 2012 03:58:00 +1100 Subject: Re: Inserting Unicode chars in Entry widget From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356800290 news.xs4all.nl 6843 [2001:888:2000:d::a6]:49412 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35755 On Sun, Dec 30, 2012 at 3:43 AM, Alan Graham wrote: > Hello Python experts, > > I want to insert Unicode chars in an Entry widget by pushing on buttons; > one for each Unicode character I need. I have made the Unicode buttons. > I just need a simple function that will send the Unicode character to > the Entry widget. > Is there a better approach? What GUI toolkit are you using? Whatever it is, there ought to be a simple method on the Entry widget that inserts a character. Poke around with it and you'll probably find it, though you may find it under a name you don't expect. (Happens a lot. GTK calls something "sensitive" when the rest of the world calls it "enabled".) ChrisA