A mediator that allows different components to give responsibility to
this class for deciding how to manipulate focus. It is this class that
knows what elements are available and where focus should be returned to
when asked to restore the previous focus and cursor position. The details
of doing it for different windows are encapsulated in descendants of the
FocusEntity objects that it contains. Since this is properly a singleton,
it is created by the wutil module itself and accessed as an object of
wutil
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCurrent(self,
force=0)
This is to be used in cases where focus has been lost to a window not
part of this scheme (dialog boxes for example) and it is desired to
return focus to the entity currently considered active. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
focusInFamily(self)
Determine if current focus is within the pyraf family (as defined by
self.focusEntities) |
source code
|
|
|
|
getCurrentMark(self)
Returns mark that can be used to restore focus to current setting |
source code
|
|
|
|
restoreToMark(self,
mark)
Restore focus to value at mark |
source code
|
|