A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/078033.html below:

newbie: callback functions

newbie: callback functions newbie: callback functionsFredrik Lundh fredrik at pythonware.com
Tue Apr 17 15:42:22 EDT 2001
"koenig at v-i-t.de" wrote:
> i meant something like this
>
>  Button( dlgframe, text="OK", relief=GROOVE, command=load )
>
> i want to pass "load" pass a eg. filename, so that "load" knows what to load.
> how is this possible?

    def mycb():
        load("filename")

    Button( dlgframe, text="OK", relief=GROOVE, command=mycb )

Cheers /F



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4