Definition at line 1346 of file selectPanel.py.
Public Member Functions | |
def | __init__ |
def | OnPathChoice |
def | OnClose |
def | clear |
def | SetPath |
def | GetPath |
def | SetPathDevice |
Public Attributes | |
listBox | |
main | |
Private Attributes | |
__cdb | |
__callback | |
__deviceInfo | |
__path | |
__device |
def selectPanel::PathSelect::__init__ | ( | self, | ||
cdb, | ||||
parent = None , |
||||
callback = None , |
||||
device = None | ||||
) |
Constructor.
Parameters: - the parent window (usually MainWindow) - the confDB instance that should be used (reference) - position of the path window - window style - callable object method that should be called if a path is selected. callback must have 3 parameters: (self, dictionary deviceInfo, integer pathNr)
Definition at line 1360 of file selectPanel.py.
def selectPanel::PathSelect::OnPathChoice | ( | self, | ||
event | ||||
) |
User chose a path from the path window.
Definition at line 1399 of file selectPanel.py.
def selectPanel::PathSelect::OnClose | ( | self, | ||
event | ||||
) |
Path window is closing.
Definition at line 1407 of file selectPanel.py.
def selectPanel::PathSelect::clear | ( | self | ) |
Clear the list of paths in the control and reset path selection.
Definition at line 1413 of file selectPanel.py.
def selectPanel::PathSelect::SetPath | ( | self, | ||
pathNr, | ||||
update = True | ||||
) |
Choose a specific path in the list
- the number of the path to select (integer); NOT the index in the path list! update (optional, default: True) if True the given callback function is called (detailed description given in the constructor)
Definition at line 1427 of file selectPanel.py.
def selectPanel::PathSelect::GetPath | ( | self | ) |
Return the index of the path selected.
Definition at line 1439 of file selectPanel.py.
def selectPanel::PathSelect::SetPathDevice | ( | self, | ||
deviceobj | ||||
) |
Set the device for which paths should be shown in path window.
This method calls GetPathIDs method for the device object chosen
Parameters: - the device data object which we will get the paths for
Definition at line 1451 of file selectPanel.py.
Definition at line 1369 of file selectPanel.py.
selectPanel::PathSelect::__cdb [private] |
Definition at line 1381 of file selectPanel.py.
selectPanel::PathSelect::__callback [private] |
Definition at line 1382 of file selectPanel.py.
selectPanel::PathSelect::__deviceInfo [private] |
Definition at line 1383 of file selectPanel.py.
selectPanel::PathSelect::__path [private] |
Definition at line 1384 of file selectPanel.py.
selectPanel::PathSelect::__device [private] |
Definition at line 1385 of file selectPanel.py.
Definition at line 1387 of file selectPanel.py.