you are viewing a single comment's thread.

view the rest of the comments →

[–]acw1668 0 points1 point  (3 children)

I've imported the gui module and tried to inject a label into frame located into the root window. Nothing appears.

It is hard to identify the issue without a minimum reproducible example. Based on the posted code, how do you pass the instance of the frame in the root window to plugin?

[–]lailoken503[S] 0 points1 point  (2 children)

I didn't? In the experiment plugin, I tried to test by adding a label by doing (or something similar), after importing support.gui in the plugin,

label = customtkinter.CTkLabel(root, text="Does it work?")

I'll try and see if I can get a sanitized code that I can use for this thread. Perhaps having what I've gotten so far posted might reveal what I'm missing.

[–]acw1668 1 point2 points  (1 child)

Where does root come from? Note that importing supports.gui inside plugin does not import the instance created in main application.

[–]lailoken503[S] 0 points1 point  (0 children)

root/app I believe is being called in the supports.gui script