To: tim at fungible.com Cc: lablgtk at kaba.or.jp Subject: Re: Can't get keypresses from a GMisc.drawing_area In-Reply-To: <20020809033428.1EC147F66 at lobus.fungible.com> References: <20020809033428.1EC147F66 at lobus.fungible.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020809123807R.garrigue at kurims.kyoto-u.ac.jp> Date: Fri, 09 Aug 2002 12:38:07 +0900 From: Jacques Garrigue Lines: 14 From: tim@fungible.com (Tim Freeman) > Here's modified source code derived from the lissajous.ml lablgtk > example. I want to be able to get keypresses from a > GMisc.drawing_area. I can get expose events fine. If I use strace, I > see system call activity when I type at the window, so the X eventmask > is set right. > > Any idea how I can get the following code to print "key pressed!" when > I press a key over the window? You can only get keypress events on the toplevel window. i.e. area#misc#toplevel Jacques