[Assorted-commits] SF.net SVN: assorted:[1149] sandbox/trunk/src/py
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-01-28 07:19:58
|
Revision: 1149 http://assorted.svn.sourceforge.net/assorted/?rev=1149&view=rev Author: yangzhang Date: 2009-01-28 07:19:46 +0000 (Wed, 28 Jan 2009) Log Message: ----------- added gtk event quirks exploration Added Paths: ----------- sandbox/trunk/src/py/gtk/ sandbox/trunk/src/py/gtk/eventquirks.py Added: sandbox/trunk/src/py/gtk/eventquirks.py =================================================================== --- sandbox/trunk/src/py/gtk/eventquirks.py (rev 0) +++ sandbox/trunk/src/py/gtk/eventquirks.py 2009-01-28 07:19:46 UTC (rev 1149) @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +""" +http://www.mail-archive.com/py...@da.../msg17197.html +""" + +from gtk import * + +e = Entry() +def handler(*args): print e.get_window().get_geometry() +#e.connect('focus-in-event', handler) +e.connect('configure-event', handler) + +h = HBox() +h.pack_start(e) +w = Window() + +w.add(h) +w.show_all() + +main() Property changes on: sandbox/trunk/src/py/gtk/eventquirks.py ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |