summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/remote-tk.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-11 04:51:21 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-11 04:51:21 +0000
commitbbe91bcd1898d544739e41fdf91aa8288526540a (patch)
treed280d8542cc44d1cd1a75e8ec87b1f9d231561b7 /ext/tk/lib/remote-tk.rb
parent28c7b64f14c02a953ba051acd144e4ee5144450e (diff)
downloadruby-bbe91bcd1898d544739e41fdf91aa8288526540a.tar.gz
ruby-bbe91bcd1898d544739e41fdf91aa8288526540a.tar.xz
ruby-bbe91bcd1898d544739e41fdf91aa8288526540a.zip
* ext/tk/lib/tk/*: untabify
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/remote-tk.rb')
-rw-r--r--ext/tk/lib/remote-tk.rb34
1 files changed, 17 insertions, 17 deletions
diff --git a/ext/tk/lib/remote-tk.rb b/ext/tk/lib/remote-tk.rb
index 77dbacfb1..1ef5310bd 100644
--- a/ext/tk/lib/remote-tk.rb
+++ b/ext/tk/lib/remote-tk.rb
@@ -1,6 +1,6 @@
#
-# remote-tk.rb - supports to control remote Tk interpreters
-# by Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+# remote-tk.rb - supports to control remote Tk interpreters
+# by Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
if defined? MultiTkIp
fail RuntimeError, "'remote-tk' library must be required before requiring 'multi-tk'"
@@ -137,14 +137,14 @@ class RemoteTkIp
return nil if timeout < 1
@ret_val.value = ''
@interp._invoke('send', '-async', @remote,
- 'send', '-async', Tk.appname,
- "set #{@ret_val.id} ready")
+ 'send', '-async', Tk.appname,
+ "set #{@ret_val.id} ready")
Tk.update
if @ret_val != 'ready'
(1..(timeout*5)).each{
- sleep 0.2
- Tk.update
- break if @ret_val == 'ready'
+ sleep 0.2
+ Tk.update
+ break if @ret_val == 'ready'
}
end
@ret_val.value == 'ready'
@@ -154,16 +154,16 @@ class RemoteTkIp
def _create_connection
ip_id = '_' + @interp._invoke('send', @remote, <<-'EOS') + '_'
if {[catch {set _rubytk_control_ip_id_} ret] != 0} {
- set _rubytk_control_ip_id_ 0
+ set _rubytk_control_ip_id_ 0
} else {
- set _rubytk_control_ip_id_ [expr $ret + 1]
+ set _rubytk_control_ip_id_ [expr $ret + 1]
}
return $_rubytk_control_ip_id_
EOS
@interp._invoke('send', @remote, <<-EOS)
proc rb_out#{ip_id} args {
- send #{@appname} rb_out \$args
+ send #{@appname} rb_out \$args
}
EOS
@@ -182,17 +182,17 @@ class RemoteTkIp
cmds = @interp._merge_tklist(*_conv_args([], enc_mode, *cmds))
if @displayof
if async
- @interp.__invoke('send', '-async', '-displayof', @displayof,
- '--', @remote, *cmds)
+ @interp.__invoke('send', '-async', '-displayof', @displayof,
+ '--', @remote, *cmds)
else
- @interp.__invoke('send', '-displayof', @displayof,
- '--', @remote, *cmds)
+ @interp.__invoke('send', '-displayof', @displayof,
+ '--', @remote, *cmds)
end
else
if async
- @interp.__invoke('send', '-async', '--', @remote, *cmds)
+ @interp.__invoke('send', '-async', '--', @remote, *cmds)
else
- @interp.__invoke('send', '--', @remote, *cmds)
+ @interp.__invoke('send', '--', @remote, *cmds)
end
end
end
@@ -271,7 +271,7 @@ class RemoteTkIp
def deleted?
if @displayof
lst = @interp._invoke_without_enc('winfo', 'interps',
- '-displayof', @displayof)
+ '-displayof', @displayof)
else
lst = @interp._invoke_without_enc('winfo', 'interps')
end