Class: Gtk::TicButton
- Inherits:
-
Button
- Object
- Button
- Gtk::TicButton
- Includes:
- BaseModule
- Defined in:
- lib/games_and_rpg_paradise/gui/gtk2/simplified_tictactoe/tic_button.rb
Instance Method Summary collapse
-
#initialize(text = nil, master_widget = nil) ⇒ TicButton
constructor
# === initialize ========================================================================= #.
-
#reset ⇒ Object
# === reset ========================================================================= #.
Constructor Details
#initialize(text = nil, master_widget = nil) ⇒ TicButton
#
initialize
#
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/games_and_rpg_paradise/gui/gtk2/simplified_tictactoe/tic_button.rb', line 21 def initialize( text = nil, = nil ) super(text) reset set_border_width(1) on_click_event { set_sensitive(false) # Make it grey here. . } end |
Instance Method Details
#reset ⇒ Object
#
reset
#
37 38 39 40 41 42 |
# File 'lib/games_and_rpg_paradise/gui/gtk2/simplified_tictactoe/tic_button.rb', line 37 def reset # ======================================================================= # # === @configuration # ======================================================================= # @configuration = [true, __dir__, inspect] end |