Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
Lesson1Wx.Counter Class Reference
Inheritance diagram for Lesson1Wx.Counter:

Public Member Functions

def __init__
 
def Adjusted
 

Detailed Description

Definition at line 398 of file Lesson1Wx.py.

Constructor & Destructor Documentation

def Lesson1Wx.Counter.__init__ (   self,
  parent,
  myTitle,
  minVal,
  maxVal,
  initVal 
)

Definition at line 399 of file Lesson1Wx.py.

References Lesson1Wx.Counter.Adjusted(), G4GenericMessenger::Command.SetRange(), G4UIcommand.SetRange(), G4NeutronHPList.SetValue(), and G4AttValue.SetValue().

400  def __init__(self, parent, myTitle, minVal, maxVal, initVal):
401  wx.SpinCtrl.__init__(self, parent, -1, "", wx.DefaultPosition, wx.DefaultSize, wx.TE_RIGHT)
402  self.SetRange(minVal, maxVal)
403  self.SetValue(initVal)
self.Bind(wx.EVT_SPINCTRL, self.Adjusted)

Member Function Documentation

def Lesson1Wx.Counter.Adjusted (   self,
  event 
)

Definition at line 404 of file Lesson1Wx.py.

References G4NeutronHPList.GetValue(), G4NeutronHPReactionWhiteBoard.GetValue(), G4NeutronHPPolynomExpansion.GetValue(), G4AttValue.GetValue(), RMC01DoubleWithWeightHit.GetValue(), G4UnitDefinition.GetValue(), DicomHandler.GetValue(), G4Physics2DVector.GetValue(), G4PhysicsVector.GetValue(), and G4BestUnit.GetValue().

Referenced by Lesson1Wx.Counter.__init__(), and Lesson2Wx.Counter.__init__().

405  def Adjusted(self, event):
406  print self.GetValue()

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