Dynamically changing button text in python

Paul Rubin http
Sat Jan 14 16:42:09 EST 2006


marijuanated at gmail.com writes:
> for example,can we do something like this:
> 
> curButton.bind("<Button-1>",self.StopServer)
> 
> def StopServer(self,event):
>            curButton["text"] = "Start Server"

Yes.



More information about the Python-list mailing list