:param button_text: text in the button (Default value = 'Ok') :type button_text: (str) :param size: (w,h) w=characters-wide, h=rows-high :type size: (int, int) :param s: Same as size parameter. It's an alias. If EITHER of them
(button_text='Ok', size=(None, None), s=(None, None), auto_size_button=None, button_color=None, disabled=False,
bind_return_key=True, tooltip=None, font=None, focus=False, pad=None, p=None, key=None, k=None, visible=True, metadata=None, expand_x=False, expand_y=False)
| 13877 | |
| 13878 | # ------------------------- YES BUTTON Element lazy function ------------------------- # |
| 13879 | def Ok(button_text='Ok', size=(None, None), s=(None, None), auto_size_button=None, button_color=None, disabled=False, |
| 13880 | bind_return_key=True, tooltip=None, font=None, focus=False, pad=None, p=None, key=None, k=None, visible=True, metadata=None, expand_x=False, expand_y=False): |
| 13881 | """ |
| 13882 | |
| 13883 | :param button_text: text in the button (Default value = 'Ok') |
| 13884 | :type button_text: (str) |
| 13885 | :param size: (w,h) w=characters-wide, h=rows-high |
| 13886 | :type size: (int, int) |
| 13887 | :param s: Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used |
| 13888 | :type s: (int, int) | (None, None) | int |
| 13889 | :param auto_size_button: True if button size is determined by button text |
| 13890 | :type auto_size_button: (bool) |
| 13891 | :param button_color: button color (foreground, background) |
| 13892 | :type button_color: (str, str) | str |
| 13893 | :param disabled: set disable state for element (Default = False) |
| 13894 | :type disabled: (bool) |
| 13895 | :param bind_return_key: (Default = True) If True, this button will appear to be clicked when return key is pressed in other elements such as Input and elements with return key options |
| 13896 | :type bind_return_key: (bool) |
| 13897 | :param tooltip: text, that will appear when mouse hovers over the element |
| 13898 | :type tooltip: (str) |
| 13899 | :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| 13900 | :type font: (str or (str, int[, str]) or None) |
| 13901 | :param focus: if focus should be set to this |
| 13902 | :type focus: idk_yetReally |
| 13903 | :param pad: Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) |
| 13904 | :type pad: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int |
| 13905 | :param p: Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used |
| 13906 | :type p: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int |
| 13907 | :param key: key for uniquely identify this element (for window.find_element) |
| 13908 | :type key: str | int | tuple | object |
| 13909 | :param k: Same as the Key. You can use either k or key. Which ever is set will be used. |
| 13910 | :type k: str | int | tuple | object |
| 13911 | :param visible: set initial visibility state of the Button |
| 13912 | :type visible: (bool) |
| 13913 | :param metadata: Anything you want to store along with this button |
| 13914 | :type metadata: (Any) |
| 13915 | :param expand_x: If True Element will expand in the Horizontal directions |
| 13916 | :type expand_x: (bool) |
| 13917 | :param expand_y: If True Element will expand in the Vertical directions |
| 13918 | :type expand_y: (bool) |
| 13919 | :return: returns a button |
| 13920 | :rtype: (Button) |
| 13921 | """ |
| 13922 | return Button(button_text=button_text, button_type=BUTTON_TYPE_READ_FORM, tooltip=tooltip, size=size, s=s, |
| 13923 | auto_size_button=auto_size_button, button_color=button_color, font=font, disabled=disabled, |
| 13924 | bind_return_key=bind_return_key, focus=focus, pad=pad, p=p, key=key, k=k, visible=visible, metadata=metadata, expand_x=expand_x, expand_y=expand_y) |
| 13925 | |
| 13926 | |
| 13927 | # ------------------------- CANCEL BUTTON Element lazy function ------------------------- # |
no test coverage detected