Re: Tkinter: how; newbie




How the callback function get this two number when it has only one
argument (event)?

It has one argument, event, which is an instance of a class that has
both x and y attributes.

print "clicked at", event.x, event.y

It doesn't accept the coordinates as separate parameters because every
event binding uses that same signature, even ones for which
coordinates might not make any sense. I recommend you look over the
python tutorial: http://docs.python.org/tut/


.



Relevant Pages

  • Re: Tkinter: how; newbie
    ... Matimus wrote: ... event binding uses that same signature, ... I recommend you look over the ...
    (comp.lang.python)
  • Re: VB6 Word Automation Printing Problem Vista Op system
    ... I will certainly look at the setting you recommend for Printout method to ... Additional Hang Signature 1 8587b7f81573386cf647caf99ca5062 ... By the way, when you use the PrintOut method, do you set the Background ...
    (microsoft.public.word.vba.general)
  • Re: Signature in custom Outlook form
    ... I have the same problem as Geert, but I'm using Outlook 2002 SP3. ... following the steps you recommend does not work for me. ... I was sent an OFT template by another designer who had his signature ...
    (microsoft.public.outlook.program_forms)
  • Re: directory+Single sign-on
    ... I recommend taking a look at my book (see link in signature). ... It provides a lot of good programmer information on developing apps against AD using LDAP. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Unicode in Visual .NET 2003 and C#
    ... Unicode file will normall have a signature for little endian or big ... I recommend to always use the signature. ...
    (microsoft.public.dotnet.csharp.general)