Table Of Contents

Previous topic

Plot canvases and plots

Next topic

terapy.core package

This Page

terapy package reference

Subpackages

Module contents

TeraPy - Graphical user interface for Terahertz Time-domain Spectroscopy (c) 2010-2013, Daniel Dietze, 2013-2014 Vincent Paeder

class terapy.TeraPyMainFrame
BroadcastWindow(inst=None)

Send main window reference through pubsub.

Parameters:
inst - pubsub event data (not used, but function normally called by pubsub)
CreateDeviceWidgets()

Create widgets associated with loaded physical devices. Devices are either defined in the device configuration file or detected with the hardware.ScanHardware function.

CreateHardwareConfigMenu()

Fill hardware menu with loaded devices and attach actions

OnAbout(event)

About dialog.

Parameters:
event - event object (wx.Event)
OnCloseWindow(event)

Actions triggered when main window is closed.

Parameters:
event - event object (wx.Event)
OnConfigureAxis(event)

Call configure function of selected axis device. Menu action.

Parameters:
event - event object (wx.Event)
OnConfigureInput(event)

Call configure function of selected input device. Menu action.

Parameters:
event - event object (wx.Event)
OnDefaultUnits(event)

Open default units dialog.

Parameters:
event - event object (wx.Event)
OnLoad(event=None)

Announce through pubsub that a load event has been called. This function doesn’t implement a load file routine. It only announces a load request, which should be handled elsewhere (e.g. history control).

Parameters:
event - event object (wx.Event)
OnOpenDoc(event=None)

Open documentation in web browser.

OnQuit(event=None)

Quit application.

Parameters:
event - event object (wx.Event)
OnResetHardware(event=None)

Trigger reset of loaded devices. This function is meant to be called from main menu.

Parameters:
event - event object (wx.Event)
OnScanHardware(event)

Trigger scan for connected devices. This function is meant to be called from main menu.

Parameters:
event - event object (wx.Event)
OnSettings(event)

Open settings dialog.

Parameters:
event - event object (wx.Event)
OnStartMeasurement(inst=None)

Actions preceding a new measurement.

Parameters:
inst - pubsub data (Measurement)
OnStopMeasurement(inst=None)

Actions following the end of a measurement.

Parameters:
inst - pubsub data (Measurement)
SetAxisFromPlot(inst)

Set currently selected axis device to given position. This function is meant to be called by pubsub.

Parameters:
inst - pubsub event
SetProgressValue(inst)

Set progress bar value from pubsub event.

Parameters:
inst - pubsub data (float)
SetRefresh(inst=None)

Report on the state of the “automatic update” checkbox through pubsub.

Parameters:
inst - pubsub data
SetStatusText(inst=None)

Set main window status bar text. Can be called directly or as a pubsub event subscriber.

Parameters:
inst - pubsub data
StartDeviceTimer()

Start update timers for loaded devices

StopDeviceTimer()

Stop update timers for loaded devices

ToggleScanControls(state=True)

Enable/Disable interface elements.

Parameters:
state - state (bool)
UpdateHardware()

Actions following a change in the list of loaded hardware devices