Class: HudWidget

Inherits:
Qt::Widget
  • Object
show all
Defined in:
lib/hud-impl.rb

Overview

Class MainDlg ############################################

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ HudWidget

Returns a new instance of HudWidget.



7
8
9
10
11
12
13
# File 'lib/hud-impl.rb', line 7

def initialize parent=nil
	super
	@w=Ui::HudWidget.new
	@w.setupUi(self)
	@parent=parent
	
end

Instance Attribute Details

#wObject (readonly)

Returns the value of attribute w.



5
6
7
# File 'lib/hud-impl.rb', line 5

def w
  @w
end

Instance Method Details

#pBexit_clickedObject



15
16
17
18
# File 'lib/hud-impl.rb', line 15

def pBexit_clicked()
	p @w.pBexit.text
	@parent.close
end