hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
13.31k stars 691 forks source link

Plot window is always on top even though it is created within a node window. #2271

Open EssenOH opened 9 months ago

EssenOH commented 9 months ago

image

It follows the typical example call sequence to set up a node with the plot. the plot is placed on the right place, but it is not grouped with the dedicated node and then if the other node is overwrapped to the plot node, the other node is fit behind the plot... seems, the plot is always on top.

    with dpg.node(tag=self._tag,
                  parent=editorHandle.tag,
                  label=self.nodeLabel,
                  pos=pos):
        with dpg.node_attribute(tag=self._attrImageInput.tag,
                                attribute_type=dpg.mvNode_Attr_Input,
                                shape=dpg.mvNode_PinShape_CircleFilled):
            # dpg.add_image(tag=self._previewImageTag, texture_tag=self._previewTextureTag)

            with dpg.plot(
                    width=self._currentWidth,
                    height=self._currentHeight,
                    tag=self._valueNameTag,
                    no_menus=True,
                ):

                dpg.add_plot_legend(horizontal=True,
                                    location=dpg.mvPlot_Location_NorthEast)
                dpg.add_plot_axis(
                    dpg.mvXAxis,
                    tag=self._valueNameTag + 'xaxis',
                )
                dpg.set_axis_limits(dpg.last_item(), 0, 256)