Skip to content

Commit 65cab8b

Browse files
committed
docs
1 parent b981e31 commit 65cab8b

File tree

2 files changed

+39
-53
lines changed

2 files changed

+39
-53
lines changed

docs/DOCUMENTATION.html

Lines changed: 24 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@
303303
<li><a href="#table-functionality-and-bindings">Table Functionality and Bindings</a><ul>
304304
<li><a href="#enable-table-functionality-and-bindings">Enable table functionality and bindings</a></li>
305305
<li><a href="#disable-table-functionality-and-bindings">Disable table functionality and bindings</a></li>
306-
<li><a href="#bind-specific-table-functionality">Bind specific table functionality</a></li>
306+
<li><a href="#bind-specific-table-functionality-like-cell-edits">Bind specific table functionality like cell edits</a></li>
307307
<li><a href="#event-data">Event Data</a></li>
308-
<li><a href="#validate-user-cell-edits">Validate user cell edits</a></li>
308+
<li><a href="#bind-and-validate-user-cell-edits">Bind and validate user cell edits</a></li>
309309
<li><a href="#add-commands-to-the-in-built-right-click-popup-menu">Add commands to the in-built right click popup menu</a></li>
310310
<li><a href="#remove-commands-added-using-popup_menu_add_command-from-the-in-built-right-click-popup-menu">Remove commands added using popup_menu_add_command from the in-built right click popup menu</a></li>
311311
<li><a href="#enable-or-disable-mousewheel-left-click-etc">Enable or disable mousewheel, left click etc</a></li>
@@ -676,11 +676,8 @@
676676
<li><a href="#tksheet-goals">tksheet Goals</a></li>
677677
<li><a href="#dependencies">Dependencies</a></li>
678678
<li><a href="#license">License</a></li>
679-
<li><a href="#contributing-code">Contributing Code</a></li>
680-
<li><a href="#asking-questions">Asking Questions</a></li>
681679
<li><a href="#issues">Issues</a></li>
682-
<li><a href="#enhancements-or-suggestions">Enhancements or Suggestions</a></li>
683-
<li><a href="#contributors-and-special-thanks">Contributors and Special Thanks</a></li>
680+
<li><a href="#contributions-and-special-thanks">Contributions and Special Thanks</a></li>
684681
</ul>
685682
</li>
686683
</ul>
@@ -807,7 +804,7 @@ <h1 id="usage-examples"><strong>Usage Examples</strong></h1>
807804
# AND bind all sheet modification events to a function
808805
# chained as two functions
809806
# more information at:
810-
# #validate-user-cell-edits
807+
# #bind-and-validate-user-cell-edits
811808
self.sheet.edit_validation(self.validate_edits).bind(&quot;&lt;&lt;SheetModified&gt;&gt;&quot;, self.sheet_modified)
812809

