Sha256: cf566a11ce859592e9c8dc2fd86c8c2de4fc5c40553bc6cbe7695f1a78aa1a81
Contents?: true
Size: 851 Bytes
Versions: 5
Compression:
Stored size: 851 Bytes
Contents
module Tk module Tile class Scrollbar < Tk::Scrollbar def self.tk_command; 'ttk::scrollbar'; end include TileWidget def initialize(parent = Tk.root, options = {}) super scrollbar_default end # Specifies the orientation of the scrollbar. # horizontal or vertical def orient(orientation = None) if None == orientation cget(:orient) else configure orient: orientation end end def command(&block) configure(:command => block) if block end end class YScrollbar < Tk::Tile::Scrollbar def scrollbar_default #configure :orient => :vertical end end class XScrollbar < Tk::Tile::Scrollbar def scrollbar_default configure :orient => :horizontal end end end end
Version data entries
5 entries across 5 versions & 1 rubygems