hoffstadt / hoffstadt/DearPyGui

Drag Point Thickness parameter is ignored

Open
#1,998 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui
Version: 1.8.0
Operating System: Archlinux

## My Issue/Question

Modifying the thickness parameter of add_drag_point does not change the thickness of the shown point, it stays the same size.

## To Reproduce

Steps to reproduce the behavior:

- Run the example below.
- See how all points have the same size regardless of the thickness parameter value

## Expected behavior

A drag point size should change according to the thickness parameter given.

## Screenshots/Video

![image](https://user-images.githubusercontent.com/49834966/210780039-79501143-d60a-4341-ad50-df2b0d8625b5.png)

## Standalone, minimal, complete and verifiable example

```
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Test', width=1500, height=500)

with dpg.window(label="Annotation", tag="primary"):
with dpg.plot(label="Image Plot", height=-1, width=-1, equal_aspects=True):
dpg.add_drag_point(label="green", color=[86, 226, 61, 255], default_value=[0.1, 0.1])
dpg.add_drag_point(label="red", color=[137, 21, 11, 255], default_value=[0.2, 0.1], thickness=1.0)
dpg.add_drag_point(label="blue", color=[18, 42, 229, 255], default_value=[0.3, 0.1], thickness=400.0)

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.set_primary_window("primary", True)
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.