Acts like a Stretch element found in the Qt port. Used in a Horizontal fashion. Placing one on each side of an element will enter the element. Place one to the left and the element to the right will be right justified. See VStretch for vertical type :param background_color: color
(background_color=None)
| 9674 | # ---------------------------------------------------------------------- # |
| 9675 | # This is for source code compatibility with tkinter version. No tkinter equivalent but you can fake it using a Text element that expands in the X direction |
| 9676 | def Push(background_color=None): |
| 9677 | """ |
| 9678 | Acts like a Stretch element found in the Qt port. |
| 9679 | Used in a Horizontal fashion. Placing one on each side of an element will enter the element. |
| 9680 | Place one to the left and the element to the right will be right justified. See VStretch for vertical type |
| 9681 | :param background_color: color of background may be needed because of how this is implemented |
| 9682 | :type background_color: (str) |
| 9683 | :return: (Text) |
| 9684 | """ |
| 9685 | return Text(font='_ 1', background_color=background_color, pad=(0, 0), expand_x=True) |
| 9686 | |
| 9687 | |
| 9688 | P = Push |
no test coverage detected