Fun with PWM  0.32
TkGravityManager.TkGravityManager Class Reference

UI for gravity demo. More...

Inheritance diagram for TkGravityManager.TkGravityManager:
TkBlock.TkPage TkBlock.TkBlock

Public Member Functions

def __init__ (self, parent, gui, options)
 
def initDependencyManager (self)
 
def initImages (self)
 
def getImage (self, name, angle)
 
def setup (self)
 
def serviceManager (self)
 
def showGravity (self)
 
def updateGravity (self)
 
def unavailable (self)
 
def OnStartClick (self)
 
def OnStopClick (self)
 
def OnToggleAutostartClick (self)
 
def OnGravityClick (self)
 
- Public Member Functions inherited from TkBlock.TkPage
def __init__ (self, parent, gui, options)
 
def open (self)
 
- Public Member Functions inherited from TkBlock.TkBlock
def __init__ (self, parent, gui, options)
 
def setup (self)
 
def initWidget (self)
 
def addMenu (self, menu, label="-")
 
def open (self)
 
def close (self)
 
def genericView (self, parent, value)
 
def numberView (self, parent, value)
 
def stringView (self, parent, value)
 
def dictView (self, parent, value)
 
def iterView (self, parent, value)
 

Public Attributes

 scheduler
 
 imu
 
 groundcoords
 
 centre
 
 shapes
 
 cache
 
 basepath
 
 pimg
 
 tkimg
 
 pm
 
 oimages
 
 last
 
 autostart
 
- Public Attributes inherited from TkBlock.TkBlock
 gui
 
 parent
 
 height
 
 variables
 
 notifier
 
 colours
 
 fonts
 
 images
 
 wrap
 
 canvas
 
 widget
 
 yScroller
 
 xScroller
 
 widgets
 
 gridrow
 

Detailed Description

UI for gravity demo.

Constructor & Destructor Documentation

§ __init__()

def TkGravityManager.TkGravityManager.__init__ (   self,
  parent,
  gui,
  options 
)
Initializes TkGravityManager object

@param parent
@param gui
@param options

Member Function Documentation

§ getImage()

def TkGravityManager.TkGravityManager.getImage (   self,
  name,
  angle 
)
gets an image from cache or caches it

@param name
@param angle

§ initDependencyManager()

def TkGravityManager.TkGravityManager.initDependencyManager (   self)
setup dependency checks

§ initImages()

def TkGravityManager.TkGravityManager.initImages (   self)
setup required images

§ OnGravityClick()

def TkGravityManager.TkGravityManager.OnGravityClick (   self)
action - displays the gravity page

§ OnStartClick()

def TkGravityManager.TkGravityManager.OnStartClick (   self)
action - starts the imu service

§ OnStopClick()

def TkGravityManager.TkGravityManager.OnStopClick (   self)
action - stops the imu service

§ OnToggleAutostartClick()

def TkGravityManager.TkGravityManager.OnToggleAutostartClick (   self)
action - toggles imu service autostart

§ serviceManager()

def TkGravityManager.TkGravityManager.serviceManager (   self)
view - imu service manager

§ setup()

def TkGravityManager.TkGravityManager.setup (   self)
setup gui menu

§ showGravity()

def TkGravityManager.TkGravityManager.showGravity (   self)
view - displays graviry ui

§ unavailable()

def TkGravityManager.TkGravityManager.unavailable (   self)
view - fallback for missing imu

§ updateGravity()

def TkGravityManager.TkGravityManager.updateGravity (   self)
util - updates gravity ui

The documentation for this class was generated from the following file: