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

Public Member Functions

def __init__
 
def Adjusted
 

Static Public Attributes

int g4pipe = 0
 

Detailed Description

Definition at line 423 of file Lesson2Wx.py.

Constructor & Destructor Documentation

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

Definition at line 424 of file Lesson2Wx.py.

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

425  def __init__(self, parent, myTitle, minVal, maxVal, initVal):
426  wx.SpinCtrl.__init__(self, parent, -1, "", wx.DefaultPosition, wx.DefaultSize, wx.TE_RIGHT)
427  self.SetRange(minVal, maxVal)
428  self.SetValue(initVal)
self.Bind(wx.EVT_SPINCTRL, self.Adjusted)

Member Function Documentation

def Lesson2Wx.Counter.Adjusted (   self,
  event 
)

Definition at line 429 of file Lesson2Wx.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 Lesson2Wx.Counter.__init__().

430  def Adjusted(self, event):
431  print self.GetValue()

Field Documentation

int Lesson2Wx.Counter.g4pipe = 0
static

Definition at line 435 of file Lesson2Wx.py.


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