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

Public Member Functions

def __init__
 

Data Fields

 processCheck
 
 sizer
 
 processState
 
 myList
 

Detailed Description

Definition at line 352 of file Lesson1Wx.py.

Constructor & Destructor Documentation

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

Definition at line 353 of file Lesson1Wx.py.

354  def __init__(self, parent, myTitle, myList):
355  wx.Panel.__init__(self, parent, -1)
356  self.processCheck = {}
357  self.sizer = wx.FlexGridSizer(rows=3)
358  self.sizer.AddGrowableRow(1)
359  for item in myList:
360  self.processCheck[item] = wx.CheckBox(parent, -1, item)
361  self.processCheck[item].SetValue(True)
362 # self.processCheck[item].Bind(wx.EVT_CHECKBOX, self.CheckedProcess)
363  self.sizer.Add(self.processCheck[item],0,wx.EXPAND)
364 
365  self.SetSizer(self.sizer)
366  self.SetBackgroundColour('green')
367  self.processState = {}
368  self.myList = myList
369 
370 # test only
371 # def CheckedProcess(self, event):
372 # self.processName = event.GetEventObject().GetLabel()
373 # self.processState = event.GetEventObject().GetValue()
374 
375 
376 # slider to set an integer value
# title is shown

Field Documentation

Lesson1Wx.Processes.myList

Definition at line 367 of file Lesson1Wx.py.

Lesson1Wx.Processes.processCheck

Definition at line 355 of file Lesson1Wx.py.

Lesson1Wx.Processes.processState

Definition at line 366 of file Lesson1Wx.py.

Lesson1Wx.Processes.sizer

Definition at line 356 of file Lesson1Wx.py.


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