diff --git a/dearpygui/_dearpygui.pyi b/dearpygui/_dearpygui.pyi index f10ed2de2..33ac513ba 100644 --- a/dearpygui/_dearpygui.pyi +++ b/dearpygui/_dearpygui.pyi @@ -46,7 +46,7 @@ def add_checkbox(*, label: str ='', user_data: Any ='', use_internal_label: bool """Adds a checkbox.""" ... -def add_child_window(*, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', width: int ='', height: int ='', indent: int ='', parent: Union[int, str] ='', before: Union[int, str] ='', payload_type: str ='', drop_callback: Callable ='', show: bool ='', pos: Union[List[int], Tuple[int, ...]] ='', filter_key: str ='', delay_search: bool ='', tracked: bool ='', track_offset: float ='', border: bool ='', autosize_x: bool ='', autosize_y: bool ='', no_scrollbar: bool ='', horizontal_scrollbar: bool ='', menubar: bool ='') -> Union[int, str]: +def add_child_window(*, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', width: int ='', height: int ='', indent: int ='', parent: Union[int, str] ='', before: Union[int, str] ='', payload_type: str ='', drop_callback: Callable ='', show: bool ='', pos: Union[List[int], Tuple[int, ...]] ='', filter_key: str ='', delay_search: bool ='', tracked: bool ='', track_offset: float ='', border: bool ='', autosize_x: bool ='', autosize_y: bool ='', no_scrollbar: bool ='', horizontal_scrollbar: bool ='', menubar: bool ='', no_scroll_with_mouse: bool ='') -> Union[int, str]: """Adds an embedded child window. Will show scrollbars when items do not fit.""" ... @@ -194,7 +194,7 @@ def add_float_vect_value(*, label: str ='', user_data: Any ='', use_internal_lab """Adds a float vect value.""" ... -def add_font(file : str, size : int, *, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', parent: Union[int, str] ='') -> Union[int, str]: +def add_font(file : str, size : int, *, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', pixel_snapH: bool ='', parent: Union[int, str] ='') -> Union[int, str]: """Adds font to a font registry.""" ... @@ -590,7 +590,7 @@ def add_time_picker(*, label: str ='', user_data: Any ='', use_internal_label: b """Adds a time picker.""" ... -def add_tooltip(parent : Union[int, str], *, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', show: bool ='') -> Union[int, str]: +def add_tooltip(parent : Union[int, str], *, label: str ='', user_data: Any ='', use_internal_label: bool ='', tag: Union[int, str] ='', show: bool ='', delay: float ='', hide_on_activity: bool ='') -> Union[int, str]: """Adds a tooltip window.""" ... diff --git a/dearpygui/_dearpygui_RTD.py b/dearpygui/_dearpygui_RTD.py index 89cd49afc..5205096b2 100644 --- a/dearpygui/_dearpygui_RTD.py +++ b/dearpygui/_dearpygui_RTD.py @@ -1512,6 +1512,7 @@ def child_window(**kwargs): no_scrollbar (bool, optional): Disable scrollbars (window can still scroll with mouse or programmatically). horizontal_scrollbar (bool, optional): Allow horizontal scrollbar to appear (off by default). menubar (bool, optional): Shows/Hides the menubar at the top. + no_scroll_with_mouse (bool, optional): Disable user vertically scrolling with mouse wheel. id (Union[int, str], optional): (deprecated) Yields: Union[int, str] @@ -1814,6 +1815,7 @@ def font(file, size, **kwargs): user_data (Any, optional): User data for callbacks use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. + pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). parent (Union[int, str], optional): Parent to add this item to. (runtime adding) id (Union[int, str], optional): (deprecated) default_font (bool, optional): (deprecated) @@ -2507,6 +2509,8 @@ def tooltip(parent, **kwargs): use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. show (bool, optional): Attempt to render widget. + delay (float, optional): Activation delay: time, in seconds, during which the mouse should stay still in order to display the tooltip. May be zero for instant activation. + hide_on_activity (bool, optional): Hide the tooltip if the user has moved the mouse. If False, the tooltip will follow mouse pointer. id (Union[int, str], optional): (deprecated) Yields: Union[int, str] @@ -2955,6 +2959,7 @@ def add_child_window(**kwargs): no_scrollbar (bool, optional): Disable scrollbars (window can still scroll with mouse or programmatically). horizontal_scrollbar (bool, optional): Allow horizontal scrollbar to appear (off by default). menubar (bool, optional): Shows/Hides the menubar at the top. + no_scroll_with_mouse (bool, optional): Disable user vertically scrolling with mouse wheel. id (Union[int, str], optional): (deprecated) Returns: Union[int, str] @@ -3949,6 +3954,7 @@ def add_font(file, size, **kwargs): user_data (Any, optional): User data for callbacks use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. + pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). parent (Union[int, str], optional): Parent to add this item to. (runtime adding) id (Union[int, str], optional): (deprecated) default_font (bool, optional): (deprecated) @@ -6462,6 +6468,8 @@ def add_tooltip(parent, **kwargs): use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. show (bool, optional): Attempt to render widget. + delay (float, optional): Activation delay: time, in seconds, during which the mouse should stay still in order to display the tooltip. May be zero for instant activation. + hide_on_activity (bool, optional): Hide the tooltip if the user has moved the mouse. If False, the tooltip will follow mouse pointer. id (Union[int, str], optional): (deprecated) Returns: Union[int, str] diff --git a/dearpygui/dearpygui.py b/dearpygui/dearpygui.py index a04e0e049..159aeec6b 100644 --- a/dearpygui/dearpygui.py +++ b/dearpygui/dearpygui.py @@ -1455,7 +1455,6 @@ def child(**kwargs): no_scrollbar (bool, optional): Disable scrollbars (window can still scroll with mouse or programmatically). horizontal_scrollbar (bool, optional): Allow horizontal scrollbar to appear (off by default). menubar (bool, optional): Shows/Hides the menubar at the top. - no_scroll_with_mouse (bool, optional): Disable user vertically scrolling with mouse wheel. Yields: Union[int, str] """ @@ -1486,7 +1485,7 @@ def set_start_callback(callback): @contextmanager -def child_window(*, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, width: int =0, height: int =0, indent: int =-1, parent: Union[int, str] =0, before: Union[int, str] =0, payload_type: str ='$$DPG_PAYLOAD', drop_callback: Callable =None, show: bool =True, pos: Union[List[int], Tuple[int, ...]] =[], filter_key: str ='', delay_search: bool =False, tracked: bool =False, track_offset: float =0.5, border: bool =True, autosize_x: bool =False, autosize_y: bool =False, no_scrollbar: bool =False, horizontal_scrollbar: bool =False, menubar: bool =False, no_scroll_with_mouse: bool=False, **kwargs) -> Union[int, str]: +def child_window(*, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, width: int =0, height: int =0, indent: int =-1, parent: Union[int, str] =0, before: Union[int, str] =0, payload_type: str ='$$DPG_PAYLOAD', drop_callback: Callable =None, show: bool =True, pos: Union[List[int], Tuple[int, ...]] =[], filter_key: str ='', delay_search: bool =False, tracked: bool =False, track_offset: float =0.5, border: bool =True, autosize_x: bool =False, autosize_y: bool =False, no_scrollbar: bool =False, horizontal_scrollbar: bool =False, menubar: bool =False, no_scroll_with_mouse: bool =False, **kwargs) -> Union[int, str]: """ Adds an embedded child window. Will show scrollbars when items do not fit. Args: @@ -1850,17 +1849,17 @@ def filter_set(*, label: str =None, user_data: Any =None, use_internal_label: bo internal_dpg.pop_container_stack() @contextmanager -def font(file : str, size : int, *, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, parent: Union[int, str] =internal_dpg.mvReservedUUID_0, pixel_snapH: bool =False, **kwargs) -> Union[int, str]: +def font(file : str, size : int, *, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, pixel_snapH: bool =False, parent: Union[int, str] =internal_dpg.mvReservedUUID_0, **kwargs) -> Union[int, str]: """ Adds font to a font registry. Args: file (str): size (int): - pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). label (str, optional): Overrides 'name' as label. user_data (Any, optional): User data for callbacks use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. + pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). parent (Union[int, str], optional): Parent to add this item to. (runtime adding) id (Union[int, str], optional): (deprecated) default_font (bool, optional): (deprecated) @@ -1876,7 +1875,7 @@ def font(file : str, size : int, *, label: str =None, user_data: Any =None, use_ if 'default_font' in kwargs.keys(): warnings.warn('default_font keyword removed', DeprecationWarning, 2) kwargs.pop('default_font', None) - widget = internal_dpg.add_font(file, size, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, parent=parent, pixel_snapH=pixel_snapH, **kwargs) + widget = internal_dpg.add_font(file, size, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, pixel_snapH=pixel_snapH, parent=parent, **kwargs) internal_dpg.push_container_stack(widget) yield widget finally: @@ -2829,7 +2828,7 @@ def window(*, label: str =None, user_data: Any =None, use_internal_label: bool = no_open_over_existing_popup (bool, optional): Don't open if there's already a popup no_scroll_with_mouse (bool, optional): Disable user vertically scrolling with mouse wheel. on_close (Callable, optional): Callback ran when window is closed. - id (Union[int, str], optional): (deprecated) + id (Union[int, str], optional): (deprecated) Yields: Union[int, str] """ @@ -3174,7 +3173,7 @@ def add_child_window(*, label: str =None, user_data: Any =None, use_internal_lab warnings.warn('id keyword renamed to tag', DeprecationWarning, 2) tag=kwargs['id'] - return internal_dpg.add_child_window(label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, width=width, height=height, indent=indent, parent=parent, before=before, payload_type=payload_type, drop_callback=drop_callback, show=show, pos=pos, filter_key=filter_key, delay_search=delay_search, tracked=tracked, track_offset=track_offset, border=border, autosize_x=autosize_x, autosize_y=autosize_y, no_scrollbar=no_scrollbar, horizontal_scrollbar=horizontal_scrollbar, menubar=menubar, **kwargs) + return internal_dpg.add_child_window(label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, width=width, height=height, indent=indent, parent=parent, before=before, payload_type=payload_type, drop_callback=drop_callback, show=show, pos=pos, filter_key=filter_key, delay_search=delay_search, tracked=tracked, track_offset=track_offset, border=border, autosize_x=autosize_x, autosize_y=autosize_y, no_scrollbar=no_scrollbar, horizontal_scrollbar=horizontal_scrollbar, menubar=menubar, no_scroll_with_mouse=no_scroll_with_mouse, **kwargs) def add_clipper(*, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, width: int =0, indent: int =-1, parent: Union[int, str] =0, before: Union[int, str] =0, show: bool =True, delay_search: bool =False, **kwargs) -> Union[int, str]: """ Helper to manually clip large list of items. Increases performance by not searching or drawing widgets outside of the clipped region. @@ -4309,17 +4308,17 @@ def add_float_vect_value(*, label: str =None, user_data: Any =None, use_internal return internal_dpg.add_float_vect_value(label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, source=source, default_value=default_value, parent=parent, **kwargs) -def add_font(file : str, size : int, *, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, parent: Union[int, str] =internal_dpg.mvReservedUUID_0, pixel_snapH: bool =False, **kwargs) -> Union[int, str]: +def add_font(file : str, size : int, *, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, pixel_snapH: bool =False, parent: Union[int, str] =internal_dpg.mvReservedUUID_0, **kwargs) -> Union[int, str]: """ Adds font to a font registry. Args: file (str): size (int): - pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). label (str, optional): Overrides 'name' as label. user_data (Any, optional): User data for callbacks use_internal_label (bool, optional): Use generated internal label instead of user specified (appends ### uuid). tag (Union[int, str], optional): Unique id used to programmatically refer to the item.If label is unused this will be the label. + pixel_snapH (bool, optional): Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font, or rendering text piece-by-piece (e.g. for coloring). parent (Union[int, str], optional): Parent to add this item to. (runtime adding) id (Union[int, str], optional): (deprecated) default_font (bool, optional): (deprecated) @@ -4337,7 +4336,7 @@ def add_font(file : str, size : int, *, label: str =None, user_data: Any =None, kwargs.pop('default_font', None) - return internal_dpg.add_font(file, size, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, parent=parent, pixel_snapH=pixel_snapH, **kwargs) + return internal_dpg.add_font(file, size, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, pixel_snapH=pixel_snapH, parent=parent, **kwargs) def add_font_chars(chars : Union[List[int], Tuple[int, ...]], *, label: str =None, user_data: Any =None, use_internal_label: bool =True, tag: Union[int, str] =0, parent: Union[int, str] =0, **kwargs) -> Union[int, str]: """ Adds specific font characters to a font. diff --git a/setup.py b/setup.py index 7d6385457..afc654b37 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ import shutil import subprocess -wip_version = "1.9.2" +wip_version = "1.10.0" def version_number(): """This function reads the version number which is populated by github actions"""