TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.62k stars 1.09k forks source link

(Text) function not support in CTK #2470

Open NasserMashpery opened 5 months ago

NasserMashpery commented 5 months ago

(Text) function not support in CTK but when i coding the Text in tkinter it working But in customtkinter not working and custom like (relief) and (wrap) not supprting too

(please i need your support for my prtoject its important and i want resolve for this)

i need for updating version for this and thank you .

we all want your support

Regards ;

Nasser Alsahreef Screenshot 2024-06-14 211824

Screenshot 2024-06-14 211828

please [if there any resolve for that i need it imdiatlly]

dipeshSam commented 5 months ago

Errors in your code:

  1. Typo: CTtext should be CTkTextbox.
  2. CustomTkinter does not support relief option as it has rounded corners.
  3. CTkTextbox will support wrap parameter.

Helpful link: https://customtkinter.tomschimansky.com/documentation/widgets/textbox

Regards.

NasserMashpery commented 5 months ago

i know but i want text support in custom tkinter because i built my base on my prject custom tkinter so please please plaese push update for tyhis

Almidon809B commented 5 months ago

I have a problem with the import of customtkinter on my computer that I get the CTk widgets that tell me that they are not defined import customtkinter

def button_callback(): print("button pressed")

app = customtkinter.CTk() app.title("my app") app.geometry("400x150")

button = customtkinter.CTkButton(app, text="my button", command=button_callback) button.grid(row=0, column=0, padx=20, pady=20)

app.mainloop()

terminal: PS C:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE> & C:/Users/jorge/AppData/Local/Microsoft/WindowsApps/python3.10.exe "c:/Users/jorge/OneDrive/Escritorio/invoice/fix - Copy/puebas/PERCEO_1-6_AL_PRESENTE/customtkinter.py" Traceback (most recent call last): File "c:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE\customtkinter.py", line 1, in import customtkinter File "c:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE\customtkinter.py", line 6, in app = customtkinter.CTk() AttributeError: partially initialized module 'customtkinter' has no attribute 'CTk' (most likely due to a circular import)
PS C:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE> & C:/Users/jorge/AppData/Local/Microsoft/WindowsApps/python3.10.exe "c:/Users/jorge/OneDrive/Escritorio/invoice/fix - Copy/puebas/PERCEO_1-6_AL_PRESENTE/customtkinter.py" Traceback (most recent call last): File "c:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE\customtkinter.py", line 1, in import customtkinter File "c:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE\customtkinter.py", line 6, in app = customtkinter.CTk() AttributeError: partially initialized module 'customtkinter' has no attribute 'CTk' (most likely due to a circular import)
PS C:\Users\jorge\OneDrive\Escritorio\invoice\fix - Copy\puebas\PERCEO_1-6_AL_PRESENTE>