mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/sample/demos-jp/widget: make the root window lower than the
sub-demos windows. * ext/tk/sample/demos-en/widget: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0e05806f36
commit
284ac594b3
2 changed files with 12 additions and 4 deletions
|
@ -812,14 +812,15 @@ end
|
||||||
#
|
#
|
||||||
def aboutBox
|
def aboutBox
|
||||||
Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
|
Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
|
||||||
'message'=>"Ruby/Tk widget demonstration Ver.1.5.4-en\n\n" +
|
'message'=>"Ruby/Tk widget demonstration Ver.1.5.5-en\n\n" +
|
||||||
"based on demos of Tk8.1 -- 8.5 " +
|
"based on demos of Tk8.1 -- 8.5 " +
|
||||||
"( Copyright:: " +
|
"( Copyright:: " +
|
||||||
"(c) 1996-1997 Sun Microsystems, Inc. / " +
|
"(c) 1996-1997 Sun Microsystems, Inc. / " +
|
||||||
"(c) 1997-2000 Ajuba Solutions, Inc. / " +
|
"(c) 1997-2000 Ajuba Solutions, Inc. / " +
|
||||||
"(c) 2001-2003 Donal K. Fellows )\n\n" +
|
"(c) 2001-2003 Donal K. Fellows )\n\n" +
|
||||||
"Your Ruby & Tk Version ::\n" +
|
"Your Ruby & Tk Version ::\n" +
|
||||||
"Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}")
|
"Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
|
||||||
|
"Ruby/Tk release date :: tcltklib #{TclTkLib::RELEASE_DATE}; tk #{Tk::RELEASE_DATE}")
|
||||||
end
|
end
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
|
@ -828,6 +829,9 @@ no_launcher = false
|
||||||
if ARGV[0] == '-n'
|
if ARGV[0] == '-n'
|
||||||
ARGV.shift
|
ARGV.shift
|
||||||
no_launcher = true if ARGV.size > 0
|
no_launcher = true if ARGV.size > 0
|
||||||
|
else
|
||||||
|
# show the root widget to make it lower then demo windows
|
||||||
|
Tk.update
|
||||||
end
|
end
|
||||||
ARGV.each{|cmd|
|
ARGV.each{|cmd|
|
||||||
if cmd =~ /(.*).rb/
|
if cmd =~ /(.*).rb/
|
||||||
|
|
|
@ -842,14 +842,15 @@ end
|
||||||
#
|
#
|
||||||
def aboutBox
|
def aboutBox
|
||||||
Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
|
Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
|
||||||
'message'=>"Ruby/Tk ウィジェットデモ Ver.1.5.4-jp\n\n" +
|
'message'=>"Ruby/Tk ウィジェットデモ Ver.1.5.5-jp\n\n" +
|
||||||
"based on demos of Tk8.1 -- 8.5 " +
|
"based on demos of Tk8.1 -- 8.5 " +
|
||||||
"( Copyright:: " +
|
"( Copyright:: " +
|
||||||
"(c) 1996-1997 Sun Microsystems, Inc. / " +
|
"(c) 1996-1997 Sun Microsystems, Inc. / " +
|
||||||
"(c) 1997-2000 Ajuba Solutions, Inc. / " +
|
"(c) 1997-2000 Ajuba Solutions, Inc. / " +
|
||||||
"(c) 2001-2003 Donal K. Fellows )\n\n" +
|
"(c) 2001-2003 Donal K. Fellows )\n\n" +
|
||||||
"Your Ruby & Tk Version ::\n" +
|
"Your Ruby & Tk Version ::\n" +
|
||||||
"Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}")
|
"Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
|
||||||
|
"Ruby/Tk release date :: tcltklib #{TclTkLib::RELEASE_DATE}; tk #{Tk::RELEASE_DATE}")
|
||||||
end
|
end
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
|
@ -858,6 +859,9 @@ no_launcher = false
|
||||||
if ARGV[0] == '-n'
|
if ARGV[0] == '-n'
|
||||||
ARGV.shift
|
ARGV.shift
|
||||||
no_launcher = true if ARGV.size > 0
|
no_launcher = true if ARGV.size > 0
|
||||||
|
else
|
||||||
|
# show the root widget to make it lower then demo windows
|
||||||
|
Tk.update
|
||||||
end
|
end
|
||||||
ARGV.each{|cmd|
|
ARGV.each{|cmd|
|
||||||
if cmd =~ /(.*).rb/
|
if cmd =~ /(.*).rb/
|
||||||
|
|
Loading…
Add table
Reference in a new issue