Skip to content

Commit 8d1eaa7

Browse files
authored
Remove /en from links (#393)
* feat: tkinter set theme * feat: tkinter set theme * docs: update README * docs: remove /en/
1 parent cca6a26 commit 8d1eaa7

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- Any information that might be useful for review -->
99

1010
## Checklist
11-
I have read through the [contributing guidelines](https://bigtree.readthedocs.io/en/stable/home/contributing/) and ensured that
11+
I have read through the [contributing guidelines](https://bigtree.readthedocs.io/stable/home/contributing/) and ensured that
1212
- [ ] I have added a descriptive title for this pull request.
1313
- [ ] I have followed the convention and standards, and my code is checked for style and correctness.
1414
- [ ] I have added test cases, and unit tests pass with 100% code coverage.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added:
9+
- Tree Render: `render_tree` to accept theme argument.
810

911
## [0.29.2] - 2025-05-15
1012
### Added:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please read the [Contributing](https://bigtree.readthedocs.io/en/latest/contributing/) guidelines in the documentation site.
1+
Please read the [Contributing](https://bigtree.readthedocs.io/stable/home/contributing/) guidelines in the documentation site.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ Examples of extra packages include:
145145
- `matplotlib`: for plotting trees
146146
- `pandas`: for pandas methods
147147
- `polars`: for polars methods
148+
- `query` for tree query methods
149+
- `vis`: for pyvis visualisation
148150

149151
For `image` extra dependency, you may need to install more plugins.
150152

bigtree/tree/construct/render.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ def __init__(
7676
root: tk.Tk,
7777
title: str = "Tree Render",
7878
root_name: str = "Root",
79+
theme: str = "aqua",
7980
):
8081
"""Tree render using Tkinter.
8182
8283
Args:
8384
root: existing Tkinter object
8485
title: title of render for window pop-up
8586
root_name: initial root name of tree
87+
theme: theme of Tkinter object
8688
"""
8789
self.counter = 0
8890

@@ -91,6 +93,10 @@ def __init__(
9193
tree = DragDropTree(root)
9294
tree.pack(fill=tk.BOTH, expand=True)
9395

96+
# Set theme
97+
s = ttk.Style()
98+
s.theme_use(theme)
99+
94100
entry = tk.Entry(root)
95101
entry.bind("<FocusOut>", lambda e: entry.place_forget())
96102
entry.bind("<Return>", self.on_return)

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ about:
3434
license_family: MIT
3535
license_file: LICENSE
3636
summary: Tree Implementation and Methods for Python, integrated with list, dictionary, pandas and polars DataFrame.
37-
doc_url: https://bigtree.readthedocs.io/en/latest/
37+
doc_url: https://bigtree.readthedocs.io/stable/
3838

3939
extra:
4040
recipe-maintainers:

0 commit comments

Comments
 (0)