tk 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de793924acb0bcb31d9cf7810b29ee8b955498771677127d14a8f84a0be28447
4
- data.tar.gz: 624bf1e5f517b16c2147b43b840189f711f91c585edda293ba55585dde6d2901
3
+ metadata.gz: e1347bf6638e8e5c8ad7de473d26b0c8b3d2f4b8a2c195696c24c19d652cb426
4
+ data.tar.gz: c52bc29bd1d742bc707c7d53f82c564355c32c43dd64e19a2b4df8ed63b9bbab
5
5
  SHA512:
6
- metadata.gz: 496b71be86f3fad9951713a33c51cc2df0362914717adc915977d93b6197c5770938c82013cb84e97a1893e4489c549159ddbd96e2f1d42362d881ec50c6970e
7
- data.tar.gz: 39d4d96c72e0484684f0048f01fd7df53ce8ad20158c9a14d82de0d93c1732f9eab52e83003d4d4084743bde9898c91044b909e82eebf0b098329a666cc1a111
6
+ metadata.gz: 47633e9b2b38bbde90c157d6fec882ea7747180de3ac28bbec7d0d8671ec709cf9a0cdff5335186e192b3fdf72c7f4b6de68479b8307d6ea426ba47e3de35482
7
+ data.tar.gz: 7fb2f1dea579e612ea57eddd8136f855c68b4845d550559c136ca5e92e8c4af1fe437544721763b71f50df5d60e0c19de7ea01f4eb602e7cf177862cc94d0381
data/lib/multi-tk.rb CHANGED
@@ -266,7 +266,7 @@ class MultiTkIp
266
266
 
267
267
  begin
268
268
  @interp._eval_without_enc(@interp._merge_tklist('bgerror', msg))
269
- rescue Exception => e
269
+ rescue Exception
270
270
  warn("Warning (#{self}): " + msg)
271
271
  end
272
272
  end
@@ -659,7 +659,7 @@ class MultiTkIp
659
659
  loop do
660
660
  Thread.pass
661
661
  begin
662
- thread, cmd, *args = @cmd_queue.deq(true) # non-block
662
+ thread, _, *_ = @cmd_queue.deq(true) # non-block
663
663
  rescue ThreadError
664
664
  # queue is empty
665
665
  retry_count -= 1
@@ -928,7 +928,6 @@ class MultiTkIp
928
928
 
929
929
  @init_ip_env_queue = Queue.new