813810
# add some new commands to the in-built right click menu
@@ -1927,11 +1924,11 @@ <h4 id="disable-table-functionality-and-bindings"><strong>Disable table function
19271924
<li>Uses the same arguments as <code>enable_bindings()</code>.</li>
19281925
</ul>
19291926
<hr />
1930-
<h4 id="bind-specific-table-functionality"><strong>Bind specific table functionality</strong></h4>
1927+
<h4 id="bind-specific-table-functionality-like-cell-edits"><strong>Bind specific table functionality like cell edits</strong></h4>
19311928
<p>This function allows you to bind <strong>very</strong> specific table functionality to your own functions:</p>
19321929
<ul>
19331930
<li>If you want less specificity in event names you can also bind all sheet modifying events to a single function, <a href="#tkinter-and-tksheet-events">see here</a>.</li>
1934-
<li>If you want to validate/modify user cell edits <a href="#validate-user-cell-edits">see here</a>.</li>
1931+
<li>If you want to validate/modify user cell edits <a href="#bind-and-validate-user-cell-edits">see here</a>.</li>
19351932
</ul>
19361933
<pre><code class="language-python">extra_bindings(
19371934
bindings: str | list | tuple,
@@ -1963,7 +1960,16 @@ <h4 id="bind-specific-table-functionality"><strong>Bind specific table functiona
19631960
<li><code>"begin_undo", "begin_ctrl_z"</code></li>
19641961
<li><code>"ctrl_z", "end_undo", "end_ctrl_z", "undo"</code></li>
19651962
</ul>
1966-
<p>Editing:</p>
1963+
<p>Editing Individual Cells:</p>
1964+
<ul>
1965+
<li><code>"begin_edit_cell", "begin_edit_table"</code></li>
1966+
<li><code>"end_edit_cell", "edit_cell", "edit_table"</code></li>
1967+
<li><code>"begin_edit_header"</code></li>
1968+
<li><code>"end_edit_header", "edit_header"</code></li>
1969+
<li><code>"begin_edit_index"</code></li>
1970+
<li><code>"end_edit_index", "edit_index"</code></li>
1971+
</ul>
1972+
<p>Editing or Copying Multiple Cells:</p>
19671973
<ul>
19681974
<li><code>"begin_copy", "begin_ctrl_c"</code></li>
19691975
<li><code>"ctrl_c", "end_copy", "end_ctrl_c", "copy"</code></li>
@@ -1973,12 +1979,6 @@ <h4 id="bind-specific-table-functionality"><strong>Bind specific table functiona
19731979
<li><code>"ctrl_v", "end_paste", "end_ctrl_v", "paste"</code></li>
19741980
<li><code>"begin_delete_key", "begin_delete"</code></li>
19751981
<li><code>"delete_key", "end_delete", "end_delete_key", "delete"</code></li>
1976-
<li><code>"begin_edit_cell", "begin_edit_table"</code></li>
1977-
<li><code>"end_edit_cell", "edit_cell", "edit_table"</code></li>
1978-
<li><code>"begin_edit_header"</code></li>
1979-
<li><code>"end_edit_header", "edit_header"</code></li>
1980-
<li><code>"begin_edit_index"</code></li>
1981-
<li><code>"end_edit_index", "edit_index"</code></li>
19821982
<li><code>"replace_all"</code></li>
19831983
</ul>
19841984
<p>Moving:</p>
@@ -2286,7 +2286,7 @@ <h4 id="event-data"><strong>Event Data</strong></h4>
22862286
<li>Key <strong><code>["widget"]</code></strong> will contain the widget which emitted the event, either the <code>MainTable()</code>, <code>ColumnHeaders()</code> or <code>RowIndex()</code> which are all <code>tk.Canvas</code> widgets.</li>
22872287
</ul>
22882288
<hr />
2289-
<h4 id="validate-user-cell-edits"><strong>Validate user cell edits</strong></h4>
2289+
<h4 id="bind-and-validate-user-cell-edits"><strong>Bind and validate user cell edits</strong></h4>
22902290
<p>With these functions you can validate or modify most user sheet edits, includes cut, paste, delete (including column/row clear), dropdown boxes and cell edits.</p>
22912291
<p><strong>Edit validation</strong></p>
22922292
<p>This function will be called for every cell edit in an action.</p>
@@ -4338,7 +4338,7 @@ <h4 id="make-all-data-rows-the-same-length"><strong>Make all data rows the same
43384338
<h1 id="sorting-the-table"><strong>Sorting the Table</strong></h1>
43394339
<p>tksheet has various built-in sorting keys and functions which can handle most python objects. Rows can be sorted by a particular column, columns can be sorted by a particular row and a selection of cell's values can be sorted row/column wise.</p>
43404340
<p>Note that the readonly functions can be used to disallow sorting of particular cell's/row's/column's values.</p>
4341-
<p>There are three built-in sorting keys to choose from but you can always create your own and use that instead. See <a href="#setting-the-default-sorting-key">here</a> for more information on how to set the default sorting key.</p>
4341+
<p>There are three built-in sorting keys to choose from but you can always create your own and use that instead. This would enable a custom sorting order of object types. See <a href="#setting-the-default-sorting-key">here</a> for more information on how to set the default sorting key.</p>
43424342
<h4 id="natural_sort_key"><strong>natural_sort_key</strong></h4>
43434343
<p>This is the <strong>default</strong> sorting key for natural sorting of various Python types:</p>
43444344
<ul>
@@ -8015,23 +8015,6 @@ <h3 id="dependencies"><strong>Dependencies</strong></h3>
80158015
<h3 id="license"><strong>License</strong></h3>
80168016
<p>tksheet is released under the MIT License. You can find the full text of the license <a href="https://github.com/ragardner/tksheet/blob/master/LICENSE.txt">here</a>.</p>
80178017
<p>By contributing to the tksheet project, you agree to license your contributions under the same MIT License. Please make sure to read and understand the terms and conditions of the license before contributing.</p>
8018-
<h3 id="contributing-code"><strong>Contributing Code</strong></h3>
8019-
<p>To contribute, please follow these steps:</p>
8020-
<ol>
8021-
<li>Fork the tksheet repository.</li>
8022-
<li>If you are working on a new feature, create a new branch for your contribution. Use a descriptive name for the branch that reflects the feature you're working on.</li>
8023-
<li>Make your changes in your local branch, following the code style and conventions established in the project.</li>
8024-
<li>Test your changes thoroughly to ensure they do not introduce any new bugs or issues.</li>
8025-
<li>Submit a pull request to the <code>main</code> branch of the tksheet repository, including a clear title and detailed description of your changes. Pull requests ideally should include a small but comprehensive demonstration of the feature you are adding.</li>
8026-
<li>Don't forget to update the documentation!</li>
8027-
</ol>
8028-
<p><strong><em>Note:</em></strong> If you're submitting a bugfix, it's generally preferred to submit it directly to the relevant branch, rather than creating a separate branch.</p>
8029-
<h3 id="asking-questions"><strong>Asking Questions</strong></h3>
8030-
<p>Got a question that hasn't been answered in the closed issues or is missing from the documentation? please follow these guidelines:</p>
8031-
<ul>
8032-
<li>Submit your question as an issue in the <a href="https://github.com/ragardner/tksheet/issues">Issues tab</a>.</li>
8033-
<li>Provide a clear and concise description of your question, including any relevant details or examples that can help us understand your query better.</li>
8034-
</ul>
80358018
<h3 id="issues"><strong>Issues</strong></h3>
80368019
<p>Please use the <a href="https://github.com/ragardner/tksheet/issues">Issues tab</a> to report any issues or ask for assistance.</p>
80378020
<p>When submitting an issue, please follow these guidelines:</p>
@@ -8041,14 +8024,14 @@ <h3 id="issues"><strong>Issues</strong></h3>
80418024
<li>If asking a question or seeking help, provide a clear and concise description of your question or issue, including any relevant details or examples that can help people understand your query better.</li>
80428025
<li>Include any relevant screenshots or gifs that can visually illustrate the issue or your question.</li>
80438026
</ul>
8044-
<h3 id="enhancements-or-suggestions"><strong>Enhancements or Suggestions</strong></h3>
8045-
<p>If you have an idea for a new feature, improvement or change, please follow these guidelines:</p>
8027+
<h3 id="contributions-and-special-thanks"><strong>Contributions and Special Thanks</strong></h3>
8028+
<p>With apologies, development of this library has ceased except for:</p>
80468029
<ul>
8047-
<li>Submit your suggestion as an issue in the <a href="https://github.com/ragardner/tksheet/issues">Issues tab</a>.</li>
8048-
<li>Include a clear and concise description of your idea, including any relevant details, screenshots, or mock-ups that can help contributors understand your suggestion better.</li>
8049-
<li>You're also welcome to become a contributor yourself and help implement your idea!</li>
8030+
<li>Bug fixes.</li>
8031+
<li>Behavioral issues.</li>
8032+
<li>Documentation.</li>
80508033
</ul>
8051-
<h3 id="contributors-and-special-thanks"><strong>Contributors and Special Thanks</strong></h3>
8034+
<p>Pull requests for anything else are unlikely to be merged.</p>
80528035
<p>A special thank you to:</p>
80538036
<ul>
80548037
<li>@CalJaDav for the very helpful ideas/pull requests, guidance in implementing them and helping me become a better developer.</li>

docs/DOCUMENTATION.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class demo(tk.Tk):
118118
# AND bind all sheet modification events to a function
119119
# chained as two functions
120120
# more information at:
121-
# #validate-user-cell-edits
121+
# #bind-and-validate-user-cell-edits
122122
self.sheet.edit_validation(self.validate_edits).bind("<<SheetModified>>", self.sheet_modified)
123123

124124
# add some new commands to the in-built right click menu
@@ -1285,12 +1285,12 @@ Notes:
12851285

12861286
___
12871287

1288-
#### **Bind specific table functionality**
1288+
#### **Bind specific table functionality like cell edits**
12891289

12901290
This function allows you to bind **very** specific table functionality to your own functions:
12911291

12921292
- If you want less specificity in event names you can also bind all sheet modifying events to a single function, [see here](#tkinter-and-tksheet-events).
1293-
- If you want to validate/modify user cell edits [see here](#validate-user-cell-edits).
1293+
- If you want to validate/modify user cell edits [see here](#bind-and-validate-user-cell-edits).
12941294

12951295
```python
12961296
extra_bindings(
@@ -1319,7 +1319,16 @@ Undo/Redo:
13191319
- `"begin_undo", "begin_ctrl_z"`
13201320
- `"ctrl_z", "end_undo", "end_ctrl_z", "undo"`
13211321

1322-
Editing:
1322+
Editing Individual Cells:
1323+
1324+
- `"begin_edit_cell", "begin_edit_table"`
1325+
- `"end_edit_cell", "edit_cell", "edit_table"`
1326+
- `"begin_edit_header"`
1327+
- `"end_edit_header", "edit_header"`
1328+
- `"begin_edit_index"`
1329+
- `"end_edit_index", "edit_index"`
1330+
1331+
Editing or Copying Multiple Cells:
13231332

13241333
- `"begin_copy", "begin_ctrl_c"`
13251334
- `"ctrl_c", "end_copy", "end_ctrl_c", "copy"`
@@ -1329,12 +1338,6 @@ Editing:
13291338
- `"ctrl_v", "end_paste", "end_ctrl_v", "paste"`
13301339
- `"begin_delete_key", "begin_delete"`
13311340
- `"delete_key", "end_delete", "end_delete_key", "delete"`
1332-
- `"begin_edit_cell", "begin_edit_table"`
1333-
- `"end_edit_cell", "edit_cell", "edit_table"`
1334-
- `"begin_edit_header"`
1335-
- `"end_edit_header", "edit_header"`
1336-
- `"begin_edit_index"`
1337-
- `"end_edit_index", "edit_index"`
13381341
- `"replace_all"`
13391342

13401343
Moving:
@@ -1593,7 +1596,7 @@ Keys:
15931596

15941597
___
15951598

1596-
#### **Validate user cell edits**
1599+
#### **Bind and validate user cell edits**
15971600

15981601
With these functions you can validate or modify most user sheet edits, includes cut, paste, delete (including column/row clear), dropdown boxes and cell edits.
15991602

@@ -3942,7 +3945,7 @@ tksheet has various built-in sorting keys and functions which can handle most py
39423945

39433946
Note that the readonly functions can be used to disallow sorting of particular cell's/row's/column's values.
39443947

3945-
There are three built-in sorting keys to choose from but you can always create your own and use that instead. See [here](#setting-the-default-sorting-key) for more information on how to set the default sorting key.
3948+
There are three built-in sorting keys to choose from but you can always create your own and use that instead. This would enable a custom sorting order of object types. See [here](#setting-the-default-sorting-key) for more information on how to set the default sorting key.
39463949

39473950
#### **natural_sort_key**
39483951

0 commit comments

Comments
 (0)