0

I just want a console to run. When I use this function, I don't ever want the automatic tk window to appear. How would I use this function without any gui?

*Also on a side note, what is the python code tag? (python)is it this :P?(/python)

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Shadow14l
0

Here is an example to make the tk window disappear:

import Tkinter as tk
import tkFileDialog

root = tk.Tk()
# show file dialog without Tkinter window
root.withdraw()

filename = tkFileDialog.askopenfilename()

print filename

To see the code tags around this code, temporarily click on the "REPLY W/QUOTE" button.

0

Thanks, the other time I tried the python tag, I put quotes around "python" xD

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.