glimmer-dsl-tk 0.0.53 → 0.0.54
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +179 -11
- data/VERSION +1 -1
- data/glimmer-dsl-tk.gemspec +0 -0
- data/lib/glimmer/tk/labelframe_proxy.rb +39 -0
- data/samples/hello/hello_labelframe.rb +161 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 556b89d33cee530135e72cd6f31a79a355db86cf45bbacfd65dbf14b8184b4c3
|
4
|
+
data.tar.gz: 7c5c0750b19380e8561a16e7789273bd742d33e50294d8100cd5759b6fa2d329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c25d0b5f8a677a82adf158fa7685a4dfb1e4ea006d4fc6a134d1046c3468e3af1261f37aa66678f802a0f4b0d6b2951ea49bf89cab76db89bcedd92d8eb78cd
|
7
|
+
data.tar.gz: 4bc9c4b2dd59849206e95f85118b230735d72bfb06810fa38fb39a71d4fc3419dc4415b1d5261a465dbf07a0b4d183a673f75f24872a8f4b2ece0f362bde1ad3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<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.
|
1
|
+
# [<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.54
|
2
2
|
## MRI Ruby Desktop Development GUI Library
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-tk.svg)](http://badge.fury.io/rb/glimmer-dsl-tk)
|
4
4
|
[![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)
|
@@ -6,8 +6,6 @@
|
|
6
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/ce2853efdbecf6ebdc73/maintainability)](https://codeclimate.com/github/AndyObtiva/glimmer-dsl-tk/maintainability)
|
7
7
|
[![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
8
8
|
|
9
|
-
**[Contributors Wanted! (Submit a Glimmer App Sample to Get Started)](CONTRIBUTING.md)**
|
10
|
-
|
11
9
|
[Glimmer](https://github.com/AndyObtiva/glimmer) DSL for [Tk](https://www.tcl.tk/) enables desktop development with [Glimmer](https://github.com/AndyObtiva/glimmer) in [Ruby](https://github.com/ruby/ruby).
|
12
10
|
|
13
11
|
[Tcl/Tk](https://www.tcl.tk/) has recently improved by gaining native looking themed widgets on Mac, Windows, and Linux in [Tk version 8.5](https://www.tcl.tk/software/tcltk/8.5.html#:~:text=Highlights%20of%20Tk%208.5&text=Font%20rendering%3A%20Now%20uses%20anti,and%20window%20layout%2C%20and%20more.). Additionally, [Ruby](https://www.ruby-lang.org/en/) 3.0 Ractor (formerly known as [Guilds](https://olivierlacan.com/posts/concurrency-in-ruby-3-with-guilds/)) supports truly parallel multi-threading, making both [MRI](https://github.com/ruby/ruby) and [Tk](https://www.tcl.tk/) finally viable for support in [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library) as an alternative to [JRuby on SWT](https://github.com/AndyObtiva/glimmer-dsl-swt).
|
@@ -53,13 +51,19 @@ Glimmer app:
|
|
53
51
|
|
54
52
|
NOTE: Glimmer DSL for Tk is currently in early alpha mode (only about 44% complete). If you want it developed faster, then [open an issue report](https://github.com/AndyObtiva/glimmer-dsl-tk/issues/new). I have completed some features much faster before due to [issue reports](https://github.com/AndyObtiva/glimmer-dsl-tk/issues) and [pull requests](https://github.com/AndyObtiva/glimmer-dsl-tk/pulls). Please help make better by contributing, adopting for small or low risk projects, and providing feedback. It is still an early alpha, so the more feedback and issues you report the better.
|
55
53
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
|
54
|
+
**[Glimmer](https://rubygems.org/gems/glimmer) DSL Comparison Table:**
|
55
|
+
DSL | Platforms | Native? | Vector Graphics? | Pros | Cons | Prereqs
|
56
|
+
----|-----------|---------|------------------|------|------|--------
|
57
|
+
[Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)](https://github.com/AndyObtiva/glimmer-dsl-swt) | Mac / Windows / Linux | Yes | Yes (Canvas Shape DSL) | Very Mature / Scaffolding / Native Executable Packaging / Custom Widgets | Slow JRuby Startup Time / Heavy Memory Footprint | Java / JRuby
|
58
|
+
[Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)](https://github.com/AndyObtiva/glimmer-dsl-opal) | All Web Browsers | No | Yes (Canvas Shape DSL) | Simpler than All JavaScript Technologies / Auto-Webify Desktop Apps | Setup Process / Incomplete Alpha | Rails
|
59
|
+
[Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-libui) | Mac / Windows / Linux | Yes | Yes (Area API) | Fast Startup Time / Light Memory Footprint | LibUI is an Incomplete Mid-Alpha Only | None Other Than MRI Ruby
|
60
|
+
[Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-tk) | Mac / Windows / Linux | Some Native-Themed Widgets (Not Truly Native) | Yes (Canvas) | Fast Startup Time / Light Memory Footprint | Complicated setup / Widgets Do Not Look Truly Native, Espcially on Linux | ActiveTcl / MRI Ruby
|
61
|
+
[Glimmer DSL for GTK (Ruby-GNOME Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-gtk) | Mac / Windows / Linux | Only on Linux | Yes (Cairo) | Complete Access to GNOME Features on Linux (Forte) | Not Native on Mac and Windows | None Other Than MRI Ruby on Linux / Brew Packages on Mac / MSYS & MING Toolchains on Windows / MRI Ruby
|
62
|
+
[Glimmer DSL for FX (FOX Toolkit Ruby Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-fx) | Mac (requires XQuartz) / Windows / Linux | No | Yes (Canvas) | No Prerequisites on Windows (Forte Since Binaries Are Included Out of The Box) | Widgets Do Not Look Native / Mac Usage Obtrusively Starts XQuartz | None Other Than MRI Ruby on Windows / XQuarts on Mac / MRI Ruby
|
63
|
+
[Glimmer DSL for JFX (JRuby JavaFX Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-jfx) | Mac / Windows / Linux | No | Yes (javafx.scene.shape and javafx.scene.canvas) | Rich in Custom Widgets | Slow JRuby Startup Time / Heavy Memory Footprint / Widgets Do Not Look Native | Java / JRuby / JavaFX SDK
|
64
|
+
[Glimmer DSL for Swing (JRuby Swing Desktop Development GUI Library)](https://github.com/AndyObtiva/glimmer-dsl-swing) | Mac / Windows / Linux | No | Yes (Java2D) | Very Mature | Slow JRuby Startup Time / Heavy Memory Footprint / Widgets Do Not Look Native | Java / JRuby
|
65
|
+
[Glimmer DSL for XML (& HTML)](https://github.com/AndyObtiva/glimmer-dsl-xml) | All Web Browsers | No | Yes (SVG) | Programmable / Lighter-weight Than Actual XML | XML Elements Are Sometimes Not Well-Named (Many Types of Input) | None
|
66
|
+
[Glimmer DSL for CSS](https://github.com/AndyObtiva/glimmer-dsl-css) | All Web Browsers | No | Yes | Programmable | CSS Is Over-Engineered / Too Many Features To Learn | None
|
63
67
|
|
64
68
|
## Table of Contents
|
65
69
|
|
@@ -127,6 +131,7 @@ Other [Glimmer](https://github.com/AndyObtiva/glimmer) DSL gems you might be int
|
|
127
131
|
- [Hello, Scrollbar Frame!](#hello-scrollbar-frame)
|
128
132
|
- [Hello, Menu Bar!](#hello-menu-bar)
|
129
133
|
- [Hello, Contextual Menu!](#hello-contextual-menu)
|
134
|
+
- [Hello, Labelframe!](#hello-labelframe)
|
130
135
|
- [Applications](#applications)
|
131
136
|
- [Glimmer Tk Calculator](#glimmer-tk-calculator)
|
132
137
|
- [Y3network Ruby UI](#y3network-ruby-ui)
|
@@ -186,7 +191,7 @@ gem install glimmer-dsl-tk
|
|
186
191
|
|
187
192
|
Add the following to `Gemfile`:
|
188
193
|
```
|
189
|
-
gem 'glimmer-dsl-tk', '0.0.
|
194
|
+
gem 'glimmer-dsl-tk', '0.0.54'
|
190
195
|
```
|
191
196
|
|
192
197
|
And, then run:
|
@@ -3726,6 +3731,169 @@ Glimmer app:
|
|
3726
3731
|
|
3727
3732
|
![glimmer dsl tk screenshot sample hello contextual-menu](images/glimmer-dsl-tk-screenshot-sample-hello-contextual-menu.png)
|
3728
3733
|
|
3734
|
+
### Hello, Labelframe!
|
3735
|
+
|
3736
|
+
Glimmer code (from [samples/hello/hello_labelframe.rb](samples/hello/hello_labelframe.rb)):
|
3737
|
+
|
3738
|
+
```ruby
|
3739
|
+
require 'glimmer-dsl-tk'
|
3740
|
+
|
3741
|
+
include Glimmer
|
3742
|
+
|
3743
|
+
root {
|
3744
|
+
title 'Hello, Labelframe!'
|
3745
|
+
|
3746
|
+
labelframe {
|
3747
|
+
grid column: 0, row: 0, padx: 10, pady: 10
|
3748
|
+
text 'Name:'
|
3749
|
+
# labelanchor 'nw' # Default. Other options: 'n', 'ne', 'en', 'e', 'es', 'se', 's', 'sw', 'ws', 'w', 'wn'
|
3750
|
+
|
3751
|
+
label {
|
3752
|
+
grid column: 0, row: 0, sticky: 'w'
|
3753
|
+
text 'First Name:'
|
3754
|
+
}
|
3755
|
+
entry {
|
3756
|
+
grid column: 1, row: 0
|
3757
|
+
width 15
|
3758
|
+
}
|
3759
|
+
|
3760
|
+
label {
|
3761
|
+
grid column: 0, row: 1, sticky: 'w'
|
3762
|
+
text 'Last Name:'
|
3763
|
+
}
|
3764
|
+
entry {
|
3765
|
+
grid column: 1, row: 1
|
3766
|
+
width 15
|
3767
|
+
}
|
3768
|
+
}
|
3769
|
+
|
3770
|
+
labelframe {
|
3771
|
+
grid column: 0, row: 1, padx: 10, pady: 10
|
3772
|
+
text 'Address:'
|
3773
|
+
|
3774
|
+
label {
|
3775
|
+
grid column: 0, row: 0, sticky: 'w'
|
3776
|
+
text 'Street:'
|
3777
|
+
}
|
3778
|
+
entry {
|
3779
|
+
grid column: 1, row: 0
|
3780
|
+
width 15
|
3781
|
+
}
|
3782
|
+
|
3783
|
+
label {
|
3784
|
+
grid column: 0, row: 1, sticky: 'w'
|
3785
|
+
text 'City:'
|
3786
|
+
}
|
3787
|
+
entry {
|
3788
|
+
grid column: 1, row: 1
|
3789
|
+
width 15
|
3790
|
+
}
|
3791
|
+
|
3792
|
+
label {
|
3793
|
+
grid column: 0, row: 2, sticky: 'w'
|
3794
|
+
text 'State:'
|
3795
|
+
}
|
3796
|
+
entry {
|
3797
|
+
grid column: 1, row: 2
|
3798
|
+
width 15
|
3799
|
+
}
|
3800
|
+
|
3801
|
+
label {
|
3802
|
+
grid column: 0, row: 3, sticky: 'w'
|
3803
|
+
text 'Zip:'
|
3804
|
+
}
|
3805
|
+
entry {
|
3806
|
+
grid column: 1, row: 3
|
3807
|
+
width 15
|
3808
|
+
}
|
3809
|
+
}
|
3810
|
+
|
3811
|
+
labelframe {
|
3812
|
+
grid column: 1, row: 0, rowspan: 2, padx: 10, pady: 10
|
3813
|
+
text 'Medical Info:'
|
3814
|
+
|
3815
|
+
label {
|
3816
|
+
grid column: 0, row: 0, sticky: 'w'
|
3817
|
+
text 'Family Doctor:'
|
3818
|
+
}
|
3819
|
+
entry {
|
3820
|
+
grid column: 1, row: 0
|
3821
|
+
width 15
|
3822
|
+
}
|
3823
|
+
|
3824
|
+
label {
|
3825
|
+
grid column: 0, row: 1, sticky: 'w'
|
3826
|
+
text 'Chronic Conditions:'
|
3827
|
+
}
|
3828
|
+
entry {
|
3829
|
+
grid column: 1, row: 1
|
3830
|
+
width 15
|
3831
|
+
}
|
3832
|
+
|
3833
|
+
label {
|
3834
|
+
grid column: 0, row: 2, sticky: 'w'
|
3835
|
+
text 'Past Surgeries:'
|
3836
|
+
}
|
3837
|
+
entry {
|
3838
|
+
grid column: 1, row: 2
|
3839
|
+
width 15
|
3840
|
+
}
|
3841
|
+
|
3842
|
+
label {
|
3843
|
+
grid column: 0, row: 3, sticky: 'w'
|
3844
|
+
text 'Health Insurance Info:'
|
3845
|
+
}
|
3846
|
+
entry {
|
3847
|
+
grid column: 1, row: 3
|
3848
|
+
width 15
|
3849
|
+
}
|
3850
|
+
|
3851
|
+
label {
|
3852
|
+
grid column: 0, row: 4, sticky: 'w'
|
3853
|
+
text 'Dental Insurance Info:'
|
3854
|
+
}
|
3855
|
+
entry {
|
3856
|
+
grid column: 1, row: 4
|
3857
|
+
width 15
|
3858
|
+
}
|
3859
|
+
|
3860
|
+
label {
|
3861
|
+
grid column: 0, row: 5, sticky: 'w'
|
3862
|
+
text 'Diet:'
|
3863
|
+
}
|
3864
|
+
entry {
|
3865
|
+
grid column: 1, row: 5
|
3866
|
+
width 15
|
3867
|
+
}
|
3868
|
+
|
3869
|
+
label {
|
3870
|
+
grid column: 0, row: 6, sticky: 'w'
|
3871
|
+
text 'Exercise:'
|
3872
|
+
}
|
3873
|
+
entry {
|
3874
|
+
grid column: 1, row: 6
|
3875
|
+
width 15
|
3876
|
+
}
|
3877
|
+
}
|
3878
|
+
}.open
|
3879
|
+
```
|
3880
|
+
|
3881
|
+
Run with [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed:
|
3882
|
+
|
3883
|
+
```
|
3884
|
+
ruby -r glimmer-dsl-tk -e "require 'samples/hello/hello_labelframe'"
|
3885
|
+
```
|
3886
|
+
|
3887
|
+
Alternatively, run from cloned project without [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed:
|
3888
|
+
|
3889
|
+
```
|
3890
|
+
ruby -r ./lib/glimmer-dsl-tk.rb samples/hello/hello_labelframe.rb
|
3891
|
+
```
|
3892
|
+
|
3893
|
+
Glimmer app:
|
3894
|
+
|
3895
|
+
![glimmer dsl tk screenshot sample hello label-frame](images/glimmer-dsl-tk-screenshot-sample-hello-labelframe.png)
|
3896
|
+
|
3729
3897
|
## Applications
|
3730
3898
|
|
3731
3899
|
### Glimmer Tk Calculator
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.54
|
data/glimmer-dsl-tk.gemspec
CHANGED
Binary file
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright (c) 2020-2022 Andy Maleh
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
# a copy of this software and associated documentation files (the
|
5
|
+
# "Software"), to deal in the Software without restriction, including
|
6
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
# the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be
|
12
|
+
# included in all copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
require 'glimmer/tk/widget_proxy'
|
23
|
+
require 'glimmer/tk/notebook_proxy'
|
24
|
+
|
25
|
+
module Glimmer
|
26
|
+
module Tk
|
27
|
+
# Proxy for Tk::Tile::Labelframe
|
28
|
+
#
|
29
|
+
# Follows the Proxy Design Pattern
|
30
|
+
class LabelframeProxy < WidgetProxy
|
31
|
+
private
|
32
|
+
|
33
|
+
def initialize_defaults
|
34
|
+
super
|
35
|
+
self.padding = 15
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,161 @@
|
|
1
|
+
# Copyright (c) 2020-2022 Andy Maleh
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
# a copy of this software and associated documentation files (the
|
5
|
+
# "Software"), to deal in the Software without restriction, including
|
6
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
# the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be
|
12
|
+
# included in all copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
require 'glimmer-dsl-tk'
|
23
|
+
|
24
|
+
include Glimmer
|
25
|
+
|
26
|
+
root {
|
27
|
+
title 'Hello, Labelframe!'
|
28
|
+
|
29
|
+
labelframe {
|
30
|
+
grid column: 0, row: 0, padx: 10, pady: 10
|
31
|
+
text 'Name:'
|
32
|
+
# labelanchor 'nw' # Default. Other options: 'n', 'ne', 'en', 'e', 'es', 'se', 's', 'sw', 'ws', 'w', 'wn'
|
33
|
+
|
34
|
+
label {
|
35
|
+
grid column: 0, row: 0, sticky: 'w'
|
36
|
+
text 'First Name:'
|
37
|
+
}
|
38
|
+
entry {
|
39
|
+
grid column: 1, row: 0
|
40
|
+
width 15
|
41
|
+
}
|
42
|
+
|
43
|
+
label {
|
44
|
+
grid column: 0, row: 1, sticky: 'w'
|
45
|
+
text 'Last Name:'
|
46
|
+
}
|
47
|
+
entry {
|
48
|
+
grid column: 1, row: 1
|
49
|
+
width 15
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
labelframe {
|
54
|
+
grid column: 0, row: 1, padx: 10, pady: 10
|
55
|
+
text 'Address:'
|
56
|
+
|
57
|
+
label {
|
58
|
+
grid column: 0, row: 0, sticky: 'w'
|
59
|
+
text 'Street:'
|
60
|
+
}
|
61
|
+
entry {
|
62
|
+
grid column: 1, row: 0
|
63
|
+
width 15
|
64
|
+
}
|
65
|
+
|
66
|
+
label {
|
67
|
+
grid column: 0, row: 1, sticky: 'w'
|
68
|
+
text 'City:'
|
69
|
+
}
|
70
|
+
entry {
|
71
|
+
grid column: 1, row: 1
|
72
|
+
width 15
|
73
|
+
}
|
74
|
+
|
75
|
+
label {
|
76
|
+
grid column: 0, row: 2, sticky: 'w'
|
77
|
+
text 'State:'
|
78
|
+
}
|
79
|
+
entry {
|
80
|
+
grid column: 1, row: 2
|
81
|
+
width 15
|
82
|
+
}
|
83
|
+
|
84
|
+
label {
|
85
|
+
grid column: 0, row: 3, sticky: 'w'
|
86
|
+
text 'Zip:'
|
87
|
+
}
|
88
|
+
entry {
|
89
|
+
grid column: 1, row: 3
|
90
|
+
width 15
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
labelframe {
|
95
|
+
grid column: 1, row: 0, rowspan: 2, padx: 10, pady: 10
|
96
|
+
text 'Medical Info:'
|
97
|
+
|
98
|
+
label {
|
99
|
+
grid column: 0, row: 0, sticky: 'w'
|
100
|
+
text 'Family Doctor:'
|
101
|
+
}
|
102
|
+
entry {
|
103
|
+
grid column: 1, row: 0
|
104
|
+
width 15
|
105
|
+
}
|
106
|
+
|
107
|
+
label {
|
108
|
+
grid column: 0, row: 1, sticky: 'w'
|
109
|
+
text 'Chronic Conditions:'
|
110
|
+
}
|
111
|
+
entry {
|
112
|
+
grid column: 1, row: 1
|
113
|
+
width 15
|
114
|
+
}
|
115
|
+
|
116
|
+
label {
|
117
|
+
grid column: 0, row: 2, sticky: 'w'
|
118
|
+
text 'Past Surgeries:'
|
119
|
+
}
|
120
|
+
entry {
|
121
|
+
grid column: 1, row: 2
|
122
|
+
width 15
|
123
|
+
}
|
124
|
+
|
125
|
+
label {
|
126
|
+
grid column: 0, row: 3, sticky: 'w'
|
127
|
+
text 'Health Insurance Info:'
|
128
|
+
}
|
129
|
+
entry {
|
130
|
+
grid column: 1, row: 3
|
131
|
+
width 15
|
132
|
+
}
|
133
|
+
|
134
|
+
label {
|
135
|
+
grid column: 0, row: 4, sticky: 'w'
|
136
|
+
text 'Dental Insurance Info:'
|
137
|
+
}
|
138
|
+
entry {
|
139
|
+
grid column: 1, row: 4
|
140
|
+
width 15
|
141
|
+
}
|
142
|
+
|
143
|
+
label {
|
144
|
+
grid column: 0, row: 5, sticky: 'w'
|
145
|
+
text 'Diet:'
|
146
|
+
}
|
147
|
+
entry {
|
148
|
+
grid column: 1, row: 5
|
149
|
+
width 15
|
150
|
+
}
|
151
|
+
|
152
|
+
label {
|
153
|
+
grid column: 0, row: 6, sticky: 'w'
|
154
|
+
text 'Exercise:'
|
155
|
+
}
|
156
|
+
entry {
|
157
|
+
grid column: 1, row: 6
|
158
|
+
width 15
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}.open
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-tk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glimmer
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- lib/glimmer/tk/entry_proxy.rb
|
214
214
|
- lib/glimmer/tk/frame_proxy.rb
|
215
215
|
- lib/glimmer/tk/label_proxy.rb
|
216
|
+
- lib/glimmer/tk/labelframe_proxy.rb
|
216
217
|
- lib/glimmer/tk/lbl_proxy.rb
|
217
218
|
- lib/glimmer/tk/list_proxy.rb
|
218
219
|
- lib/glimmer/tk/menu_item_proxy.rb
|
@@ -242,6 +243,7 @@ files:
|
|
242
243
|
- samples/hello/hello_entry.rb
|
243
244
|
- samples/hello/hello_frame.rb
|
244
245
|
- samples/hello/hello_label.rb
|
246
|
+
- samples/hello/hello_labelframe.rb
|
245
247
|
- samples/hello/hello_list_multi_selection.rb
|
246
248
|
- samples/hello/hello_list_single_selection.rb
|
247
249
|
- samples/hello/hello_menu_bar.rb
|