[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUe] Help with firing an event from a button

From: chafar
Subject: [GNUe] Help with firing an event from a button
Date: Thu, 25 Mar 2004 03:10:54 +0100
User-agent: Mutt/1.3.28i


I'm trying making JUMPROWSUP from a button click. The pretended final
code is commented out; debugging code, not.


print "--- --- ---"
if self.findParentOfType('GFForm') != None:
   print "GFInstance found"
if self.findParentOfType('GFLayout') != None:
   print "GFLaout found"
if self.findParentOfType('GFPage') != None:
   print "GFPage found"
print "--- --- ---"

## Perform list page up
# form =  self.findParentOfType('GFForm')
# if form != None:
#   form.dispatchEvent('JUMPROWSUP');

First Question. Is this a good approach ?

Second: Why can't I find the form object with findParentOfType()? should
I walk up myself thru the tree to find it?

Thanks in advance.
Jos? Esteban
Granada - Spain

reply via email to

[Prev in Thread] Current Thread [Next in Thread]