-
Like what I used to do with tkinter: But I can't do it in customtkinter text wight now. |
Beta Was this translation helpful? Give feedback.
Answered by
dipeshSam
Jun 11, 2024
Replies: 2 comments 6 replies
-
This is what I used to do with tkinter:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Use CTkTextbox. A wrapper around Tkinter's Text. Regards. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Gasiro
customtkinter
prohibits font option in Textbox widget as it considers run time scaling of the window. Scaling for different fonts in customtkinter Textbox is not handled, and if you are sure that user will not scale-up window at runtime time, then you can neglect its prohibition.What happens is that, customtkinter checks the
font
parameter intag_config
method to raise an error. So, instead of passing font parameter directly, pass it in including as configuration dictionary (an especial argument provided by Tkinter).Tkinter provides a parameter
cnf
(stands for configuration dictionary) using which programmar can pass all function arguments as dictionary object.Sample code: