|
Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
An Active_frame reacts to basic keyboard control. More...


Public Member Functions | |
| 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 | |
| Area | |
| Parent | |
| Control | |
| control | |
Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.AreaView | |
| Area | |
| FrameNumber | |
An Active_frame reacts to basic keyboard control.
Definition at line 126 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Active_Frame.__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...)
Reimplemented from Evolife.Graphics.Evolife_Graphic.AreaView.
Reimplemented in Evolife.Graphics.Evolife_Graphic.Satellite_window, Evolife.Graphics.Evolife_Graphic.Network_window, Evolife.Graphics.Evolife_Graphic.Genome_window, Evolife.Graphics.Evolife_Graphic.Field_window, Evolife.Graphics.Evolife_Graphic.Image_window, Evolife.Graphics.Evolife_Window.Simulation_Control_Frame, Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame, Evolife.Graphics.Evolife_Window.Simulation_Frame, and Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 129 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Active_Frame.EventInterpreter | ( | self, | |
| Event | |||
| ) |
Does nothing here.
To be overloaded
Reimplemented from Evolife.Graphics.Evolife_Graphic.AreaView.
Definition at line 164 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Active_Frame.keyPressEvent | ( | self, | |
| e | |||
| ) |
Definition of keyboard shortcuts.
Reimplemented in Evolife.Graphics.Evolife_Graphic.Satellite_window, and Evolife.Graphics.Evolife_Window.Evolife_Frame.
Definition at line 146 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Active_Frame.Raise | ( | self | ) |
puts the window on top of display
Definition at line 158 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Active_Frame.Area |
Definition at line 140 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Active_Frame.Control |
Definition at line 142 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Active_Frame.control |
Definition at line 144 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Active_Frame.Parent |
Definition at line 141 of file Evolife_Graphic.py.