Event debugger

inq1ltd <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <3177845.t0MadjfpSx@mach-123>
Vasilis,

If I understand your problem correctly, I may 
try this.

I expect that your code is in a class. 

class Kdata:
    vkey = ''  # add this under you class
               # definition

   # add lines of code
   #
   # more lines of code

   # make your binder but before the binder
     add KdataSB.vkey =
   
   like this;
   KdataSB.vkey = something.bind('<F12>',
   self.Fclose) 

   #
   # many more lines of code
   #
   # somewhere in this code  write
    
    import module file 
    from module file import KdataSB

    # write 
    print KdataSB.vkey, 'line xxx\n' 

    whenever I run my program, the above 
    print statement sends to output, this
    number, 30555847260

    # you will get something else

    you should be able to write this print  
    statement where ever you think the binder
    should exist. You should get the same
    number in each place

jimonlinux
for inqvista.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.