930
930
  Thread.new{
931
- current = Thread.current
932
931
  loop {
933
932
  mtx, cond, ret, table, script = @init_ip_env_queue.deq
934
933
  begin
@@ -1917,7 +1916,7 @@ if (!defined?(Use_PseudoToplevel_Feature_of_MultiTkIp) ||
1917
1916
  top.respond_to?(:pseudo_toplevel_evaluable?) &&
1918
1917
  top.pseudo_toplevel_evaluable? &&
1919
1918
  top.respond_to?(id)
1920
- rescue Exception => e
1919
+ rescue Exception
1921
1920
  has_top = false
1922
1921
  end
1923
1922
 
@@ -2316,7 +2315,7 @@ class << MultiTkIp
2316
2315
  __getip.allow_ruby_exit?
2317
2316
  end
2318
2317
 
2319
- def allow_ruby_exit= (mode)
2318
+ def allow_ruby_exit=(mode)
2320
2319
  __getip.allow_ruby_exit = mode
2321
2320
  end
2322
2321
 
@@ -2642,7 +2641,7 @@ class MultiTkIp
2642
2641
  @interp.allow_ruby_exit?
2643
2642
  end
2644
2643
 
2645
- def allow_ruby_exit= (mode)
2644
+ def allow_ruby_exit=(mode)
2646
2645
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
2647
2646
  @interp.allow_ruby_exit = mode
2648
2647
  end
data/lib/remote-tk.rb CHANGED
@@ -270,7 +270,7 @@ class RemoteTkIp
270
270
  false
271
271
  end
272
272
 
273
- def allow_ruby_exit= (mode)
273
+ def allow_ruby_exit=(mode)
274
274
  fail RuntimeError, 'cannot change mode of the remote interpreter'
275
275
  end
276
276
 
data/lib/tk.rb CHANGED
@@ -818,7 +818,7 @@ end
818
818
 
819
819
  def _curr_cmd_id
820
820
  #id = format("c%.4d", Tk_IDs[0])
821
- id = "c" + TkCore::INTERP._ip_id_ + TkComm::Tk_IDs[0]
821
+ "c" + TkCore::INTERP._ip_id_ + TkComm::Tk_IDs[0]
822
822
  end
823
823
  def _next_cmd_id
824
824
  TkComm::Tk_IDs.mutex.synchronize{
@@ -1210,7 +1210,7 @@ module TkCore
1210
1210
  =end
1211
1211
  end
1212
1212
  else
1213
- RUN_EVENTLOOP_ON_MAIN_THREAD = false
1213
+ RUN_EVENTLOOP_ON_MAIN_THREAD = true
1214
1214
  end
1215
1215
 
1216
1216
  else # Ruby 1.8.x
@@ -3487,7 +3487,7 @@ module TkTreatFont
3487
3487
  else
3488
3488
  begin
3489
3489
  tk_call(*(__config_cmd << "-#{optkey}" << ltn))
3490
- rescue => e
3490
+ rescue
3491
3491
  # ignore
3492
3492
  end
3493
3493
  end
@@ -3547,7 +3547,7 @@ module TkTreatFont
3547
3547
  else
3548
3548
  begin
3549
3549
  tk_call(*(__config_cmd << "-#{optkey}" << knj))
3550
- rescue => e
3550
+ rescue
3551
3551
  # ignore
3552
3552
  end
3553
3553
  end
@@ -3804,7 +3804,7 @@ module TkConfigMethod
3804
3804
  fail ArgumentError, "Invalid option `#{orig_slot.inspect}'"
3805
3805
  end
3806
3806
 
3807
- alias_name, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
3807
+ _, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
3808
3808
  if real_name
3809
3809
  slot = real_name.to_s
3810
3810
  end
@@ -3948,7 +3948,7 @@ module TkConfigMethod
3948
3948
  fail ArgumentError, "Invalid option `#{orig_slot.inspect}'"
3949
3949
  end
3950
3950
 
3951
- alias_name, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
3951
+ _, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
3952
3952
  if real_name
3953
3953
  slot = real_name.to_s
3954
3954
  end
@@ -4051,7 +4051,7 @@ module TkConfigMethod
4051
4051
  if slot
4052
4052
  slot = slot.to_s
4053
4053
 
4054
- alias_name, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
4054
+ _, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
4055
4055
  if real_name
4056
4056
  slot = real_name.to_s
4057
4057
  end
@@ -4431,7 +4431,7 @@ module TkConfigMethod
4431
4431
  if slot
4432
4432
  slot = slot.to_s
4433
4433
 
4434
- alias_name, real_name = __optkey_aliases.find{|k,var| k.to_s == slot}
4434
+ _, real_name = __optkey_aliases.find{|k,var| k.to_s == slot}
4435
4435
  if real_name
4436
4436
  slot = real_name.to_s
4437
4437
  end
data/lib/tk/autoload.rb CHANGED
@@ -452,7 +452,7 @@ class << Tk
452
452
 
453
453
  reg = /^#{Regexp.quote(auto)}(\.rb|\.so|)$/
454
454
  @TOPLEVEL_ALIAS_TABLE.each_key{|set|
455
- if @TOPLEVEL_ALIAS_TABLE[set][sym] =~ reg
455
+ if reg =~ @TOPLEVEL_ALIAS_TABLE[set][sym].to_s
456
456
  @TOPLEVEL_ALIAS_TABLE[set][sym] = obj
457
457
  if @TOPLEVEL_ALIAS_OWNER[sym].nil? || @TOPLEVEL_ALIAS_OWNER[sym] == set
458
458
  replace_topalias(sym, obj)
@@ -460,10 +460,10 @@ class << Tk
460
460
  end
461
461
  end
462
462
  }
463
- if (f = Object.autoload?(sym)) && f =~ reg
463
+ if (f = Object.autoload?(sym)) && reg =~ f.to_s
464
464
  replace_topobj(sym, obj)
465
465
  end
466
- if (f = Tk::TOPLEVEL_ALIASES.autoload?(sym)) && f =~ reg
466
+ if (f = Tk::TOPLEVEL_ALIASES.autoload?(sym)) && reg =~ f.to_s
467
467
  replace_topalias(sym, obj)
468
468
  end
469
469
  end
data/lib/tk/canvastag.rb CHANGED
@@ -187,7 +187,7 @@ module TkcTagAccess
187
187
  # ltag = tag1 | tag2; ltag.path => "(t1)||(t2)"
188
188
  # ltag = tag1 ^ tag2; ltag.path => "(t1)^(t2)"
189
189
  # ltag = - tag1; ltag.path => "!(t1)"
190
- def & (tag)
190
+ def &(tag)
191
191
  if tag.kind_of? TkObject
192
192
  TkcTagString.new(@c, '(' + @id + ')&&(' + tag.path + ')')
193
193
  else
@@ -195,7 +195,7 @@ module TkcTagAccess
195
195
  end
196
196
  end
197
197
 
198
- def | (tag)
198
+ def |(tag)
199
199
  if tag.kind_of? TkObject
200
200
  TkcTagString.new(@c, '(' + @id + ')||(' + tag.path + ')')
201
201
  else
@@ -203,7 +203,7 @@ module TkcTagAccess
203
203
  end
204
204
  end
205
205
 
206
- def ^ (tag)
206
+ def ^(tag)
207
207
  if tag.kind_of? TkObject
208
208
  TkcTagString.new(@c, '(' + @id + ')^(' + tag.path + ')')
209
209
  else
data/lib/tk/entry.rb CHANGED
@@ -96,7 +96,7 @@ class Tk::Entry<Tk::Label
96
96
  def value
97
97
  _fromUTF8(tk_send_without_enc('get'))
98
98
  end
99
- def value= (val)
99
+ def value=(val)
100
100
  tk_send_without_enc('delete', 0, 'end')
101
101
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
102
102
  val
data/lib/tk/grid.rb CHANGED
@@ -66,15 +66,15 @@ module TkGrid
66
66
  params = []
67
67
  args.flatten(1).each{|win|
68
68
  case win
69
- when '-', ?- # RELATIVE PLACEMENT (increase columnspan)
69
+ when '-', ?-.ord # RELATIVE PLACEMENT (increase columnspan)
70
70
  params.push('-')
71
71
  when /^-+$/ # RELATIVE PLACEMENT (increase columnspan)
72
72
  params.concat(win.to_s.split(//))
73
- when '^', ?^ # RELATIVE PLACEMENT (increase rowspan)
73
+ when '^', ?^.ord # RELATIVE PLACEMENT (increase rowspan)
74
74
  params.push('^')
75
75
  when /^\^+$/ # RELATIVE PLACEMENT (increase rowspan)
76
76
  params.concat(win.to_s.split(//))
77
- when 'x', :x, ?x, nil, '' # RELATIVE PLACEMENT (empty column)
77
+ when 'x', :x, ?x.ord, nil, '' # RELATIVE PLACEMENT (empty column)
78
78
  params.push('x')
79
79
  when /^x+$/ # RELATIVE PLACEMENT (empty column)
80
80
  params.concat(win.to_s.split(//))
data/lib/tk/itemconfig.rb CHANGED
@@ -177,7 +177,7 @@ module TkItemConfigMethod
177
177
  fail ArgumentError, "Invalid option `#{orig_opt.inspect}'"
178
178
  end
179
179
 
180
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == option}
180
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == option}
181
181
  if real_name
182
182
  option = real_name.to_s
183
183
  end
@@ -324,7 +324,7 @@ module TkItemConfigMethod
324
324
  fail ArgumentError, "Invalid option `#{orig_slot.inspect}'"
325
325
  end
326
326
 
327
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
327
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
328
328
  if real_name
329
329
  slot = real_name.to_s
330
330
  end
@@ -429,7 +429,7 @@ module TkItemConfigMethod
429
429
  if slot
430
430
  slot = slot.to_s
431
431
 
432
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
432
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
433
433
  if real_name
434
434
  slot = real_name.to_s
435
435
  end
@@ -806,7 +806,7 @@ module TkItemConfigMethod
806
806
  if slot
807
807
  slot = slot.to_s
808
808
 
809
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
809
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
810
810
  if real_name
811
811
  slot = real_name.to_s
812
812
  end
data/lib/tk/itemfont.rb CHANGED
@@ -101,7 +101,7 @@ module TkTreatItemFont
101
101
  else
102
102
  begin
103
103
  tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << fnt))
104
- rescue => e
104
+ rescue
105
105
  # ignore
106
106
  end
107
107
  end
@@ -163,7 +163,7 @@ module TkTreatItemFont
163
163
  else
164
164
  begin
165
165
  tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << ltn))
166
- rescue => e
166
+ rescue
167
167
  # ignore
168
168
  end
169
169
  end
@@ -223,7 +223,7 @@ module TkTreatItemFont
223
223
  else
224
224
  begin
225
225
  tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{optkey}" << knj))
226
- rescue => e
226
+ rescue
227
227
  # ignore
228
228
  end
229
229
  end
data/lib/tk/listbox.rb CHANGED
@@ -88,7 +88,7 @@ class Tk::Listbox<TkTextWin
88
88
  get('0', 'end')
89
89
  end
90
90
 
91
- def value= (vals)
91
+ def value=(vals)
92
92
  unless vals.kind_of?(Array)
93
93
  fail ArgumentError, 'an Array is expected'
94
94
  end
data/lib/tk/menuspec.rb CHANGED
@@ -210,7 +210,6 @@ module TkMenuSpec
210
210
  private :_create_menu
211
211
 
212
212
  def _use_menubar?(parent)
213
- use_menubar = false
214
213
  if parent.kind_of?(Tk::Root) || parent.kind_of?(Tk::Toplevel)
215
214
  true
216
215
  elsif parent.current_configinfo.has_key?('menu')
data/lib/tk/namespace.rb CHANGED
@@ -257,7 +257,7 @@ class TkNamespace < TkObject
257
257
  if name =~ /^::/
258
258
  @fullname = parent + name
259
259
  else
260
- @fullname = parent +'::'+ name
260
+ @fullname = parent + '::' + name
261
261
  end
262
262
  else
263
263
  ancestor = __tk_call('namespace', 'current')
@@ -265,7 +265,7 @@ class TkNamespace < TkObject
265
265
  if name =~ /^::/
266
266
  @fullname = ancestor + '::' + parent + name
267
267
  else
268
- @fullname = ancestor + '::'+ parent +'::'+ name
268
+ @fullname = ancestor + '::' + parent + '::' + name
269
269
  end
270
270
  end
271
271
  else # parent == nil
data/lib/tk/optiondb.rb CHANGED
@@ -210,7 +210,6 @@ module TkOptionDB
210
210
  unless func.kind_of?(Array)
211
211
  fail ArgumentError, "method-list must be Array"
212
212
  end
213
- func_str = func.join(' ')
214
213
 
215
214
  if parent.kind_of?(Class) && parent <= @@resource_proc_class
216
215
  cmd_klass = Class.new(parent)
data/lib/tk/optionobj.rb CHANGED
@@ -36,7 +36,7 @@ module Tk
36
36
 
37
37
  def _remove_win(win)
38
38
  if win.kind_of?(Array)
39
- widget, method = win
39
+ widget, _ = win
40
40
  @observ.delete_if{|x|
41
41
  if x.kind_of?(Array)
42
42
  x[0] == widget
data/lib/tk/scale.rb CHANGED
@@ -102,7 +102,7 @@ class Tk::Scale<TkWindow
102
102
  get
103
103
  end
104
104
 
105
- def value= (val)
105
+ def value=(val)
106
106
  set(val)
107
107
  val
108
108
  end
data/lib/tk/text.rb CHANGED
@@ -326,7 +326,7 @@ class Tk::Text<TkTextWin
326
326
  _fromUTF8(tk_send_without_enc('get', "1.0", "end - 1 char"))
327
327
  end
328
328
 
329
- def value= (val)
329
+ def value=(val)
330
330
  tk_send_without_enc('delete', "1.0", 'end')
331
331
  tk_send_without_enc('insert', "1.0", _get_eval_enc_str(val))
332
332
  val
data/lib/tk/validation.rb CHANGED
@@ -303,7 +303,7 @@ class TkValidateCommand
303
303
  args = args.join(' ')
304
304
  keys = klass._get_subst_key(args)
305
305
  if cmd.kind_of?(String)
306
- id = cmd
306
+ @id = cmd
307
307
  elsif cmd.kind_of?(TkCallbackEntry)
308
308
  @id = install_cmd(cmd)
309
309
  else
@@ -318,7 +318,7 @@ class TkValidateCommand
318
318
  else
319
319
  keys, args = klass._get_all_subst_keys
320
320
  if cmd.kind_of?(String)
321
- id = cmd
321
+ @id = cmd
322
322
  elsif cmd.kind_of?(TkCallbackEntry)
323
323
  @id = install_cmd(cmd)
324
324
  else
data/lib/tk/variable.rb CHANGED
@@ -27,7 +27,7 @@ class TkVariable
27
27
  TkVar_ID_TBL.mutex.synchronize{ TkVar_ID_TBL.clear }
28
28
  }
29
29
 
30
- major, minor, type, patchlevel = TclTkLib.get_version
30
+ major, minor, _, _ = TclTkLib.get_version
31
31
  USE_OLD_TRACE_OPTION_STYLE = (major < 8) || (major == 8 && minor < 4)
32
32
 
33
33
  #TkCore::INTERP.add_tk_procs('rb_var', 'args',
@@ -1772,11 +1772,11 @@ module Tk
1772
1772
  begin
1773
1773
  INTERP._invoke_without_enc('global', 'auto_path')
1774
1774
  auto_path = INTERP._invoke('set', 'auto_path')
1775
- rescue => e
1775
+ rescue
1776
1776
  begin
1777
1777
  INTERP._invoke_without_enc('global', 'env')
1778
1778
  auto_path = INTERP._invoke('set', 'env(TCLLIBPATH)')
1779
- rescue => e
1779
+ rescue
1780
1780
  auto_path = Tk::LIBRARY
1781
1781
  end
1782
1782
  end
data/lib/tk/winfo.rb CHANGED
@@ -239,7 +239,7 @@ module TkWinfo
239
239
  TkWinfo.screendepth self
240
240
  end
241
241
 
242
- def TkWinfo.screenheight (win)
242
+ def TkWinfo.screenheight(win)
243
243
  number(tk_call_without_enc('winfo', 'screenheight', win))
244
244
  end
245
245
  def winfo_screenheight
@@ -84,13 +84,13 @@ module Tk::BLT
84
84
  private :__item_pathname
85
85
 
86
86
  def axis_cget_tkstring(id, option)
87
- ret = itemcget_tkstring(['axis', tagid(id)], option)
87
+ itemcget_tkstring(['axis', tagid(id)], option)
88
88
  end
89
89
  def axis_cget(id, option)
90
- ret = itemcget(['axis', tagid(id)], option)
90
+ itemcget(['axis', tagid(id)], option)
91
91
  end
92
92
  def axis_cget_strict(id, option)
93
- ret = itemcget_strict(['axis', tagid(id)], option)
93
+ itemcget_strict(['axis', tagid(id)], option)
94
94
  end
95
95
  def axis_configure(*args)
96
96
  slot = args.pop
@@ -37,7 +37,7 @@ class Tk::BWidget::ProgressDlg
37
37
  @keys['textvariable'].value
38
38
  end
39
39
 
40
- def text= (txt)
40
+ def text=(txt)
41
41
  @keys['textvariable'].value = txt
42
42
  end
43
43
 
@@ -49,7 +49,7 @@ class Tk::BWidget::ProgressDlg
49
49
  @keys['variable'].value
50
50
  end
51
51
 
52
- def value= (val)
52
+ def value=(val)
53
53
  @keys['variable'].value = val
54
54
  end
55
55
 
@@ -91,7 +91,7 @@ class Tk::Iwidgets::Entryfield
91
91
  def value
92
92
  _fromUTF8(tk_send_without_enc('get'))
93
93
  end
94
- def value= (val)
94
+ def value=(val)
95
95
  tk_send_without_enc('delete', 0, 'end')
96
96
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
97
97
  val
@@ -59,7 +59,7 @@ class Tk::Iwidgets::Promptdialog
59
59
  def value
60
60
  _fromUTF8(tk_send_without_enc('get'))
61
61
  end
62
- def value= (val)
62
+ def value=(val)
63
63
  tk_send_without_enc('delete', 0, 'end')
64
64
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
65
65
  val
@@ -96,7 +96,7 @@ class Tk::Iwidgets::Spinner
96
96
  def value
97
97
  _fromUTF8(tk_send_without_enc('get'))
98
98
  end
99
- def value= (val)
99
+ def value=(val)
100
100
  tk_send_without_enc('delete', 0, 'end')
101
101
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
102
102
  val
@@ -212,7 +212,7 @@ class Tk::Tcllib::Tablelist
212
212
  nil
213
213
  else # cmd
214
214
  tk_tcl2ruby(cmd)
215
- end
215
+ end
216
216
  })
217
217
  end
218
218
  private :__val2ruby_optkeys
data/lib/tkextlib/tile.rb CHANGED
@@ -144,7 +144,6 @@ module Tk
144
144
  # Tcl/Tk interpreter working under Ruby/Tk.
145
145
  # Please give attention to use this method. It may conflict with
146
146
  # some definitions on Tcl/Tk scripts.
147
- klass_name = self.name
148
147
  proc_name = 'LoadImages'
149
148
  if Tk::Tile::USE_TTK_NAMESPACE
150
149
  ns_list = ['::tile']
@@ -32,7 +32,7 @@ module Tk::Tile::TreeviewConfig
32
32
  if slot
33
33
  slot = slot.to_s
34
34
 
35
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
35
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
36
36
  if real_name
37
37
  slot = real_name.to_s
38
38
  end
@@ -203,7 +203,7 @@ module Tk::Tile::TreeviewConfig
203
203
  if slot
204
204
  slot = slot.to_s
205
205
 
206
- alias_name, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
206
+ _, real_name = __item_optkey_aliases(tagid(tagOrId)).find{|k, v| k.to_s == slot}
207
207
  if real_name
208
208
  slot = real_name.to_s
209
209
  end
@@ -155,7 +155,7 @@ class Tk::TkTable::CellTag
155
155
 
156
156
  def initialize(parent, keys=nil)
157
157
  @parent = @t = parent
158
- @tpath - parent.path
158
+ @tpath = parent.path
159
159
  CellTag_ID.mutex.synchronize{
160
160
  @path = @id = CellTag_ID.join(TkCore::INTERP._ip_id_)
161
161
  CellTag_ID[1].succ!
@@ -1294,7 +1294,7 @@ class Tk::TreeCtrl
1294
1294
 
1295
1295
  def item_state_get(item, *args)
1296
1296
  if args.empty?
1297
- list(tk_send('item', 'state', 'get', item *args))
1297
+ list(tk_send('item', 'state', 'get', item * args))
1298
1298
  else
1299
1299
  bool(tk_send('item', 'state', 'get', item))
1300
1300
  end
data/tk.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "tk"
3
- spec.version = "0.3.0"
3
+ spec.version = "0.4.0"
4
4
  spec.authors = ["SHIBATA Hiroshi", "Nobuyoshi Nakada", "Jeremy Evans"]
5
5
  spec.email = ["hsbt@ruby-lang.org", "nobu@ruby-lang.org", "code@jeremyevans.net"]
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-10-08 00:00:00.000000000 Z
13
+ date: 2021-03-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -1135,7 +1135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1135
1135
  - !ruby/object:Gem::Version
1136
1136
  version: '0'
1137
1137
  requirements: []
1138
- rubygems_version: 3.1.4
1138
+ rubygems_version: 3.2.3
1139
1139
  signing_key:
1140
1140
  specification_version: 4
1141
1141
  summary: Tk interface module using tcltklib.