Skip to content

Commit

Permalink
version 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisal-D committed Jan 2, 2025
1 parent 7c2d090 commit 0ca1713
Show file tree
Hide file tree
Showing 26 changed files with 656 additions and 694 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
35 changes: 35 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Changes

## New Method Added to CTkLine Object

| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------|------------------------------------------|-------------|
| `cget` | Get the value of the specified parameter | `attribute_name: str \| "__all__"` | `any` |
| `set_visible` | Change the visibility of the line | `state: bool` | `None` |
| `get_visibility` | Get the visibility of the line | - | `bool` |

<br>
<br>

## New Methods Added to CTkLineChart Object

| Method Name | Description | Parameters | Return Type |
|------------------------|------------------------------------------------|--------------------------------------------------|-------------|
| `set_lines_visibility` | Change the visibility of all the lines | `state: bool` | `None` |
| `set_line_visibility` | Change the visibility of a specific line | `line: ctkchart.CTkLine`<br>`state: bool` | `None` |
| `get_line_visibility` | Get the visibility of a specific line | `line: ctkchart.CTkLine` | `bool` |
| `cget` | Get the value of the specified parameter| `attribute_name: str \| "__all__"` | `any` |
| `place_info` | Get info about place | `attribute_name: str \| "__all__"` | `any` |
| `pack_info` | Get info about pack | `attribute_name: str \| "__all__"` | `any` |
| `grid_info` | Get info about grid | `attribute_name: str \| "__all__"` | `any` |


<br>
<br>

## Removed Methods in CTkLineChart

| Method Name | Description | Parameters | Return Type |
|-------------|----------------------|----------------------------------------------|-------------|
| hide_all | Hide all the lines | state: ``bool`` | None |
| hide | hide a specific line | line: ``ctkchart.CTkLine``<br> state: ``bool`` | None |
9 changes: 9 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Pull Request Checklist

- [ ] Have you tested your changes?
- [ ] Have you updated the documentation?
- [ ] ...

## Description

Briefly describe the changes introduced by this pull request.
166 changes: 88 additions & 78 deletions README.md

Large diffs are not rendered by default.

158 changes: 82 additions & 76 deletions README_CN.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Security Policy
14 changes: 12 additions & 2 deletions Tests/Main - Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,25 @@
x_axis_values = tuple([x for x in range(1,21)])
line_chart = ctkchart.CTkLineChart(master=root, fg_color=("#FFFFFF","#101010"), bg_color=("#ffffff","#101010"),
width=900, height=350,x_axis_section_color=("#aaaaaa","green"),y_axis_section_color=("#aaaaaa","green"),
x_axis_data="X-AXIS", y_axis_data="Y-AXIS",x_axis_data_position="side",
x_axis_data="", y_axis_data="",x_axis_data_position="side",
axis_size=1, y_axis_precision=0,
x_axis_values=x_axis_values, y_axis_values=(0, 1000),
x_axis_label_count=20, y_axis_label_count=10,
x_axis_section_count=10, y_axis_section_count=10,
y_space=10, x_space=10)
line_chart.pack()

line = ctkchart.CTkLine(master=line_chart, style="dashed", style_type=(10,5), size=1, color=("#404040", "lightblue"), fill="enabled",
line_chart2 = ctkchart.CTkLineChart(master=root, fg_color=("#FFFFFF","#101010"), bg_color=("#ffffff","#101010"),
width=900, height=350,x_axis_section_color=("#aaaaaa","green"),y_axis_section_color=("#aaaaaa","green"),
x_axis_data="", y_axis_data="",x_axis_data_position="side",
axis_size=1, y_axis_precision=0,
x_axis_values=x_axis_values, y_axis_values=(0, 1000),
x_axis_label_count=20, y_axis_label_count=10,
x_axis_section_count=10, y_axis_section_count=10,
y_space=10, x_space=10)
line_chart.pack()

line = ctkchart.CTkLine(master=line_chart2, style="dashed", style_type=(10,5), size=1, color=("#404040", "lightblue"), fill="enabled",
point_highlight="enabled", point_highlight_size=5, point_highlight_color=("#404040", "lightblue"))

def loop():
Expand Down
19 changes: 0 additions & 19 deletions examples/ex.py

This file was deleted.

22 changes: 0 additions & 22 deletions examples/ex10.py

This file was deleted.

28 changes: 0 additions & 28 deletions examples/ex11.py

This file was deleted.

31 changes: 0 additions & 31 deletions examples/ex12.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/ex13.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/ex14.py

This file was deleted.

22 changes: 0 additions & 22 deletions examples/ex2.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/ex3.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/ex4.py

This file was deleted.

26 changes: 0 additions & 26 deletions examples/ex5.py

This file was deleted.

Loading

0 comments on commit 0ca1713

Please sign in to comment.