Placing Toplevel over the parent ?

2005-04-05 Thread Pete Moscatt
When calling a dialog box using the Toplevel widget, how do I place it over the calling parent ? Currently when I call the dialog it appears to the side of the calling parent. Pete -- http://mail.python.org/mailman/listinfo/python-list

Testing for EOF ?

2005-04-04 Thread Pete Moscatt
I am reasonably new to python and am trying to read several lines of text from an open file. Typically in other languages I used to use code like: while not EOF() read_text_in ... How is this achieved with python ? Regards Pete -- http://mail.python.org/mailman/listinfo/python-list

Makeing TopLevel Modal ?

2005-04-03 Thread Pete Moscatt
Hi all, I want to make a dialog (using Tk Toplevel) but need it to be modal. Is this possible using Tk ? Show below is an example how I am calling the custom dialog: class main: def __init__(self,parent): top = self.top = Toplevel(parent)