[Tkinter-discuss] Help with directories.

2005-01-10 Thread Jorge Constanzo
Hello: My problem is this: I made a program that it reads from a file. This file are in the same directory with the program. For getting this path, I've the following code: import os path_file=os.path.dirname(__file__) The command os.path.dirname(path_dir) returns the parent path of the path_di

[Tkinter-discuss] Help: How I can to disable the maxbutton of a window?

2005-01-09 Thread Jorge Constanzo
There is no more to say. I've the following code: from Tkinter import * window = Tk() window.mainloop() It's very simple, this program open a new empty window, but I need to disable the maxbutton of this window and I don't know how to do it. If somebody knows it, I will thank for much its help