Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/35m_operations/TUI/TUIMenu/PreferencesWin.html
Дата изменения: Sat Sep 6 02:16:02 2014
Дата индексирования: Sun Apr 10 01:42:33 2016
Кодировка:

Поисковые слова: m 44
TUI:TUI Menu:Preferences Window

TUI:TUI Menu:Preferences Window

The Preferences window allows you to specify various application preferences (surprise!). It is brought up by selecting Preferences from the TUI Menu.

Preferences

The list at the left selects the category; preferences in the selected category are shown in the area to the right. Each preference may be edited by clicking on it. If the value is changed to anything other than the current value then an exclamation mark is shown between the name and the value.

Connection

Exposures

Sounds

Specify sound files for various sound cues. The recommended format is .wav with a sampling rate of 22.05 or 44.1 KHz, as this seems to be compatible with most computers. See pygame documentation for other supported formats.

If you uncheck "Play Sounds" then all sound cues are turned off except "Command Done" and "Command Failed" in response to your own commands. This allows users to run multiple TUIs in the same room with only one copy playing sound cues. It also allows users to quietly monitor what is going on.

Sound cues can only be played if your computer is capable of playing sounds and the pygame library is installed (including the pygame.mixer package). Otherwise a substitute beep pattern is played (a pattern you cannot change). Note that X terminals can only beep, and some may not even be able to do that.

Other Controls

The controls along the bottom are as follows:

Each preference also has a contextual menu which supports at least the following for just that one preference:

Warning: if you close the preferences window without applying changes, you are not warned. I hope to fix this eventually.

Preferences File and Window Geometry File

The paths to the preferences and window geometry files are shown in the About TUI window. Both files are plain text and are easily edited by hand. Errors in a file may give odd results but should not cause instability.