~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to ext/tk/sample/demos-jp/bind.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2010-07-31 17:08:39 UTC
  • mfrom: (1.1.4 upstream) (8.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100731170839-j034dmpdqt1cc4p6
Tags: 1.9.2~svn28788-1
* New release based on upstream snapshot from the 1.9.2 branch,
  after 1.9.2 RC2. That branch is (supposed to be) binary-compatible
  with the 1.9.1 branch.
  + Builds fine on i386. Closes: #580852.
* Upgrade to Standards-Version: 3.9.1. No changes needed.
* Updated generated incs.
* Patches that still need work:
  + Unclear status, need more investigation:
   090729_fix_Makefile_deps.dpatch
   090803_exclude_rdoc.dpatch
   203_adjust_base_of_search_path.dpatch
   902_define_YAML_in_yaml_stringio.rb.dpatch
   919_common.mk_tweaks.dpatch
   931_libruby_suffix.dpatch
   940_test_thread_mutex_sync_shorter.dpatch
  + Maybe not needed anymore, keeping but not applying.
   102_skip_test_copy_stream.dpatch (test doesn't block anymore?)
   104_skip_btest_io.dpatch (test doesn't block anymore?)
   201_gem_prelude.dpatch (we don't use that rubygems anyway?)
   202_gem_default_dir.dpatch (we don't use that rubygems anyway?)
   940_test_file_exhaustive_fails_as_root.dpatch
   940_test_priority_fails.dpatch
   100518_load_libc_libm.dpatch
* Add disable-tests.diff: disable some tests that cause failures on FreeBSD.
  Closes: #590002, #543805, #542927.
* However, many new failures on FreeBSD. Since that version is still an
  improvement, add the check that makes test suite failures non-fatal on
  FreeBSD again. That still needs to be investigated.
* Re-add 903_skip_base_ruby_check.dpatch
* Add build-dependency on ruby1.8 and drop all pre-generated files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
# toplevel widget ��¸�ߤ���к������
7
7
if defined?($bind_demo) && $bind_demo
8
 
  $bind_demo.destroy 
 
8
  $bind_demo.destroy
9
9
  $bind_demo = nil
10
10
end
11
11
 
59
59
 
60
60
  # ������������
61
61
  if TkWinfo.depth($root).to_i > 1
62
 
    tagstyle_bold = {'background'=>'#43ce80', 'relief'=>'raised', 
 
62
    tagstyle_bold = {'background'=>'#43ce80', 'relief'=>'raised',
63
63
                     'borderwidth'=>1}
64
64
    tagstyle_normal = {'background'=>'', 'relief'=>'flat'}
65
65
  else
75
75
  insert('end', "\n\n")
76
76
  insert('end', '2. ��ñ�� 2�����Υץ��åȡ��ǡ�����ɽ������ư�������Ȥ��Ǥ��롣', (d2 = TkTextTag.new(t)) )
77
77
  insert('end', "\n\n")
78
 
  insert('end', '3. �ƥ����ȥ����ƥ�Υ��󥫡��ȹ�·����', 
 
78
  insert('end', '3. �ƥ����ȥ����ƥ�Υ��󥫡��ȹ�·����',
79
79
         (d3 = TkTextTag.new(t)) )
80
80
  insert('end', "\n\n")
81
 
  insert('end', '4. �饤�󥢥��ƥ�Τ���������Ƭ�η��Υ��ǥ�����', 
 
81
  insert('end', '4. �饤�󥢥��ƥ�Τ���������Ƭ�η��Υ��ǥ�����',
82
82
         (d4 = TkTextTag.new(t)) )
83
83
  insert('end', "\n\n")
84
 
  insert('end', '5. ���֥��ȥåפ��ѹ����뤿��ε�ǽ�Ĥ��Υ롼�顼��', 
 
84
  insert('end', '5. ���֥��ȥåפ��ѹ����뤿��ε�ǽ�Ĥ��Υ롼�顼��',
85
85
         (d5 = TkTextTag.new(t)) )
86
86
  insert('end', "\n\n")
87
 
  insert('end', 
88
 
         '6. �����Х����ɤ���äƥ��������뤹��Τ��򼨤�����åɡ�', 
 
87
  insert('end',
 
88
         '6. �����Х����ɤ���äƥ��������뤹��Τ��򼨤�����åɡ�',
89
89
         (d6 = TkTextTag.new(t)) )
90
90
 
91
91
  # binding
92
92
  [d1, d2, d3, d4, d5, d6].each{|tag|
93
93
    tag_binding_for_bind_demo(tag, tagstyle_bold, tagstyle_normal)
94
94
  }
95
 
  d1.bind('1', 
 
95
  d1.bind('1',
96
96
          proc{
97
97
            eval_samplecode(`cat #{[$demo_dir,'items.rb'].join(File::Separator)}`, 'items.rb')
98
98
          })
99
 
  d2.bind('1', 
 
99
  d2.bind('1',
100
100
          proc{
101
101
            eval_samplecode(`cat #{[$demo_dir,'plot.rb'].join(File::Separator)}`, 'plot.rb')
102
102
          })
103
 
  d3.bind('1', 
 
103
  d3.bind('1',
104
104
          proc{
105
105
            eval_samplecode(`cat #{[$demo_dir,'ctext.rb'].join(File::Separator)}`, 'ctext.rb')
106
106
          })
107
 
  d4.bind('1', 
 
107
  d4.bind('1',
108
108
          proc{
109
109
            eval_samplecode(`cat #{[$demo_dir,'arrow.rb'].join(File::Separator)}`, 'arrow.rb')
110
110
          })
111
 
  d5.bind('1', 
 
111
  d5.bind('1',
112
112
          proc{
113
113
            eval_samplecode(`cat #{[$demo_dir,'ruler.rb'].join(File::Separator)}`, 'ruler.rb')
114
114
          })
115
 
  d6.bind('1', 
 
115
  d6.bind('1',
116
116
          proc{
117
117
            eval_samplecode(`cat #{[$demo_dir,'cscroll.rb'].join(File::Separator)}`, 'cscroll.rb')
118
118
          })