pruebaa 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3469504fdcf1d55b04b615c979262477573b6ade
4
- data.tar.gz: 7ded61872203e82494752a4bdbda1cca8e348044
3
+ metadata.gz: 79dbd849b3735aa1d4659d53d2329b7844ee51bc
4
+ data.tar.gz: a62779de0f1bdda094ed2015dea07a1a5594c004
5
5
  SHA512:
6
- metadata.gz: e769eefdba5338565a5d1368ac5ebbc64fd9a7f895253a33f615c0c23cd0692564d1ff80aff7cf50f1b42af1bd466618a29e993326d39c74c90d8da3b4fe45f1
7
- data.tar.gz: d76c00bb6bfa24b76f2c2407f8def39886a35a616d36749b3d36304e616dd3b5ad49a2f37bbafc2347c54743e1afd209d2fa19391bed303156184f71ac6b70e4
6
+ metadata.gz: 4eb17f6e0e2aac432a2cded98fd810d6f811794d1dbdd8aedd7e06b84e85b96681a8742600e59cda9d5e05d8ed8cbd24bc5be46c1cdf242b67468622ede1cd10
7
+ data.tar.gz: 08568faa667d6bd4c3b7a07e938b04f6dc6782a6516d57e2cb8631015b0484ea773a656ccf5c81640878195c79597489694419766fda1b6a5fd7426b4b0ee375
data/bin/MyClass.rb CHANGED
@@ -4,12 +4,13 @@ class MyClass #(change name)
4
4
  include GladeGUI
5
5
 
6
6
  def before_show()
7
- @button1 = "Hello World"
7
+ @button1 = "Bienvenida"
8
+ @textview1 = 'Esto es un ejemplo de como construir gemas con una interfaz gráfica en ruby, esto de una manera eficiente. By: El rolas'
8
9
  end
9
10
 
10
11
  def button1__clicked(*args)
11
- @builder["button1"].label = @builder["button1"].label == "Hello World" ? "Goodbye World" : "Hello World"
12
- end
12
+ @builder["button1"].label = 'Bienvenido al mundo con gráficos de ruby'
13
13
 
14
+ end
14
15
  end
15
16
 
@@ -14,6 +14,20 @@
14
14
  <object class="GtkVBox" id="vbox1">
15
15
  <property name="visible">True</property>
16
16
  <property name="can_focus">False</property>
17
+ <child>
18
+ <object class="GtkTextView" id="textview1">
19
+ <property name="visible">True</property>
20
+ <property name="can_focus">True</property>
21
+ <property name="pixels_above_lines">5</property>
22
+ <property name="editable">False</property>
23
+ <property name="justification">center</property>
24
+ </object>
25
+ <packing>
26
+ <property name="expand">True</property>
27
+ <property name="fill">True</property>
28
+ <property name="position">0</property>
29
+ </packing>
30
+ </child>
17
31
  <child>
18
32
  <object class="GtkHButtonBox" id="hbuttonbox1">
19
33
  <property name="visible">True</property>
@@ -36,7 +50,7 @@
36
50
  <packing>
37
51
  <property name="expand">True</property>
38
52
  <property name="fill">True</property>
39
- <property name="position">0</property>
53
+ <property name="position">1</property>
40
54
  </packing>
41
55
  </child>
42
56
  </object>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pruebaa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name