Package application :: Package dialogs :: Module TimeZoneList
[hide private]
[frames] | no frames]

Module TimeZoneList

source code

Classes [hide private]
  TimeZoneChooser
Display a dialog with a table containing the union of TIMEZONE_SHORT_LIST and TimeZoneInfo.wellKnownIDs, plus optionally all PyICU timezones, with check boxes to choose which timezones should be considered well known (and thus displayed).
  TimezoneTable
  CustTableGrid
Functions [hide private]
 
pickTimeZone(view, changeDefaultTZ=True) source code
 
getOffset(tzinfo) source code
 
buildTZChoiceList(view, control, selectedTZ=<Locale: en_US>)
Take a wx.Choice control and a timezone to select.
source code
Variables [hide private]
  TIMEZONE_SHORT_LIST = [u'Pacific/Honolulu', u'America/Anchorag...
  colData = {'checked': {'display': 2, 'header': u'Shown', 'sort...
  displayColToNameMap = {0: 'name', 1: 'offset', 2: 'checked'}
  testtime = datetime.datetime(2006, 1, 1, 0, 0)
  TIMEZONE_OTHER_FLAG = -1
Function Details [hide private]

buildTZChoiceList(view, control, selectedTZ=<Locale: en_US>)

source code 

Take a wx.Choice control and a timezone to select. Populate the control with the appropriate timezones, plus a More option, whose value is TIMEZONE_OTHER_FLAG.

Default selection is view.tzinfo.default.

Variables Details [hide private]

TIMEZONE_SHORT_LIST

Value:
[u'Pacific/Honolulu',
 u'America/Anchorage',
 u'America/Los_Angeles',
 u'America/Denver',
 u'America/Chicago',
 u'America/New_York',
 u'World/Floating',
 u'Europe/London',
...

colData

Value:
{'checked': {'display': 2,
             'header': u'Shown',
             'sort': 2,
             'wxType': 'bool'},
 'name': {'display': 0,
          'header': u'Name',
          'sort': 1,
          'wxType': 'string'},
...