Hello,
I wonder what is the best way to add a TkSheet widget to an app created with PAGE. Would it be possible to add this widget to the list ?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2025-01-26
Hello Stéphane,
Unfortunately, at this time, it isn't possible for PAGE to host anything in the toolbox other than Tcl/Tk widgets, since it's written in Visual Tcl.
However, I wrote a couple of demo programs showing how to use the TkSheet widget a while ago. Don was kind enough to include them in the PAGE 8 distribution. You can find them in the /examples/custom/ folder. The tksheet_2 folder includes a sample program and a PDF of the article that I wrote for Full Circle Magazine.
It's a little out of date, so it might not work with the current version of TkSheet, since I wrote it back in 2020, but it should give you enough information to get started.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One of my wonderful unpaid and under appreciated testers caught a small bug in the support module.
You can replace the existing tksheet7_support.py file from the above zip file with the one in this zip or just replace the the entire project from the download from the github repository... https://github.com/gregwa1953/tkSheets7
Either way, you won't fall into the bug unless you press cancel when in the askopenfilename dialog.
Hello,
I wonder what is the best way to add a TkSheet widget to an app created with PAGE. Would it be possible to add this widget to the list ?
Thanks
Hello Stéphane,
Unfortunately, at this time, it isn't possible for PAGE to host anything in the toolbox other than Tcl/Tk widgets, since it's written in Visual Tcl.
However, I wrote a couple of demo programs showing how to use the TkSheet widget a while ago. Don was kind enough to include them in the PAGE 8 distribution. You can find them in the /examples/custom/ folder. The tksheet_2 folder includes a sample program and a PDF of the article that I wrote for Full Circle Magazine.
It's a little out of date, so it might not work with the current version of TkSheet, since I wrote it back in 2020, but it should give you enough information to get started.
Greg
Hello again Stéphane,
I've created a quick demo using PAGE 8 and the latest version of TkSheets.
I'm trying to attach it here. Eventually, I will get a GitHub repository set up for it.
You will need to decompress the file into a folder of your choosing.
Also, be sure to run the requirements.txt file in pip3...
pip3 install -r requirements.txt
This way, you will make sure you have all the requirements for TkSheets and Pandas.
Sincerely Greg
Stéphane and any other interested PAGE users,
I just created a GitHub repository for this project. You can find it at https://github.com/gregwa1953/tkSheets7
Sincerely,
Greg
Hello again Stéphane and others,
One of my wonderful unpaid and under appreciated testers caught a small bug in the support module.
You can replace the existing tksheet7_support.py file from the above zip file with the one in this zip or just replace the the entire project from the download from the github repository...
https://github.com/gregwa1953/tkSheets7
Either way, you won't fall into the bug unless you press cancel when in the askopenfilename dialog.
Good luck to all,
Greg