lib/ver/status/nano_help.rb in ver-2010.02 vs lib/ver/status/nano_help.rb in ver-2010.08
- old
+ new
@@ -1,17 +1,19 @@
module VER
class Status
class NanoHelp < Tk::Tile::Frame
+ include LabelToggle
+
attr_reader :status, :weight, :row, :column, :sticky
def initialize(status, options = {})
@status = status
@weight = options.delete(:weight) || 0
@row = options.delete(:row)
@column = options.delete(:column)
@sticky = options.delete(:sticky)
- @font = status.text.options.font
+ @font = status.buffer.options.font
super
@long_labels = []
@short_labels = []
@@ -50,22 +52,9 @@
@short_labels << short_label
end
def style=(config)
# @long_labels.each{|label| label.configure(config) }
- end
-
- def toggle
- info = grid_info
-
- if info.empty?
- grid_configure(@last_grid_info)
- true
- else
- @last_grid_info = info
- grid_forget
- false
- end
end
end
end
end