Availability: S60.
The globalui module offers an interface to the S60 global UI notifiers. This allows a global note and query to be launched from an application which does not have a UI environment. The globalui module have functions:
| note_text[, type]) |
'info'. type can be
one of the following strings: 'error', 'text', 'warn', 'charging',
'wait', 'perm','not_charging', 'battery_full', 'battery_low',
'recharge_battery', or 'confirm'.
| query_text[, timeout]) |
1 when the user presses 'Yes' and 0 otherwise. If the user does
not respond to the query within timeout seconds, returns None.
If the timeout value is 0, then the query waits indefinitely for user input.
The default value for timeout is 0. The timeout value should be an integer.
| query_text, header_text[, timeout]) |
1 when the user
presses 'OK' and 0 otherwise. If the user does not respond to the query within
timeout seconds, returns None. If the timeout value is 0, then the query
waits indefinitely for user input. The default value for timeout is 0.
The timeout value should be an integer.
| option_items[, header_text, timeout]) |
None. If the timeout
value is 0, then the menu waits indefinitely for the input. The default value for timeout
is 0. The timeout value should be an integer.
Example:
>>> import globalui, time ... >>> text_to_show = u"text for showing note" >>> globalui.global_note(text_to_show,'error') >>> time.sleep(6) >>> globalui.global_note(text_to_show) >>> time.sleep(6) >>> result = globalui.global_query(u"do you want to continue ?") >>> time.sleep(6) >>> listresult = globalui.global_popup_menu([u"MenuItem1", u"MenuItem2"],u"Select item",5) ...
See About this document... for information on suggesting changes.