How to change ttk.Entry insertion cursor color?

后端 未结 1 1355
感动是毒
感动是毒 2021-01-22 14:09

I am developing an application using Python3 and tkinter 8.6. Part of is a rather complex dialog which uses a dark background. The enclosed code employs only a few widgets to sh

相关标签:
1条回答
  • 2021-01-22 14:49

    The option for a ttk Entry widget is insertcolor.

    ...
    'TEntry': {
        'configure': {..., 'insertcolor': ebg},
    ...
    

    Here is a handy reference of all of the options for ttk widgets. It's on the tcler's wiki so the syntax is tcl rather than python, but the option names themselves are the same between languages.

    Changing Widget Colors

    0 讨论(0)
提交回复
热议问题