class MyTouchWindow::TouchButton
Public Class Methods
new(label,left,right,top,bottom,parent)
click to toggle source
Calls superclass method
# File lib/mytouchwindow.rb, line 13 def initialize(label,left,right,top,bottom,parent) super(label) parent.attach(self,left,right,top,bottom,Gtk::FILL|Gtk::EXPAND,Gtk::FILL|Gtk::EXPAND,1,1) set_name("TouchButton") set_focus_on_click(false).set_can_focus(false) signal_connect('clicked'){|me| focused=me.get_ancestor(MyTouchWindow).focus if focused.class.name=="MyRendererText" case label when "<-" focused.text=focused.text.chop else focused.text=focused.text+label end end } end