From pythonnutter at gmail.com Wed Jun 18 04:13:22 2008 From: pythonnutter at gmail.com (Python Nutter) Date: Wed, 18 Jun 2008 12:13:22 +1000 Subject: [melbourne-pug] Python Magazine 3 Months Free Subscription Activated. Message-ID: I just receieved my email notification from Python Magazine that they have activated the free 3 month subscription so the rest of you that signed up should also be getting email notifications. If you do not, let me know and I'll forward it on to Doug. Cheers, Python Nutter From toshiboy at gmail.com Wed Jun 18 12:28:18 2008 From: toshiboy at gmail.com (ToshiBoy) Date: Wed, 18 Jun 2008 20:28:18 +1000 Subject: [melbourne-pug] Python Magazine 3 Months Free Subscription Activated. In-Reply-To: References: Message-ID: <4858E342.8010107@gmail.com> That worked perfectly well. Thank you and Doug, very much! Python Nutter wrote: > I just receieved my email notification from Python Magazine that they > have activated the free 3 month subscription so the rest of you that > signed up should also be getting email notifications. > > If you do not, let me know and I'll forward it on to Doug. > > > Cheers, > Python Nutter > _______________________________________________ > melbourne-pug mailing list > melbourne-pug at python.org > http://mail.python.org/mailman/listinfo/melbourne-pug > > From nick.mellor.groups at pobox.com Mon Jun 30 19:39:31 2008 From: nick.mellor.groups at pobox.com (Nick Mellor) Date: Mon, 30 Jun 2008 18:39:31 +0100 Subject: [melbourne-pug] Simple syntactic error? In-Reply-To: References: Message-ID: <005d01c8dad8$41415190$0200a8c0@HAMISH> Hi, Might using "keys()" be causing subtle problems if it's also a DICT method? Nick _____ From: melbourne-pug-bounces at python.org [mailto:melbourne-pug-bounces at python.org] On Behalf Of g sobers Sent: 22 May 2008 20:10 To: melbourne-pug at python.org Subject: [melbourne-pug] Simple syntactic error? G'day! Following is a small PyS60 script. The error seems related to basic syntax - "state" in keys() is not recognized although defined globally. Would appreciate assistance. ============================================= import appuifw, key_codes, e32, telephone state = None def keys(event): if event['keycode'] == key_codes.EKeyYes: appuifw.note(u"Doesn't Matter") elif (event['keycode'] == key_codes.EKeyYes) and (state == telephone.EStatusConnected): appuifw.note(u"Yes was pressed and call active") def cb_calling(args): state = args[0] def quit(): app_lock.signal() telephone.call_state(cb_calling) canvas = appuifw.Canvas(event_callback = keys) appuifw.app.body = canvas appuifw.app.exit_key_handler = quit app_lock = e32.Ao_lock() app_lock.wait() ============================================== Best, wirefree -------------- next part -------------- An HTML attachment was scrubbed... URL: