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

Class Controller

source code


The relax controller window.

Instance Methods [hide private]
EvtHandler
__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_key_down(self, event=None)
Event handler for key strokes.
source code
 
handler_timer(self, event)
Event handler for the timer.
source code
 
reset(self)
Reset the relax controller to its initial state.
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

Inherited from wx._windows.Frame: Create, CreateStatusBar, CreateToolBar, DoGiveHelp, DoMenuUpdates, FindItemInMenuBar, GetMenuBar, GetStatusBar, GetStatusBarPane, GetToolBar, PopStatusText, ProcessCommand, PushStatusText, SetMenuBar, SetStatusBar, SetStatusBarPane, SetStatusText, SetStatusWidths, SetToolBar

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, EnableCloseButton, GetDefaultItem, GetIcon, GetTitle, GetTmpDefaultItem, Iconize, IsActive, IsAlwaysMaximized, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacGetTopLevelWindowRef, MacGetUnifiedAppearance, MacSetMetalAppearance, Maximize, OSXIsModified, OSXSetModified, RequestUserAttention, Restore, SetDefaultItem, SetIcon, SetIcons, SetRepresentedFilename, SetShape, SetTitle, SetTmpDefaultItem, ShowFullScreen, ShowWithoutActivating, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AlwaysShowScrollbars, AssociateHandle, CacheBestSize, CanAcceptFocus, CanAcceptFocusFromKeyboard, CanApplyThemeBorder, CanBeOutsideClientArea, CanScroll, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMainWindowOfCompositeControl, GetMaxClientSize, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinClientSize, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetNextSibling, GetParent, GetPopupMenuSelectionFromUser, GetPosition, GetPositionTuple, GetPrevSibling, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetToolTipString, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HandleAsNavigationKey, HandleWindowEvent, HasCapture, HasExtraStyle, HasFlag, HasFocus, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HideWithEffect, HitTest, HitTestXY, InformFirstDirection, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsScrollbarAlwaysShown, IsShown, IsShownOnScreen, IsThisEnabled, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, NavigateIn, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PostSizeEvent, PostSizeEventToParent, ProcessWindowEvent, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendIdleEvents, SendSizeEvent, SendSizeEventToParent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCanFocus, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxClientSize, SetMaxSize, SetMinClientSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, ShowWithEffect, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, UnsetToolTip, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, DeletePendingEvents, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, IsUnlinked, ProcessEvent, ProcessEventLocally, ProcessPendingEvents, QueueEvent, SafelyProcessEvent, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind, Unlink

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wx._windows.Frame: GetClassDefaultAttributes

Inherited from wx._windows.TopLevelWindow: GetDefaultSize

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, ReleaseControlId, UnreserveControlId

Properties [hide private]

Inherited from wx._windows.Frame: MenuBar, StatusBar, StatusBarPane, ToolBar, thisown

Inherited from wx._windows.TopLevelWindow: DefaultItem, Icon, OSXModified, Title, TmpDefaultItem

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxClientSize, MaxHeight, MaxSize, MaxWidth, MinClientSize, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, ToolTipString, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details [hide private]

__init__(self, gui)
(Constructor)

source code 

Set up the relax controller frame.

Parameters:
  • gui (wx.Frame instance) - The GUI object.
Returns: EvtHandler
Overrides: object.__init__

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_key_down(self, event=None)

source code 

Event handler for key strokes.

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.