Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame Class Reference

Minimal control panel with [Run] [Step] [Help] and [quit] buttons. More...

Inheritance diagram for Evolife.Graphics.Evolife_Window.Simulation_Control_Frame:
Inheritance graph
[legend]
Collaboration diagram for Evolife.Graphics.Evolife_Window.Simulation_Control_Frame:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, SimulationStep, Obs)
 Creates a window with buttons that is also a Simulation_Control. More...
 
def LocalButton (self, ParentFrame, ButtonType, Text, Tip, ClickFunction, ShortCutKey=None)
 Creates a button. More...
 
def EvolifeWebSite (self, e)
 opens Web browser with provided address More...
 
def HelpButtonClick (self, event=None)
 Displays a text file named: Help.txt. More...
 
def QuitButtonClick (self, event)
 closes the window More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Control
def __init__ (self, SimulationStep, Obs, method='timer')
 Stores Obs as observer and SimulationStep as the function that processes one step of the simulation. More...
 
def RunButtonClick (self, event=None)
 Entering in 'Run' mode. More...
 
def StepButtonClick (self, event=None)
 Entering in 'Step' mode. More...
 
def Simulation_stop (self)
 Stops the simulation thread or timer. More...
 
def Simulation_launch (self, continuous_mode)
 (re)starts the simulation thread or timer More...
 
def Simulation_resume (self)
 calls Simulation_launch More...
 
def OneStep (self)
 calls SimulationStep More...
 
def ReturnFromThread (self)
 to be overloaded More...
 
def DecisionToEnd (self)
 to be overloaded More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame
def __init__ (self, AreaType=None, parent=None, control=None, image=None, width=400, height=300, zoom=1)
 Creates a window (AreaView) with the appropriate AreaType (Draw_Area, Ground...) More...
 
def keyPressEvent (self, e)
 Definition of keyboard shortcuts. More...
 
def Raise (self)
 puts the window on top of display More...
 
def EventInterpreter (self, Event)
 Does nothing here. More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.AreaView
def __init__ (self, AreaType=Image_Area, parent=None, image=None, width=400, height=300, zoom=1)
 Defining View: a window (QGraphicsView) that contains a plot area (QGraphicsScene) More...
 
def paintEvent (self, e)
 calls Qt's paintEvent More...
 
def resizeEvent (self, e)
 calls Qt's resizeEvent More...
 
def updateScene (self, L)
 unused More...
 
def photo (self, Name, FrameNumber=-1, outputDir='.', extension='png')
 takes a snapshot and saves it to a new file More...
 
def EventInterpreter (self, Event)
 Does nothing here. More...
 

Public Attributes

 Name
 
 IconName
 
 SWindows
 List and status of Satellite windows. More...
 
 SWindowsPreferredGeometry
 
 SWindowsMargins
 
 Finish
 
 alive
 
 PhotoMode
 
 CurrentFrame
 
 control_frame
 
 Buttons
 
 button_frame
 
 SmallButtonFrame
 
 HelpButtonFrame
 
 plot_frame
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Control
 Obs
 
 SimulationStep
 
 method
 
 timer
 
 simulation
 Status of the simulation programme. More...
 
 simulation_steady_mode
 
 simulation_under_way
 
 previous_Disp_period
 
 Disp_period
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame
 Area
 
 Parent
 
 Control
 
 control
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.AreaView
 Area
 
 FrameNumber
 

Detailed Description

Minimal control panel with [Run] [Step] [Help] and [quit] buttons.

Definition at line 163 of file Evolife_Window.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.__init__ (   self,
  SimulationStep,
  Obs 
)

Member Function Documentation

◆ EvolifeWebSite()

def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.EvolifeWebSite (   self,
  e 
)

opens Web browser with provided address

Definition at line 244 of file Evolife_Window.py.

◆ HelpButtonClick()

def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.HelpButtonClick (   self,
  event = None 
)

Displays a text file named: Help.txt.

Definition at line 249 of file Evolife_Window.py.

◆ LocalButton()

def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.LocalButton (   self,
  ParentFrame,
  ButtonType,
  Text,
  Tip,
  ClickFunction,
  ShortCutKey = None 
)

Creates a button.

Definition at line 233 of file Evolife_Window.py.

◆ QuitButtonClick()

def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.QuitButtonClick (   self,
  event 
)

closes the window

Definition at line 264 of file Evolife_Window.py.

Member Data Documentation

◆ alive

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.alive

Definition at line 184 of file Evolife_Window.py.

◆ button_frame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.button_frame

Definition at line 205 of file Evolife_Window.py.

◆ Buttons

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Buttons

Definition at line 202 of file Evolife_Window.py.

◆ control_frame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.control_frame

Definition at line 189 of file Evolife_Window.py.

◆ CurrentFrame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.CurrentFrame

Definition at line 186 of file Evolife_Window.py.

◆ Finish

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Finish

Definition at line 183 of file Evolife_Window.py.

◆ HelpButtonFrame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.HelpButtonFrame

Definition at line 213 of file Evolife_Window.py.

◆ IconName

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.IconName

Definition at line 171 of file Evolife_Window.py.

◆ Name

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Name

Definition at line 170 of file Evolife_Window.py.

◆ PhotoMode

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.PhotoMode

Definition at line 185 of file Evolife_Window.py.

◆ plot_frame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.plot_frame

Definition at line 224 of file Evolife_Window.py.

◆ SmallButtonFrame

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SmallButtonFrame

Definition at line 209 of file Evolife_Window.py.

◆ SWindows

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindows

List and status of Satellite windows.

Definition at line 180 of file Evolife_Window.py.

◆ SWindowsMargins

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindowsMargins

Definition at line 182 of file Evolife_Window.py.

◆ SWindowsPreferredGeometry

Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindowsPreferredGeometry

Definition at line 181 of file Evolife_Window.py.


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