You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding the example presented in Simple Guide. I got only to the part where the plot is created (before adding the line), and if I run that I get the exception "Line Chart theme configure failed : 'CTkLineChart' object has no attribute '_CTkLineChart__y_axis_frame'".
Additional context
I am not running this at the moment my app starts, this is trigger after I go through a few screens and open a TopLevel. I mention this in case the fact that the app is running for a bit (a couple of seconds) before I call CTkLineChart is meaningful in any way.
Note
The exception doesn't occur when I launch the app, it happens once it passes by the code block I showed in the "To Reproduce" section
The text was updated successfully, but these errors were encountered:
Thank you for taking the time to report this issue and for providing detailed feedback. I appreciate your effort in investigating the code and suggesting a potential fix. Feedback like yours helps improve the project significantly.
I fixed the issue using your ideas (calling the theme manager after creating the chart object). The updated version is now available; please update to the latest release and let me know if you encounter any further issues.
Thank you once again for contributing to the project and helping make it better
I tried adding the example presented in Simple Guide. I got only to the part where the plot is created (before adding the line), and if I run that I get the exception "Line Chart theme configure failed : 'CTkLineChart' object has no attribute '_CTkLineChart__y_axis_frame'".
Going through the code, I see that the ThemeManager is being called to run before the widgets are created.
If I simply move the block
to after
self.__create_widgets()
I don't get the exception anymore.I haven't dug deep enough to see if this has any other undesired effects.
To Reproduce
Steps to reproduce the behavior:
Additional context
I am not running this at the moment my app starts, this is trigger after I go through a few screens and open a TopLevel. I mention this in case the fact that the app is running for a bit (a couple of seconds) before I call
CTkLineChart
is meaningful in any way.Note
The exception doesn't occur when I launch the app, it happens once it passes by the code block I showed in the "To Reproduce" section
The text was updated successfully, but these errors were encountered: