it is written with python and tkinterit should be portable to windowsunixand macs at the topit' used with code of this formroot tk(bwrapper binarytreewrapper(pwrapper parsetreewrapper(viewer treeviewer(bwrapperrootbuild single viewer gui add extrasinput linetest btns make wrapper objects start out in binary mode def onradio()if var get(='btree'viewer settreetype(bwrapperelif var get(='ptree'viewer settreetype(pwrapperchange viewer' wrapper figure - captures the display produced by pytree under python on windows by running its top-level treeview py file with no argumentspytree can also be started from button in the pydemos launcher we met in as usualyou can run it on your own computer to get better feel for its behavior although this screenshot captures one specific kind of treepytree is general enough to display arbitrary tree typesand can even switch them while running figure - pytree viewing binary search tree (test buttonpytreea generic tree object viewer