Causes the Element to expand to fill available space in the X and Y directions. Can specify which or both directions :param expand_x: If True Element will expand in the Horizontal directions :type expand_x: (bool) :param expand_y: If True Element will expand
(self, expand_x=False, expand_y=False, expand_row=True)
| 1641 | print('Warning, error hiding element row for key =', self.Key) |
| 1642 | |
| 1643 | def expand(self, expand_x=False, expand_y=False, expand_row=True): |
| 1644 | """ |
| 1645 | Causes the Element to expand to fill available space in the X and Y directions. Can specify which or both directions |
| 1646 | |
| 1647 | :param expand_x: If True Element will expand in the Horizontal directions |
| 1648 | :type expand_x: (bool) |
| 1649 | :param expand_y: If True Element will expand in the Vertical directions |
| 1650 | :type expand_y: (bool) |
| 1651 | :param expand_row: If True the row containing the element will also expand. Without this your element is "trapped" within the row |
| 1652 | :type expand_row: (bool) |
| 1653 | """ |
| 1654 | if expand_x and expand_y: |
| 1655 | fill = tk.BOTH |
| 1656 | elif expand_x: |
| 1657 | fill = tk.X |
| 1658 | elif expand_y: |
| 1659 | fill = tk.Y |
| 1660 | else: |
| 1661 | return |
| 1662 | |
| 1663 | if not self._widget_was_created(): |
| 1664 | return |
| 1665 | self.Widget.pack(expand=True, fill=fill) |
| 1666 | self.ParentRowFrame.pack(expand=expand_row, fill=fill) |
| 1667 | if self.element_frame is not None: |
| 1668 | self.element_frame.pack(expand=True, fill=fill) |
| 1669 | |
| 1670 | def set_cursor(self, cursor=None, cursor_color=None): |
| 1671 | """ |
no test coverage detected