-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Float or Datetime cell creates Error #56
Comments
Hello @jamesbeerbower I have tested it and it works without any issue! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for what you are doing! Apologies in advance if I'm on drugs!
Describe the bug
Float or Datetime data causes error in drawText.
File "D:\development\common\python\test_gui\venv\lib\site-packages\tkintertable\Tables.py", line 1690, in drawText
length = len(celltxt)
TypeError: object of type 'datetime.datetime' has no len()
To Reproduce
from tkintertable import TableCanvas, TableModel
from tkinter import *
from datetime import datetime
import random
from collections import OrderedDict
data = {'rec1': {'col1': 100, 'col2': 108.79, 'label': 'rec1'},
'rec2': {'col1': datetime.now(), 'col2': 321.79, 'label': 'rec3'},
'rec3': {'col1': 29.88, 'col2': 408.79, 'label': 'rec2'}
}
#from tkintertable.Testing import sampledata
#data=sampledata()
#print(data)
class TestApp(Frame):
"""Basic test frame for the table"""
app=TestApp()
app.mainloop()
System
Operating system: Windows
Python version: 3.6
Installation method (pip, git clone): pip
The text was updated successfully, but these errors were encountered: