Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added:
- Tree Render: `render_tree` to accept theme argument.

## [0.29.2] - 2025-05-15
### Added:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ Examples of extra packages include:
- `matplotlib`: for plotting trees
- `pandas`: for pandas methods
- `polars`: for polars methods
- `query` for tree query methods
- `vis`: for pyvis visualisation

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

Expand Down
6 changes: 6 additions & 0 deletions bigtree/tree/construct/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ def __init__(
root: tk.Tk,
title: str = "Tree Render",
root_name: str = "Root",
theme: str = "aqua",
):
"""Tree render using Tkinter.

Args:
root: existing Tkinter object
title: title of render for window pop-up
root_name: initial root name of tree
theme: theme of Tkinter object
"""
self.counter = 0

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

# Set theme
s = ttk.Style()
s.theme_use(theme)

entry = tk.Entry(root)
entry.bind("<FocusOut>", lambda e: entry.place_forget())
entry.bind("<Return>", self.on_return)
Expand Down
Loading