glimmer-dsl-tk 0.0.22 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/README.md +612 -46
- data/VERSION +1 -1
- data/glimmer-dsl-tk.gemspec +0 -0
- data/lib/glimmer/dsl/tk/format_expression.rb +39 -0
- data/lib/glimmer/dsl/tk/message_box_expression.rb +4 -1
- data/lib/glimmer/dsl/tk/root_expression.rb +1 -1
- data/lib/glimmer/dsl/tk/widget_expression.rb +0 -7
- data/lib/glimmer/tk/button_proxy.rb +2 -14
- data/lib/glimmer/tk/checkbutton_proxy.rb +5 -13
- data/lib/glimmer/tk/combobox_proxy.rb +34 -0
- data/lib/glimmer/tk/commandable.rb +42 -0
- data/lib/glimmer/tk/entry_proxy.rb +20 -0
- data/lib/glimmer/tk/frame_proxy.rb +9 -0
- data/lib/glimmer/tk/label_proxy.rb +8 -4
- data/lib/glimmer/tk/notebook_proxy.rb +3 -8
- data/lib/glimmer/tk/radiobutton_proxy.rb +46 -0
- data/lib/glimmer/tk/root_proxy.rb +17 -35
- data/lib/glimmer/tk/spinbox_proxy.rb +52 -0
- data/lib/glimmer/tk/text_proxy.rb +187 -0
- data/lib/glimmer/tk/text_variable_owner.rb +31 -0
- data/lib/glimmer/tk/variable_owner.rb +31 -0
- data/lib/glimmer/tk/widget_proxy.rb +167 -62
- data/lib/glimmer-dsl-tk.rb +1 -0
- data/samples/elaborate/meta_sample.rb +138 -0
- data/samples/hello/hello_checkbutton.rb +58 -17
- data/samples/hello/hello_combobox.rb +2 -1
- data/samples/hello/hello_entry.rb +104 -0
- data/samples/hello/hello_radiobutton.rb +107 -0
- data/samples/hello/hello_spinbox.rb +75 -0
- data/samples/hello/hello_text.rb +101 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23370b36e8a1902b5115b534e8d9510ff5660d9b5daa9bf31abec321976eb485
|
4
|
+
data.tar.gz: ebb5477ba30c249375d96f81747f250ea45ea14b20bc0420b373c9a36b0d79fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7249831c8104e32a6cab14341757932acb621e8de027ff6b698e6f017361959b27174b8ecd1d9a6ea3aa428a93a4392a57ceee2d7c7f08f4513eddf95129a051
|
7
|
+
data.tar.gz: 7cafb57cb7fc10656d70d101cc32e8e0e18e6636ff34ed4c2056b8f8dbc9ec428205f96643792adaf939c2fc0789974f11be4718e6f443fca74bf4c6aee6c21a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.26
|
4
|
+
|
5
|
+
- Ensure spinbox data-binding updates on text key changes (without incrementing/decrementing)
|
6
|
+
- Optimize `text=` attribute setter on `text` widget when setting a text value that includes all previous text by having it not delete and reinsert, yet append instead.
|
7
|
+
- Support font attribute for arbitrary fonts with terse syntax (`font 'times 12 bold'` not `font TkFont.new('times 12 bold')`)
|
8
|
+
- Support a quicker way of tagging (instead of the two-step process of tagging with a keyword and then configuring the keyword style) (e.g. `text.tag(5.0, 6.0, :background=>'yellow', :font=>'TkFixedFont', :relief=>'raised')`)
|
9
|
+
- Support styles (via `style` keyword or with attribute defaulting to style when not available) and ability to define and apply a style in one shot
|
10
|
+
- Support `TextProxy#toggle_format` (+ `TextProxy#add_format` & `TextProxy#remove_format`) to be able to toggle a tag format option on or off for `text` widget in one shot instead of having to apply a tag and then configure a tag format
|
11
|
+
- Hello, Text! (a word processor with a toolbar having foreground color and background color)
|
12
|
+
|
13
|
+
## 0.0.25
|
14
|
+
|
15
|
+
- Elaborate, Meta-Sample
|
16
|
+
- Hello, Spinbox!
|
17
|
+
- Support `spinbox` `command {}` and `on('increment') {}` / `on('decrement') {}`
|
18
|
+
- Support `spinbox` `format` attribute (e.g. `format '%0.2f'`
|
19
|
+
- Make `grid sticky: 'nsew', column_weight: 1` the default for all widgets (column weight is only applied to the first widget in a series of siblings)
|
20
|
+
- Support `text` widget with `text` attribute/data-binding just like `entry`
|
21
|
+
- Set `background '#ececec' if OS.mac?` on `root` by default
|
22
|
+
- Support `'modified'`/`'selected'` event bindings for `text` widget
|
23
|
+
|
24
|
+
## 0.0.24
|
25
|
+
|
26
|
+
- Hello, Entry!
|
27
|
+
- Update `entry` data-binding logic to trace 'write' changes to `entry` `textvariable` as that is more correct than monitoring `validatecommand`
|
28
|
+
- Support `entry` `validate` (alias for `validatecommand`), `invalid` (alias for `invalidcommand`), and `change` event bindings
|
29
|
+
- Support `entry` `show` and `validate` attributes
|
30
|
+
- Support `grid` options `row_weight` (for row expansion), `column_weight` (for column expansion), `row_minsize` (alias: `min_height`), and `column_minsize` (alias: `min_width`)
|
31
|
+
|
32
|
+
## 0.0.23
|
33
|
+
|
34
|
+
- Hello, Radiobutton!
|
35
|
+
- Support `radiobutton` ensuring that sibling radio buttons share the same variable to achieve mutually exclusive selection
|
36
|
+
- Improved Hello, Checkbutton! sample to demonstrate alternate checkbutton value (half-checked state)
|
37
|
+
- Support `checkbutton` with specified `onvalue` and `offvalue` (when they do not have values 1 and 0)
|
38
|
+
- Alias `root` `title` attribute as `text` & add children attribute to widgets
|
39
|
+
- Alias `notebook` `frame` `:title` as `:text`
|
40
|
+
- Alias message_box `:title` as `:text`
|
41
|
+
- Fix reference to `Glimmer::Tk::CheckbuttonProxy` (was `Glimmer::Tk::ChecktbuttonProxy`)
|
42
|
+
|
3
43
|
## 0.0.22
|
4
44
|
|
5
45
|
- Hello, Checkbutton!
|