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

Public Member Functions

def __init__
 

Data Fields

 processCheck
 
 sizer
 
 processState
 
 myList
 

Detailed Description

Definition at line 377 of file Lesson2Wx.py.

Constructor & Destructor Documentation

def Lesson2Wx.Processes.__init__ (   self,
  parent,
  myTitle,
  myList 
)

Definition at line 378 of file Lesson2Wx.py.

379  def __init__(self, parent, myTitle, myList):
380  wx.Panel.__init__(self, parent, -1)
381  self.processCheck = {}
382  self.sizer = wx.FlexGridSizer(rows=5)
383  self.sizer.AddGrowableRow(1)
384  for item in myList:
385  self.processCheck[item] = wx.CheckBox(parent, -1, item)
386  self.processCheck[item].SetValue(True)
387 # self.processCheck[item].Bind(wx.EVT_CHECKBOX, self.CheckedProcess)
388  self.sizer.Add(self.processCheck[item],0,wx.EXPAND)
389 
390  self.SetSizer(self.sizer)
391  self.SetBackgroundColour('green')
392  self.processState = {}
393  self.myList = myList
394 
395 # test only
396 # def CheckedProcess(self, event):
397 # self.processName = event.GetEventObject().GetLabel()
398 # self.processState = event.GetEventObject().GetValue()
399 
400 
401 # slider to set an integer value
# title is shown

Field Documentation

Lesson2Wx.Processes.myList

Definition at line 392 of file Lesson2Wx.py.

Lesson2Wx.Processes.processCheck

Definition at line 380 of file Lesson2Wx.py.

Lesson2Wx.Processes.processState

Definition at line 391 of file Lesson2Wx.py.

Lesson2Wx.Processes.sizer

Definition at line 381 of file Lesson2Wx.py.


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