# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t


import xmlres
import wx
import adm
from wh import xlt
  from AdmDialogs import Preferences
    elif rr > 6:
      rr = 6+ (rr-6)/2

    rrc.SetValue(rr)
    rrc.Bind(wx.EVT_COMMAND_SCROLL, self.OnRefreshRate)
    

  def OnRefresh(self, evt=None):
    self.TriggerTimer()
    
  def OnRefreshRate(self, evt=None):
    rr=self.RefreshRate
    if rr == self['RefreshRate'].GetMax():
      rr=0
      self.RefreshStatic=xlt("stopped")
    else:
      if rr > 19:
        rr = (rr-19)*300 +300
      elif rr > 15:
        rr = (rr-15)*60 + 60
      elif rr > 12:
        rr = (rr-12)*10 + 30
      elif rr > 8:
        rr = (rr-8)*5 +10
      elif rr > 6:
        rr = (rr-6)*2 +6
      
      if rr < 60:
        self.RefreshStatic=xlt("%d sec") % rr
      else:

# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t


# Path: page.py
import xmlres
import wx
import adm
from wh import xlt
  from AdmDialogs import Preferences

    elif rr > 6:
      rr = 6+ (rr-6)/2

    rrc.SetValue(rr)
    rrc.Bind(wx.EVT_COMMAND_SCROLL, self.OnRefreshRate)
    

  def OnRefresh(self, evt=None):
    self.TriggerTimer()
    
  def OnRefreshRate(self, evt=None):
    rr=self.RefreshRate
    if rr == self['RefreshRate'].GetMax():
      rr=0
      self.RefreshStatic=xlt("stopped")
    else:
      if rr > 19:
        rr = (rr-19)*300 +300
      elif rr > 15:
        rr = (rr-15)*60 + 60
      elif rr > 12:
        rr = (rr-12)*10 + 30
      elif rr > 8:
        rr = (rr-8)*5 +10
      elif rr > 6:
        rr = (rr-6)*2 +6
      
      if rr < 60:
        self.RefreshStatic=xlt("%d sec") % rr
      else:

        self.RefreshStatic=xlt("%d min") % (rr/60)