atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.61k stars 349 forks source link

Bug when integrating with tkinter #429

Closed CRademacher closed 4 years ago

CRademacher commented 4 years ago

I'm not sure if this is the right place to come with this issue, but I think it makes sense.

I've been playing around with camelot as a tool for extracting data from PDFs, and to improve the accuracy I wrote some code that automatically reads a PDF and pulls up matplotlib graphs so you can select the areas where tables lie. A loop structure takes you through the whole document, and the code works perfectly in isolation. However, to handle this code I'm developing a GUI in tkinter, but when this GUI uses this code, the loop structure only goes through the first iteration. The other iterations follow after the GUI is closed, but not after the graphs are closed. I suspect this is an issue with both pieces of code being built with tkinter, but I have no idea how to resolve it.

Any help would be appreciated. If this is not the right place to post this then some direction would be appreciated.

vinayak-mehta commented 4 years ago

I think a better place for this question would be StackOverflow with the tkinter tag. You can also try using https://github.com/camelot-dev/excalibur as a GUI to Camelot.

CRademacher commented 4 years ago

Got it. Thank you.