| Home | Trees | Indices | Help |
|
|---|
|
|
Common methods used in the phase panels.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
clipcells =
|
|||
__id__ =
|
|||
|
|||
Refreshes the TextCtrls on the panel. This is used by phaseconfigurepanel and phaseresultspanel. This method updates the following TextCtrls with with contents of the structure member variable of the panel. textCtrlA textCtrlB textCtrlC textCtrlAlpha textCtrlBeta textCtrlGamma textCtrlScaleFactor textCtrlDelta1 textCtrlDelta2 textCtrlSratio textCtrlRcut textCtrlStepcut textCtrlSpdiameter |
Refreshes grid on the panel. This is used by phaseconfigurepanel and phaseresultspanel. This method fills the grid with the contents of the structure member variable of the panel. It is expected that the grid is named 'gridAtoms'. |
Get list of (row,col) pairs of selected cells. This returns selected cells whether they are in blocks or are independent. This could be sped up if necessary. |
Resize the columns that were recently affected by cell changes. This is faster than the normal grid AutoSizeColumns, since the latter loops over the entire grid. In addition, this will not cause a EVT_GRID_CMD_CELL_CHANGE event to be thrown, which can cause recursion. This method will only increase column size. |
Check to see if we can copy selected cells. To be copyable, the cells must exist in a single block or there must be a single cell selected. Note that a block that is selected by individual cells is considered a collection of individual atoms, not a block. This is default wxPython behavior. |
Check if clipboard contents are formatted for grid insertion. This also checks to see if the cell selection is appropriate for pasting. |
Copy block of selected cells or individual cell into clipboard.
This stores the cells as a plain text grid so that it can be copied to and
from other applications.
Columns are delimited by tabs ' '.
Rows are delimited by newlines '
'.
|
Paste clipboard contents into cells. canPasteIntoCells must be called before this method in order to format clipboard text for pasting. |
|
|||
__id__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Apr 10 19:10:59 2009 | http://epydoc.sourceforge.net |