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

(Text) function not support in CTK #2470

Open
NasserMashpery opened this issue Jun 14, 2024 · 3 comments
Open

(Text) function not support in CTK #2470

NasserMashpery opened this issue Jun 14, 2024 · 3 comments

Comments

@NasserMashpery
Copy link

(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
Copy link

dipeshSam commented Jun 15, 2024

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
Copy link
Author

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
Copy link

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>

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

No branches or pull requests

3 participants