Module vrFrame :: Class vrFrame
[frames] | no frames]

Class vrFrame

   object --+        
            |        
  ??.instance --+    
                |    
vrAEBase.vrAEBase --+
                    |
                   vrFrame

Creates a 2d frame with html content.

Instance Methods
 
__init__(html, x1, y1, x2, y2)
The constructor of the vrFrame class.
list of floats
getFrame()
Gets the frame vertices.
 
hide()
Hides the frame.
 
setFrame(x1, y1, x2, y2)
Sets the frame vertices.
 
setHtml(html)
Sets the html content.
 
show()
Shows the frame.
 
toggleShow()
Toggles show/hide of the frame.

Inherited from vrAEBase.vrAEBase: __reduce__, addLoop, callAllConnected, connect, connectSignal, emitSignal, getModuleName, isActive, loop, recEvent, removeConnections, setActive, setUpdateGUIEnabled, subLoop

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 184
Method Details

__init__(html, x1, y1, x2, y2)
(Constructor)

 

The constructor of the vrFrame class.

Parameters:
  • html (string) - The content.
  • x1 (float) - The first coordinate on the horizontal axis.
  • y1 (float) - The first coordinate on the vertical axis.
  • x2 (float) - The second coordinate on the horizontal axis.
  • y2 (float) - The second coordinate on the vertical axis.
Overrides: vrAEBase.vrAEBase.__init__

getFrame()

 

Gets the frame vertices.

Returns: list of floats
The first horizontal and vertical and the second horizontal and vertical coordinate of the frame.

setFrame(x1, y1, x2, y2)

 

Sets the frame vertices.

Parameters:
  • x1 (float) - The first coordinate on the horizontal axis.
  • y1 (float) - The first coordinate on the vertical axis.
  • x2 (float) - The second coordinate on the horizontal axis.
  • y2 (float) - The second coordinate on the vertical axis.

setHtml(html)

 

Sets the html content.

Parameters:
  • html (string) - The content.