Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term ibeam is used in this case. :param ibeam_color: color to s
(self, ibeam_color=None)
| 2179 | |
| 2180 | |
| 2181 | def set_ibeam_color(self, ibeam_color=None): |
| 2182 | """ |
| 2183 | Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by |
| 2184 | many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term |
| 2185 | ibeam is used in this case. |
| 2186 | :param ibeam_color: color to set the "I-Beam" used to indicate where characters will be inserted |
| 2187 | :type ibeam_color: (str) |
| 2188 | """ |
| 2189 | |
| 2190 | if not self._widget_was_created(): |
| 2191 | return |
| 2192 | if ibeam_color is not None: |
| 2193 | try: |
| 2194 | self.Widget.config(insertbackground=ibeam_color) |
| 2195 | except Exception as e: |
| 2196 | _error_popup_with_traceback('Error setting I-Beam color in set_ibeam_color', |
| 2197 | 'The element has a key:', self.Key, |
| 2198 | 'The color passed in was:', ibeam_color) |
| 2199 | |
| 2200 | |
| 2201 |
nothing calls this directly
no test coverage detected