Sets the cursor for the current Element. "Cursor" is used in 2 different ways in this call. For the parameter "cursor" it's actually the mouse pointer. If you do not want any mouse pointer, then use the string "none" For the parameter "cursor_color" it's the
(self, cursor=None, cursor_color=None)
| 1668 | self.element_frame.pack(expand=True, fill=fill) |
| 1669 | |
| 1670 | def set_cursor(self, cursor=None, cursor_color=None): |
| 1671 | """ |
| 1672 | Sets the cursor for the current Element. |
| 1673 | "Cursor" is used in 2 different ways in this call. |
| 1674 | For the parameter "cursor" it's actually the mouse pointer. |
| 1675 | If you do not want any mouse pointer, then use the string "none" |
| 1676 | For the parameter "cursor_color" it's the color of the beam used when typing into an input element |
| 1677 | |
| 1678 | :param cursor: The tkinter cursor name |
| 1679 | :type cursor: (str) |
| 1680 | :param cursor_color: color to set the "cursor" to |
| 1681 | :type cursor_color: (str) |
| 1682 | """ |
| 1683 | if not self._widget_was_created(): |
| 1684 | return |
| 1685 | if cursor is not None: |
| 1686 | try: |
| 1687 | self.Widget.config(cursor=cursor) |
| 1688 | except Exception as e: |
| 1689 | print('Warning bad cursor specified ', cursor) |
| 1690 | print(e) |
| 1691 | if cursor_color is not None: |
| 1692 | try: |
| 1693 | self.Widget.config(insertbackground=cursor_color) |
| 1694 | except Exception as e: |
| 1695 | print('Warning bad cursor color', cursor_color) |
| 1696 | print(e) |
| 1697 | |
| 1698 | def set_vscroll_position(self, percent_from_top): |
| 1699 | """ |
nothing calls this directly
no test coverage detected