Skip to content

Commit

Permalink
Document latest text widget changes and bump version up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Oct 30, 2021
1 parent 7a1ae72 commit 8087972
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,4 +1,4 @@
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for Tk 0.0.32
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for Tk 0.0.33
## MRI Ruby Desktop Development GUI Library
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-tk.svg)](http://badge.fury.io/rb/glimmer-dsl-tk)
[![Ruby](https://github.com/AndyObtiva/glimmer-dsl-tk/actions/workflows/ruby.yml/badge.svg)](https://github.com/AndyObtiva/glimmer-dsl-tk/actions/workflows/ruby.yml)
Expand Down Expand Up @@ -158,7 +158,7 @@ gem install glimmer-dsl-tk

Add the following to `Gemfile`:
```
gem 'glimmer-dsl-tk', '~> 0.0.32'
gem 'glimmer-dsl-tk', '~> 0.0.33'
```

And, then run:
Expand Down Expand Up @@ -273,7 +273,7 @@ keyword(args) | attributes | event bindings & callbacks
`choose_directory(options = nil)` | None | None
`choose_font(options = nil) {|font| ... }` | None | None
`combobox` | `state`, `text` | `'ComboboxSelected'`
`entry` | `width`, `text`, `validate`, `show` (`'none', 'focus', 'focusin', 'focusout', 'key', or 'all'`) | `'validate'`, `'invalid'`, `'change'`, `validatecommand {}`, `invalidcommand {}`
`entry` | `width`, `text`, `validate`, `show` (`'none', 'focus', 'focusin', 'focusout', 'key', or 'all'`) | `'validate'`, `'invalid'`, `'change'` (alias: `'changed'`), `validatecommand {}`, `invalidcommand {}`
`get_multiple_open_file(options = nil)` | None | None
`get_open_file(options = nil)` | None | None
`get_save_file(options = nil)` | None | None
Expand All @@ -286,7 +286,7 @@ keyword(args) | attributes | event bindings & callbacks
`radiobutton` | `text`, `variable` (Boolean), `image` (optional keyword args: `subsample`, `zoom`, `from`, `to`, `shrink`, `compositingrule`), `compound` (`'center', 'top', 'bottom', 'left', 'right'`), `value` (default: `text`) | `command {}`
`root` | `title`, `iconphoto`, `background`, `alpha`, `fullscreen?`, `topmost?`, `transparent?`, `stackorder`, `winfo_screendepth`, `winfo_screenvisual`, `winfo_screenwidth`, `winfo_screenheight`, `winfo_pixels('li')`, `winfo_screen`, `wm_maxsize`, `state` (`'normal', 'iconic', 'withdrawn', 'icon', 'zoomed'`) | `'DELETE_WINDOW'`, `'OPEN_WINDOW'`
`separator` | `orient` (`'horizontal' (default) or 'vertical'`) | None
`text` | `value`, [many more attributes](https://tcl.tk/man/tcl8.6/TkCmd/text.htm#M116) | `'modified'`, `'selection'`
`text` | `value`, [many more attributes](https://tcl.tk/man/tcl8.6/TkCmd/text.htm#M116) | `'modified'`, `'selection'`, `'insert_mark_moved'` (alias: `'insert_mark_move', 'InsertMarkMove', 'InsertMarkMoved'`)

Options for `get_open_file` and `get_multiple_open_file` include:
- `filetypes`: `Hash` of `'Group Name' => '.ext'` entries (e.g. `filetypes: {'PNG Images' => '.png'}`
Expand Down
6 changes: 4 additions & 2 deletions TODO.md
Expand Up @@ -2,8 +2,6 @@

## Next

- Update Hello, Text! screenshot
- Document entry changed alias for change event, and text insertmarkchange/insertmarkchanged
- Fix issue with `on('KeyPress')`/`on('KeyRelease')` not firing on `text` widget arrow key presses after deleting all text and typing new text (it fires on mouse clicks and typing new text)
- When setting a `text` format without a selection in Hello, Text!, have it apply when typing
- Hello, Toplevel! (Custom Window and Custom Dialog)
Expand Down Expand Up @@ -46,6 +44,10 @@
- widget
- Support canvas (composite) shape

- Package native executable for Mac
- Package native executable for Windows
- Package native executable for Linux

## Samples

### Hello
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.0.32
0.0.33
Binary file modified glimmer-dsl-tk.gemspec
Binary file not shown.
Binary file modified images/glimmer-dsl-tk-screenshot-sample-hello-text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8087972

Please sign in to comment.