Skip to content

Conversation

@mukeshdhadhariya
Copy link
Contributor

This PR resolves issue #22

  1. CTkLabel Image Warning

    • Problem: Passing PIL.ImageTk.PhotoImage to CTkLabel triggers a warning:
      "Given image is not CTkImage but <class 'PIL.ImageTk.PhotoImage'>."
    • Cause: CTkLabel expects a CTkImage for proper rendering and high-DPI support.
    • Fix: Replaced ImageTk.PhotoImage with customtkinter.CTkImage, ensuring proper scaling and eliminating the warning.
  2. TclError for CTkEntry State

    • Problem: Accessing entry state via receiver_entry['state'] raises _tkinter.TclError: unknown option "-state".
    • Cause: CTkEntry does not support dictionary-style access for widget options like normal Tkinter widgets.
    • Fix: Replaced receiver_entry['state'] with receiver_entry.cget("state") for reading and receiver_entry.configure(state="...") for writing. This aligns with CustomTkinter's API and prevents runtime errors.

@mukeshdhadhariya
Copy link
Contributor Author

@AdityaKumar5155 sir review

@AdityaKumar5155 AdityaKumar5155 added the Type:Easy Pr is accepted with difficulty level as easy label Oct 17, 2025
@AdityaKumar5155 AdityaKumar5155 added Semver:patch Pr will only force a patch update which includes bug fixes Issue:bug the following issue is created to report a bug PR:Accept Pr has been accepted and is merged labels Oct 17, 2025
@AdityaKumar5155 AdityaKumar5155 merged commit 3fd5947 into OPCODE-Open-Spring-Fest:main Oct 17, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue:bug the following issue is created to report a bug PR:Accept Pr has been accepted and is merged Semver:patch Pr will only force a patch update which includes bug fixes Type:Easy Pr is accepted with difficulty level as easy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants