A general frame for creating and editing experiments.
A frame for creating general experiments.
Parameters : | parent : Transport
experiment : Experiment
sourceDefault : bool
title : str
experimentPath : str
|
---|
Methods
Return whether the experiment has been edited.
Returns : | bool :
|
---|
Indicate that the experiment has been edited.
This is a simple shorthand for self.edited = True.
Return whether the experiment has been edited.
Returns : | bool :
|
---|
Set the enabled state of the clipboard-related buttons.
Parameters : | cut : bool
copy : bool
paste : bool
|
---|
Set whether the experiment has been edited.
Parameters : | newValue : bool
|
---|
An object for storing data for drag-and-drop creation of actions.
Methods
A class to handle drop actions on the tree.
Parameters : | tree : ActionTree
acts : ListBox
|
---|
Methods
Tell the tree to make the action.
This method is called when self.OnDrop returns True. It tells the ActionTree to create the object based on the stored data tuple.
A tree control for displaying experiment sequences.
This subclass of wxTreeCtrl implements a number of features, including drag-and-drop and copy-and-paste while ensuring that the underlying experiment sequence remains in sync.
Parameters : | parent : wxWindow
experiment : Experiment
wxId : int
style : int
parentFrame : ExperimentFrame
|
---|
Methods
Add an action to the end of the tree.
Parameters : | action : Action
|
---|
Fill a tree with default values.
Currently, the values are for testing purposes only and are not really useful. For the final, working version, everything except the set filename action will be removed.
Copy an item from the tree to the clipboard.
Parameters : | item : wxTreeItemId
|
---|
Cut an item from the tree to the clipboard.
Parameters : | item : wxTreeItemId
|
---|
Delete the action contained within a given tree item.
Parameters : | item : wxTreeItemId
|
---|
Edit the selected action.
Parameters : | item : wxTreeItemId
|
---|
Get the item at a position under a specified parent.
Parameters : | parentItem : wxTreeItemId
index : int
|
---|---|
Returns : | wxTreeItemId :
|
Get the position of an item within its list of siblings.
Parameters : | parentItem : wxTreeItemId
item : wxTreeItemId
|
---|---|
Returns : | int :
|
Insert an action above the specified item.
Parameters : | actionTuple : tuple of int
targetItem : wxTreeItemId
|
---|
Move the item and its action from one place to another.
Essentially, this is just a cut and paste operation rolled into one, allowing for drag-and-drop move operations without messing with the clipboard.
Parameters : | sourceItem : wxTreeItemId
targetItem : wxTreeItemId
|
---|
Paste an item from the clipboard onto the tree.
Parameters : | item : wx.TreeItemId
|
---|
Notes
At the end of this operation, the clipboard’s operation flag is always ‘copy’, and its action is always a clone of whatever action was originally put there. That way, the user can continue to do paste operations even if the clipboard was filled using a cut (and clones do not need to be trashed, since they were never instantiated in the first place).
A frame for configuring the instruments in an experiment.
Parameters : | parent : wx.Window
experiment : Experiment
successAction : Command or list of Command
|
---|
Methods
A frame for setting the graphs which the owning experiment will create.
Parameters : | parent : wx.Window
experiment : Experiment
successAction : list of Command
|
---|
Methods
A frame for setting the constants which the owning experiment can use.
Parameters : | parent : wx.Window
experiment : Experiment
successAction : Command or list of Command
|
---|
Methods