Skip to content
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

ChecklistTreeView Images do not Appear - macos 10.15.2 #56

Closed
gregorosaurus opened this issue Jan 24, 2020 · 3 comments
Closed

ChecklistTreeView Images do not Appear - macos 10.15.2 #56

gregorosaurus opened this issue Jan 24, 2020 · 3 comments
Labels

Comments

@gregorosaurus
Copy link

I'm running the example for ChecklistTreeView on macos 10.15.2, and the images for the checklist do not appear.

Python version: Python 3.7.6 - installed from homebrew
OS: macos 10.15.2
ttkwidgets version: 0.10.0

Example being run:

from ttkwidgets import *
import tkinter as tk
root = tk.Tk()
tree = CheckboxTreeview(root)
tree.pack()

tree.insert("", "end", "1", text="1")
tree.insert("1", "end", "11", text="11")
tree.insert("1", "end", "12",  text="12")
tree.insert("11", "end", "111", text="111")
tree.insert("", "end", "2", text="2")

root.mainloop()

result:
Screenshot 2020-01-23 23 20 09

If I update the images to be converted to RGB in checkboxtreeview.py, the pictures are displayed:

self.im_checked = ImageTk.PhotoImage(Image.open(IM_CHECKED).convert('RGB'), master=self)
self.im_unchecked = ImageTk.PhotoImage(Image.open(IM_UNCHECKED).convert('RGB'), master=self)
self.im_tristate = ImageTk.PhotoImage(Image.open(IM_TRISTATE).convert('RGB'), master=self)

Screenshot 2020-01-23 23 30 08

Similar issue: https://stackoverflow.com/questions/29708822/png-image-not-showing-up-when-using-tkinter-pillow-pil-in-python-2-7-under-m

@j4321
Copy link
Member

j4321 commented Feb 3, 2020

@gregorosaurus I think you may have the same problem as in #31. This issue was solved after the release of version 0.10.0 so can you try with a newer version of the module?

@RedFantom Could you put v0.11.0 on pypi? Or I can do it if you add me as a maintainer on pypi (my username is j_4321).

@RedFantom
Copy link
Member

@j4321 You are now a maintainer on PyPI. I have just uploaded v0.11.0, so it is available now, but for future releases it would indeed be a good idea to have someone else able to upload in case I forget again.

@gregorosaurus
Copy link
Author

@j4321 Thanks for that! I totally missed issue #31 . My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants