Run/Stop button
Bases: wx._controls.BitmapButton
Graphical run/stop button with toggle function
Switch between run and stop states (run = True, stop = False)
Choice widget
Bases: wx.combo.ComboCtrl
Implement choice widget, which unfolds programmatically
Container classes for measurement data.
Data array container class Store data in an array of specified shape, with corresponding coordinate axes
Create a copy of itself.
Decrement position along selected scan dimension
Get value for current coordinate axis
Get position counter along selected scan dimension
Get array value at current scan position
Increment position along selected scan dimension
Rescale data according to given axes settings.
Set value for current coordinate axis
Set position counter along selected scan dimension
Set array value at current scan position
Measurement container class Store several data arrays corresponding each to one measured quantity during a measurement sequence.
Build data arrays from given measurement events
Decrement scan position for current scan dimension of selected data array
Decrement scan dimension of selected data arrays
Get value for current coordinate axis of selected data arrays
Get value at current position in selected data array
Get scan dimension of selected data arrays
Compute shapes of data arrays from given measurement events Result stored as self.shape
Increment scan position for current scan dimension of selected data array
Increment scan dimension of selected data arrays
Reset scan position in selected arrays
Set value for current coordinate axis of selected data arrays
Set value for current position of selected data array
Set scan dimension of selected data arrays
Set scan position for current scan dimension of selected data array
Drag and drop classes
Bases: terapy.core.dragdrop.GenericDragObject
ScanEvent drag object
Bases: terapy.core.dragdrop.GenericDrop
ScanEvent drop target
Bases: terapy.core.dragdrop.GenericDragObject
Filter item drag object
Bases: terapy.core.dragdrop.GenericDrop
Filter item drop target
Bases: wx._misc.PyDataObjectSimple
All-purpose drag object
Bases: wx._misc.DropTarget
All-purpose drop target
Bases: terapy.core.dragdrop.GenericDragObject
History item drag object
Bases: terapy.core.dragdrop.GenericDrop
History item drop target
History handling classes and controls
Bases: wx._windows.Panel
History widget (list and control buttons)
Ask user to select colour of selected item.
Clear reference status of selected item.
Delete selected item.
Insert new item in given position.
Move selected item by given amount
Actions following drop on control.
x,y - coordinates of drop action (int) data - dropped data (str)
Passing drag and drop data in wxpython is incovenient. Alternative used here: use GetFirstSelected and HitTest functions of wx.ListBox to determine what to move and where to put it
Actions triggered by key press on control.
Actions triggered by left click on list item.
Actions triggered by load event.
Actions triggered on item delete event.
Actions triggered by right click on list item.
Actions triggered by double click on list item.
Actions triggered by drag event.
Rename selected item.
Reset colour of selected item.
Trigger save procedure for selected item.
Set canvas reference from pubsub event.
Set colors of items in list from associate data arrays.
Set selected item as reference.
Set main window reference from pubsub event.
Tag/Untag selected item as reference.
Bases: wx._controls.ListCtrl, terapy.core.history.HistoryMixin, wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin
List widget with history functions
Bases: object
History list mix-in Add history functionalities to list widget
Broadcast data associated to all list items through pubsub
Clear reference status for item at given position
Return data associated to all items
Return item position associated with given item id.
Return data associated with given item id.
Return item id associated with given data.
Return item associated to given position
Get filter bank for which item at given position is reference
Tell if item at given position is used as reference
Actions to be taken when all items are deleted
Actions to be taken when an item is deleted
Associate data to item
Set item at given position as reference for given filter bank
Functions for XML configuration file parsing
Convert XML attributes into object variables
Implement proportional splitter window
Bases: wx._windows.SplitterWindow
Proportional splitter window from http://wiki.wxpython.org/ProportionalSplitterWindow
Custom interface threads
Bases: threading.Thread
Thread responsible for updating progress status during measurement.
Return associated measurement progress.
Run thread.
Stop thread.
Custom tooltip widget
Bases: wx.lib.agw.supertooltip.SuperToolTip
Attempt to handle lousy word wrapping occurring with Windows. SuperToolTip handles word wrap well, but other issues arise (i.e. lousy timing of show/hide vs mouse events)
Tree control with enhanced features and support classes.
Bases: terapy.core.treectrl.SubTreeItem
Subtree
Append given item to subtree.
Count occurrences of given attribute with given value in subtree.
Get values of all subtree elements with given attribute.
Compute depth of subtree.
Return item at given position in subtree children.
Insert given item in subtree at given position.
Tell if given data is in subtree.
Remove item in given position of subtree children.
Subtree item
Fetch value of given attribute name from stored item data.
Check if given data is in current subtree item.
Restore value of subtree item object into given item.
Store value of given item in subtree item object.
Bases: wx._controls.TreeCtrl
Tree widget.
Create item subtree from given SubTree object.
Find item within subtree of given item (root item if none given).
Get children of given item.
Get subtree for given item.
Get data associated with items in given list.
Move given item one position downwards.
Move given item one position upwards.
Custom data validators
Bases: terapy.core.validator.NumberValidator
Validator for integer numbers
Bases: wx._core.PyValidator
Validator for numbers
Bases: terapy.core.validator.NumberValidator
Validator for positive floating point numbers
Miscellaneous classes and functions implementing several core (and not so core) functionalities of TeraPy.
Check that the given file name is a python script, compiled or not.
Parse for modules of given class in given directory.