@@ -9,16 +9,15 @@ Creating Items
99
1010Items are created using their *add_\*\*\* * commands.
1111
12- All items must have a unique tag which can either be specified by the keyword argument *tag *
13- or are automatically generated by DPG.
12+ All items must have a tag which can either be specified or are automatically generated by DPG.
1413
15- The * tags * can be either integers or strings and are
14+ * Tags * can be either integers or strings and are
1615used to refer to the item after it has been created.
1716
18- All items return their tag when they are created.
17+ Items return their tag when they are created.
1918
2019.. warning ::
21- Item tags shall be unique if specified using the *tag * keyword.
20+ Item tags must be unique if specified using the *tag * keyword.
2221 Integers 0-10 are reserved for DPG internal items.
2322
2423.. code-block :: python
@@ -102,7 +101,7 @@ Each of these can be accessed by their corresponding function
102101:py:func: `get_item_info <dearpygui.dearpygui.get_item_info> `
103102 keywords that reflect its information (item type, children, theme, ect)
104103
105- .. note :: configuration, state and info have been broken into
104+ .. note :: configuration, state and info are been broken into
106105 separate commands that access each individual keyword,
107106 instead of returning the entire dictionary.
108107
@@ -157,10 +156,6 @@ an item is created or at a later runtime using
157156
158157Callbacks may have up to 3 arguments in the following order.
159158
160- .. note :: Because they are optional positional arguments you
161- must use the *sender * and *app_data * if you want to use *user_data *
162- standard keyword arguments:
163-
164159sender:
165160 the *id * of the UI item that submitted the callback
166161
@@ -170,6 +165,10 @@ app_data:
170165user_data:
171166 any python object you want to send to the function
172167
168+ .. note :: Because they are optional positional arguments you
169+ must use the *sender * and *app_data * if you want to use *user_data *
170+ standard keyword arguments
171+
173172**Code: **
174173
175174.. code-block :: python
@@ -258,6 +257,7 @@ setting a callback to the items and printing their values.
258257
259258 .. image :: https://raw.githubusercontent.com/Atlamillias/DearPyGui-Stuff/main/wiki%20images/dpg_using_widgets_ex1.png
260259
260+
261261An input item's value is changed by interacting with it.
262262In the above example, moving slider_float1 slider to 30.55 sets its' value to 30.55.
263263
@@ -287,14 +287,15 @@ We can set the position of the slider by changing items' value at runtime using
287287
288288 .. image :: https://raw.githubusercontent.com/Atlamillias/DearPyGui-Stuff/main/wiki%20images/dpg_using_widgets_ex2.png
289289
290+
290291.. note ::
291292 The values' type depends on the widget. (ex.) input_int default value needs to be an integer.
292293
293294.. seealso ::
294295 For more information on item values :doc: `../documentation/item-value `
295296
296- Item Handlers
297- -------------
297+ Using Item Handlers
298+ -------------------
298299
299300UI item handlers listen for events (changes in state) related to a UI item then submit a callback.
300301
0 commit comments