automating python programs

Anish Chapagain anishchapagain at gmail.com
Tue Jul 22 11:59:35 CEST 2008


On Jul 21, 7:28 pm, "Dan Upton" <up... at virginia.edu> wrote:
> On Mon, Jul 21, 2008 at 2:12 PM, Zach Hobesh <hob... at gmail.com> wrote:
> > Hi,
>
> > I'm trying to figure out how to run a python program on a schedule, maybe
> > every half an hour...  Is this possible?
>
> > Thanks!
>
> > -Zach
>
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> On Linux, man cron.

Hi!!
I hope if you have written the Python code in Class and module then
you can call the execution of module
in main module using yourroot.after(millisecond,moduletobe executed)
like,
     parent_root.after(3000, child1_root.destroy)#will destroy the
child1_root module after 3second at this stage in mainmodule.
     parent_root.mainloop()

anish



More information about the Python-list mailing list