⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tkscrollbox.rb

📁 ruby的源代码
💻 RB
字号:
##		tkscrollbox.rb - Tk Listbox with Scrollbar#                                 as an example of Composite Widget#			$Date: 1999/08/13 05:37:52 $#			by Yukihiro Matsumoto <matz@netlab.co.jp>require 'tk.rb'class TkScrollbox<TkListbox  include TkComposite  def initialize_composite(keys=nil)    list = TkListbox.new(@frame)    scroll = TkScrollbar.new(@frame)    @path = list.path    list.configure 'yscroll', scroll.path+" set"    list.pack 'side'=>'left','fill'=>'both','expand'=>'yes'    scroll.configure 'command', list.path+" yview"    scroll.pack 'side'=>'right','fill'=>'y'    delegate('DEFAULT', list)    delegate('foreground', list)    delegate('background', list, scroll)    delegate('borderwidth', @frame)    delegate('relief', @frame)    configure keys if keys  endend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -