Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97854
| From | Randy Day <randy.day@sasktel.netx> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: 2.7.9: PhotoImage get/put |
| Date | 2015-10-20 23:50 -0600 |
| Organization | Netfront http://www.netfront.net/ |
| Message-ID | <MPG.3090e3b0778a0d9c989687@freenews.netfront.net> (permalink) |
| References | <MPG.309076b1693d9388989686@freenews.netfront.net> <n06f0k$r6g$1@ger.gmane.org> <mailman.66.1445391898.878.python-list@python.org> |
In article <mailman.66.1445391898.878.python-list@python.org>, illusiontechniques@gmail.com says... [snip] > If you want to pass arguments to a command called when a button is > clicked, you have to use 'lambda' in tkinter. Thanks. I just skimmed over lambda before now... > You can't expect a delay to happen during the mainloop() of the > program. To interrupt the mainloop(), use: parent.after(n,someCommand) > Where 'n' is some amount of milliseconds. Just have the parent widget > or the root frame call it. When I read your post, I realized I'm doing a crude animation. After a bit of searching on 'python canvas animation', I found a reference to how it's done: I made my 'root' Tk instance global, and call root.update_idletasks() after the .put It works great! Now back to the lambdas (Ralph the Wonder Lambda, Earl J Lambda, Mike Q Lambda III, et al?). --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 16:05 -0600
Re: 2.7.9: PhotoImage get/put Emile van Sebille <emile@fenx.com> - 2015-10-20 15:25 -0700
Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 23:59 -0600
Re: 2.7.9: PhotoImage get/put C Smith <illusiontechniques@gmail.com> - 2015-10-20 18:44 -0700
Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-20 23:50 -0600
Re: 2.7.9: PhotoImage get/put Terry Reedy <tjreedy@udel.edu> - 2015-10-21 03:51 -0400
Re: 2.7.9: PhotoImage get/put Randy Day <randy.day@sasktel.netx> - 2015-10-21 09:31 -0600
csiph-web