ImperialCollegeLondon / ImperialCollegeLondon/ReCoDE-PythonGUI

New Feedback for Day 1

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

#### Readme
- All good!

#### Python_GUI_day1.py

- [x] Further break down the code in functions based on the logic of what they do. For example, you could have the following functions:
- `create_data`
- `create_window1` (internally calls `create_plot`)
- `create_window2`
- `create_plot` (internally calls `create_data`)
- `create_menu`
- [x] Then, in the `if __name__ == "__main__":` section at the end, you call these in sequence:

```python
if __name__ == "__main__":
dpg.create_context()
dpg.create_viewport()
create_window1()
create_window2()
create_menu()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

- [x] Document each function with docstrings:

```python
def create_window1():
"""Create window 1

This window contains several widgets like buttons, checkboxes, texts...
as well as an static plot to illustrate the capabilities of dearpygui.

For each widget, parameter pos=[x,y] (x is the horizontal position and
y is the vertical position) can be used to set the position of the widget.
If not set, the widget will be placed automatically. In this case, the
radio button will be set below the checkbox widgets rather than side by side.
"""
# And here goes the code...
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review Python_GUI_day1.py against the completed checklist, starting with the function breakdown and the if __name__ == "__main__": section. Confirm that the listed functions and docstrings are present; the issue text marks all requested work as complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.