Package gui :: Module controller :: Class Controller
[hide private]
[frames] | no frames]

Class Controller

source code


The relax controller window.

Instance Methods [hide private]
 
__init__(self, gui)
Set up the relax controller frame.
source code
wx.Gauge instance
add_gauge(self, parent, sizer, desc, tooltip=None)
Add a gauge to the sizer and return it.
source code
 
add_relax_logo(self, sizer)
Add the relax logo to the sizer.
source code
wx.TextCtrl instance
add_text(self, parent, sizer, desc, tooltip=None)
Add the current data pipe element.
source code
str or None
analysis_key(self)
Return the key for the current analysis' status object.
source code
 
create_mf(self, sizer)
Create the model-free specific panel.
source code
 
create_rx(self, sizer)
Create the relaxation curve-fitting specific panel.
source code
 
handler_close(self, event)
Event handler for the close window action.
source code
 
handler_timer(self, event)
Event handler for the timer.
source code
wx.Sizer instance
setup_frame(self)
Set up the relax controller frame.
source code
 
update_controller(self)
Update the relax controller.
source code
 
update_gauge(self)
Update the main execution gauge.
source code
 
update_mf(self)
Update the model-free specific elements.
source code
 
update_rx(self)
Update the Rx specific elements.
source code
Method Details [hide private]

__init__(self, gui)
(Constructor)

source code 

Set up the relax controller frame.

Parameters:
  • gui (wx.Frame instance) - The GUI object.

add_gauge(self, parent, sizer, desc, tooltip=None)

source code 

Add a gauge to the sizer and return it.

Parameters:
  • parent (wx object) - The parent GUI element.
  • sizer (wx.Sizer instance) - The sizer element to pack the element into.
  • desc (str) - The description to display.
  • tooltip (str) - The tooltip which appears on hovering over the text and the gauge.
Returns: wx.Gauge instance
The gauge element.

add_relax_logo(self, sizer)

source code 

Add the relax logo to the sizer.

Parameters:
  • sizer (wx.Sizer instance) - The sizer element to pack the relax logo into.

add_text(self, parent, sizer, desc, tooltip=None)

source code 

Add the current data pipe element.

Parameters:
  • parent (wx object) - The parent GUI element.
  • sizer (wx.Sizer instance) - The sizer element to pack the element into.
  • desc (str) - The description to display.
  • tooltip (str) - The tooltip which appears on hovering over the text and field.
Returns: wx.TextCtrl instance
The text control.

analysis_key(self)

source code 

Return the key for the current analysis' status object.

Returns: str or None
The current analysis' status object key.

create_mf(self, sizer)

source code 

Create the model-free specific panel.

Parameters:
  • sizer (wx.Sizer instance) - The sizer element to pack the element into.

create_rx(self, sizer)

source code 

Create the relaxation curve-fitting specific panel.

Parameters:
  • sizer (wx.Sizer instance) - The sizer element to pack the element into.

handler_close(self, event)

source code 

Event handler for the close window action.

Parameters:
  • event (wx event) - The wx event.

handler_timer(self, event)

source code 

Event handler for the timer.

Parameters:
  • event (wx event) - The wx event.

setup_frame(self)

source code 

Set up the relax controller frame.

Returns: wx.Sizer instance
The sizer object.