Questions tagged [tktable]

Extension widget to the Tcl's Tk widget toolkit. There are wrapper libraries with the same name for Python and possibly other programming languages.

17 questions
13
votes
3 answers

Which widget do you use for a Excel like table in tkinter?

I want a Excel like table widget in tkinter for a gui I am writing. Do you have any suggestions?
IordanouGiannis
  • 4,149
  • 16
  • 65
  • 99
5
votes
2 answers

ImportError: No module named tktable

I'm trying to import tktable to create a simple table, but I'm getting the error below: File "prob.py", line 7, in import tktable ImportError: No module named tktable from tkinter import * import tktable root =…
João Victor
  • 81
  • 1
  • 1
  • 7
4
votes
1 answer

How to insert/set data in a Tkinter TkTable

I'm having trouble following the TkTable docs at how to insert predefined values into a TkTable for Tkinter GUI. Docs: https://www.eso.org/projects/vlt/sw-dev/tcl8.3.3/tktable2.7/tkTable.html I researched into this and I have been unable to find a…
Krusaderjake
  • 479
  • 1
  • 7
  • 19
3
votes
0 answers

Copy and paste data to a tktable

I'm using Tcl/Tk to build a GUI, and I would like to know if there is a way to copy and paste data from Excel to a tktable? Right now it is possible if I do column by column, but this is not useful. If there are other ways, please let me know.
user2993749
  • 55
  • 1
  • 8
3
votes
1 answer

"TclError: can't find package Tktable" when importing Tktable.py in PyCharm

I am trying to import Tktable in Python 2.7. I have put the Tktable.py file within my project folder. Last time, when I was using Canopy, it is working perfectly. After I changed to PyCharm and uninstalled Canopy, a lot of libs went wrong, I have…
fyr91
  • 1,253
  • 5
  • 17
  • 33
2
votes
0 answers

Compile a Python 2.7 program that uses tktable

I have a program which uses a tkinter GUI along with the tktable module (I use it to display the results of a SQL query). It works fine when running it as a .py file, but compiling it into a .exe results in an error with the program not being able…
thewill2live
  • 215
  • 2
  • 6
2
votes
2 answers

How do I set different column widths for each column of a tktable?

I have a table made using Python 2.7 and tktable v1.1 that looks like the following: class GUI (Tkinter.Tk): self.testTable = tktable.Table(self, rows = 30, cols = 30, state='disabled',titlecols=1,titlerows=1, \ …
thewill2live
  • 215
  • 2
  • 6
1
vote
1 answer

tktable text garbled when width of cells is too narrow

using Tktable 2.11 with tk 8.6.9 on Mojave. when I make a simple table table .t -variable var -rows 4 -cols 2 pack .t if I enter enough text that it doesn't fit, it will appear garbled, sometimes even part of the text showing up in a distant cell.…
1
vote
0 answers

Set up Python tkTable

Being very new to Phyton, I’m trying to use tktable for Python and can’t get it run on my PC. After searching a lot in the net, without finding any solution, I hope you find the time to help me a bit. I’m sure this is peanuts for you. I’m running…
MichaelS
  • 11
  • 4
1
vote
1 answer

tkinter.TclError: invalid command name "table"

Okay, first of all I don't know what is the actual problem here so I couldn't come up with a more accurate title. Maybe some of you can edit it to make it accurate The following is the minimalised code to reproduce the problem I'm having. from…
Eular
  • 1,707
  • 4
  • 26
  • 50
1
vote
0 answers

How to initially select a cell of a tktable?

I am using Python tktable (not tkintertable) for making a table with tkinter. Now my problem is: I want the cell(s) from table to be selected initially. For example, when I open the GUI, cell row=1, col=1 will be auto selected. I checked the tcl…
Eular
  • 1,707
  • 4
  • 26
  • 50
1
vote
2 answers

_tkinter.TclError: can't find package Tktable

I wanted to run this program posted here http://tkinter.unpythonic.net/wiki/TkTableCalendar, but to run this I need the tktable wrapper https://tkinter.unpythonic.net/wiki/TkTableWrapper, but the wrapper throws an error File "tktable.py", line 115,…
Eular
  • 1,707
  • 4
  • 26
  • 50
1
vote
1 answer

How to install Tktable for Python on Ubuntu?

I have downloaded the archive from here: http://sourceforge.net/projects/tktable/?source=navbar But how to install it on Ubuntu?
user3156971
  • 1,095
  • 2
  • 15
  • 17
0
votes
1 answer

Tktable package is not available in R version 4.0

I'm trying to run the fit.cont function of the rriskDistributions package over a vector of data. However, the result is: library(rriskDistributions) sales <- c(2, 4, 5, 10, 9) data <- fit.cont(sales) Error in fit.cont(sales) : Tcl package…
0
votes
1 answer

Tktable module installation problem. _tkinter.TclError: invalid command name "table"

This problem has been reported earlier but I couldn't find the exact solution for it. I installed ActiveTCL and downloaded tktable.py by "Guilherme Polo " to my site-packages, also added Tktable.dll, pkgindex.tcl, and tktable.tcl…
kckr
  • 3
  • 2
1
2