How to install tile (or any other tcl module)
I've been trying to get Tile to work with python. It can make your tkinter apps look like http://tktable.sourceforge.net/tile/screenshots/demo-alt-unix.png See http://tktable.sourceforge.net/tile/ Under linux I built tile from source, installed and it just works. import Tkinter root = Tkinter.Tk() root.tk.call('package', 'require', 'tile') root.tk.call('namespace', 'import', '-force', 'ttk::*') root.tk.call('tile::setTheme', 'alt') ### Widgets are now pretty! Under win32, I installed the binary package into python/tcl (i.e. python/tcl/tile0.5) with all the other tcl packages, but tcl can't find it. Any ideas? Traceback (most recent call last): File "Script1.py", line 5, in ? root.tk.call('package', 'require', 'tile') _tkinter.TclError: can't find package tile Stephen. -- http://mail.python.org/mailman/listinfo/python-list
Pruning with os.scandir?
I just saw PEP 471 announced. Mostly it looks great! One thing I found puzzling though is the lack of control of iteration. With os.walk, one can modify the dirs list inplace to avoid recursing into subtrees (As mentioned somewhere, in theory one could even add to this list though that would be a strange case). I can't see how to do this with os.scandir. I hope I am missing something? Don't make me walk the entire contents of .git, tmp and build folders please. Stephen. -- https://mail.python.org/mailman/listinfo/python-list
Re: Pruning with os.scandir?
> I think you misunderstood. scandir() is the generator-producing equivalent > of listdir() which returns a list. Neither of them recurses into > subdirectories: Ah great, that makes sense. An article I read gave the impression that os.scandir() was replacing os.walk(), not simply being used in its implementation. Thanks, Stephen. -- https://mail.python.org/mailman/listinfo/python-list