enthought / enthought/traitsui

Non-cryptic way to add spacing in a View or Group

Open
#2,062 0 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Some of our project code has views that resemble this:

```python
View(
VGroup(
Heading("Some heading"),
HGroup(
"15",
Item("my_interesting_trait"),
"15",
Item("my_other_interesting_trait"),
),
),
)
```

Those `"15"`s are cryptic, and hard to do a doc search for. The meaning is documented under the `Item` docstring in the API docs, but you still have to do some guessing or code diving to even think to look at the `Item` docs.

It would be nice to have a non-cryptic alternative to these, e.g., something like `Spacer(15)` or `Padding(15)`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.