I am helping someone build an extension which needs to select a folder. The folder contains many templates of pattern data in file form (with png thumbs). The user selects one to see that pattern interpreted in inkscape.
Currently the best I can do is: - check for Tkinter at the head - use its file browser if exists. E.g. put a try around this: try: from Tkinter import * import tkFileDialog as tkf except: tk = False else: tk = True
and later invoke tkf if tk is true.
This works in a non-inkscape scope but not inside inkscape, Tkinter is not in the internal path.
Question:
1. What's the preferred method (if any) for prompting for a folder or file in an extension ? 2. Do I have to move all of Tkinter to the extensions folder to get access to it. I want my solution to work across platforms.
Thanks for any advice you can give me.
participants (1)
-
Mark Schafer