Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(WindowBehaviorPage, self).__init__(columns=2, growableColumn=-1, 
                                              *args, **kwargs)
     self.addBooleanSetting('window', 'splash', 
         _('Show splash screen on startup'))
     self.addBooleanSetting('window', 'tips', 
         _('Show tips window on startup'))
     self.addChoiceSetting('window', 'starticonized',
         _('Start with the main window iconized'), '',
         [('Never', _('Never')), ('Always', _('Always')), 
          ('WhenClosedIconized', 
           _('If it was iconized last session'))])
     self.addBooleanSetting('version', 'notify', _('Check for new version '
                            'of %(name)s on startup') % meta.data.metaDict)
     self.addBooleanSetting('view', 'developermessages', _('Check for '
         'messages from the %(name)s developers on startup') % \
         meta.data.metaDict)
     self.addBooleanSetting('window', 'hidewheniconized', 
         _('Hide main window when iconized'))
     self.addBooleanSetting('window', 'hidewhenclosed', 
         _('Minimize main window when closed'))
     if not operating_system.isMacOsXMavericks_OrNewer():
         self.addBooleanSetting('window', 'blinktaskbariconwhentrackingeffort',
             _('Make clock in the task bar tick when tracking effort'))
     self.fit()
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     super(WindowBehaviorPage, self).__init__(columns=2,
                                              growableColumn=-1,
                                              *args,
                                              **kwargs)
     self.addBooleanSetting('window', 'splash',
                            _('Show splash screen on startup'))
     self.addBooleanSetting('window', 'tips',
                            _('Show tips window on startup'))
     self.addChoiceSetting(
         'window', 'starticonized',
         _('Start with the main window iconized'), '',
         [('Never', _('Never')), ('Always', _('Always')),
          ('WhenClosedIconized', _('If it was iconized last session'))])
     self.addBooleanSetting(
         'version', 'notify',
         _('Check for new version '
           'of %(name)s on startup') % meta.data.metaDict)
     self.addBooleanSetting('view', 'developermessages', _('Check for '
         'messages from the %(name)s developers on startup') % \
         meta.data.metaDict)
     self.addBooleanSetting('window', 'hidewheniconized',
                            _('Hide main window when iconized'))
     self.addBooleanSetting('window', 'hidewhenclosed',
                            _('Minimize main window when closed'))
     if not operating_system.isMacOsXMavericks_OrNewer():
         self.addBooleanSetting(
             'window', 'blinktaskbariconwhentrackingeffort',
             _('Make clock in the task bar tick when tracking effort'))
     self.fit()
Ejemplo n.º 3
0
 def onEverySecond(self):
     if self.__settings.getboolean('window',
         'blinktaskbariconwhentrackingeffort') and \
         not operating_system.isMacOsXMavericks_OrNewer():
         self.__toggleTrackingBitmap()
         self.__setIcon()
Ejemplo n.º 4
0
 def onEverySecond(self):
     if self.__settings.getboolean('window',
         'blinktaskbariconwhentrackingeffort') and \
         not operating_system.isMacOsXMavericks_OrNewer():
         self.__toggleTrackingBitmap()
         self.__setIcon()