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

Public Member Functions

def __init__
 
def ChangeColor
 

Detailed Description

Definition at line 274 of file Lesson1Wx.py.

Constructor & Destructor Documentation

def Lesson1Wx.MyText.__init__ (   self,
  parent,
  Text 
)

Definition at line 275 of file Lesson1Wx.py.

References Lesson1Wx.MyText.ChangeColor().

276  def __init__(self, parent, Text):
277  wx.StaticText.__init__(self, parent, -1, Text, pos=(20,20))
278  self.Bind(wx.EVT_LEFT_UP, self.ChangeColor)

Member Function Documentation

def Lesson1Wx.MyText.ChangeColor (   self,
  event 
)

Definition at line 279 of file Lesson1Wx.py.

References G4NeutronHPList.SetLabel(), and G4NeutronHPVector.SetLabel().

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

280  def ChangeColor(self, event):
281  TheColour = self.GetForegroundColour()
282  if TheColour == (0,0,0):
283  self.SetLabel("Simulation is running!")
284  self.SetForegroundColour("red")
285  else:
286  self.SetLabel("Click me to start a run")
287  self.SetForegroundColour("black")
288 
289 # to be used to choose materials and particles
290 # myList is a list of keys() of a dictionary
# f.e., materials are Python objects with their names as their keys

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