You are not logged in.
Pages: 1
Hi all,
I have been working on coding a GUI using Python2 and Tkinter. I am trying to use a multi column listbox so I downloaded and installed the TkTreeCtrl package from AUR. Upon installing it however I cannot seem to import the module. I tried to use the following:
Import TkTreeCtrl
Import TktreeCtrl
Import Tktreectrl
Import tktreectrl
but none of them worked.
I have also noticed the AUR install did not put the module where the other Tk widgets are (/usr/lib/python2.7/lib-tk/). To install the package all I did was download the tarball from the AUR page (https://aur.archlinux.org/packages/tktreectrl/), use the PKGBUILD script suggested there, run makepkg and then installed the complied package using pacman. There were no error reported and the package is installed in /usr/lib/treectrl2.4/.
Has anyone here used the TreeCtrl widget in a python code on Arch LInux? If you have and could share how you imported it into your python code I'd much appreciate it.
Thanks!
Last edited by arusnak21 (2013-05-27 12:17:04)
Offline
Solved it. Needed to install the Tkinter wrapper. The AUR package is just the TCL part of the widget. There is a AUR Tkinter package but it doesnt' work. The URL in the PKGBUILD file is incorrect. I downloaded the Tkinter wrapper from the following site and installed it based on the readme. Then the issue was resolved and I could import the widget using the following command:
from TkTreectrl import *
Offline
Pages: 1