Class: Smartdict::Gui::TranslateButton
- Inherits:
-
Gtk::Button
- Object
- Gtk::Button
- Smartdict::Gui::TranslateButton
- Defined in:
- lib/smartdict/gui/translate_button.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ TranslateButton
constructor
A new instance of TranslateButton.
Constructor Details
#initialize(controller) ⇒ TranslateButton
Returns a new instance of TranslateButton.
4 5 6 7 8 9 |
# File 'lib/smartdict/gui/translate_button.rb', line 4 def initialize(controller) super("Translate") @controller = controller signal_connect('clicked') { @controller.translate } set_size_request(100, LEFT_BOX_BUTTON_HEIGHT) end |