Defining new functions at runtime

Boudewijn Rempt boud at valdyas.org
Wed May 1 11:56:11 EDT 2002


Chandan Shanbhag wrote:

>     I am writing a GUI interface to a database using tkinter. Now, I want
>     to
> provide a facility where a user can define python functions using the GUI
> and then run them in the same runtime environment. so, a normal function
> needs to be treated like a method object.
>    Is this possible? Can I treat functions as first class objects? Can
> somebody please guide me as to how I could accomplish this?
> 

It doesn't use Tkinter, but I've tried to explain one way
of doing this in:

   http://www.opendocspublishing.com/pyqt/index.lxp?lxpwrap=c6996%2ehtm

-- 
Boudewijn Rempt | http://www.valdyas.org



More information about the Python-list mailing list