Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Minimal control panel with [Run] [Step] [Help] and [quit] buttons. More...
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 | |
Minimal control panel with [Run] [Step] [Help] and [quit] buttons.
Definition at line 163 of file Evolife_Window.py.
def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.__init__ | ( | self, | |
SimulationStep, | |||
Obs | |||
) |
Creates a window with buttons that is also a Simulation_Control.
Reimplemented from Evolife.Graphics.Evolife_Graphic.Active_Frame.
Reimplemented in Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame, Evolife.Graphics.Evolife_Window.Simulation_Frame, and Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 167 of file Evolife_Window.py.
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.
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.
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.
def Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.QuitButtonClick | ( | self, | |
event | |||
) |
closes the window
Definition at line 264 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.alive |
Definition at line 184 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.button_frame |
Definition at line 205 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Buttons |
Definition at line 202 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.control_frame |
Definition at line 189 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.CurrentFrame |
Definition at line 186 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Finish |
Definition at line 183 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.HelpButtonFrame |
Definition at line 213 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.IconName |
Definition at line 171 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.Name |
Definition at line 170 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.PhotoMode |
Definition at line 185 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.plot_frame |
Definition at line 224 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SmallButtonFrame |
Definition at line 209 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindows |
List and status of Satellite windows.
Definition at line 180 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindowsMargins |
Definition at line 182 of file Evolife_Window.py.
Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.SWindowsPreferredGeometry |
Definition at line 181 of file Evolife_Window.py.