[Tutor] replacement for .mainloop() in Tk

Kent Johnson kent37 at tds.net
Mon Sep 3 12:31:35 CEST 2007


Trey Keown wrote:
> Okay, I'm making a program that turns xml code into python code.
> 
> And here would be the corresponding output (well, what I've got so far...)
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> from Tkinter import *
> import tkFileDialog
> #<<<<<Main stuff>>>>>#
> self = Tk()
> self.title("Example Window Title")
> self.iconbitmap("e.ico")
> #<<<<<Get to work on button function!!!>>>>>#
> #<<<<<End window self>>>>>#
> #<<<<<End section>>>>>#
> #<<<<<End program>>>>>#
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Now, as you probably see, there isn't a "self.mainloop()" function in the
> output. 

Why not just out put the mainloop() before <<End program>> ?

You might be interested in
http://www.bitflipper.ca/rapyd/
though it seems to store its data in pickles, not xml.

Kent


More information about the Tutor mailing list