Пример #1
0
 def init_tbicon(self):
     '''Create the wx.TaskBarIcon.'''
     self.__indstatus = False
     # TaskbarIcon
     icon = os.path.join(self.__dir,
                         self.__data.get_sys('tna_icon'))
     title = self.__data.get_sys('frame_title')
     self.__tbicon = TBIcon(frame=self,
                            icon=icon,
                            title=title,
                            textdic={'start': _(u'Start'),
                                     'stop': _(u'Stop'),
                                     'show': _(u'Show'),
                                     'hide': _(u'Hide'),
                                     'exit': _(u'Exit')})
     if self.__tna:
         # Start in the system tray.
         self.__tbicon.set_menu_show()
Пример #2
0
    def init_tbicon(self):
        '''Create the wx.TaskBarIcon. Public objects:
        tbicon = mfc1.TBIcon

        '''
        self.tbtype = 'tbicon'
        # TaskbarIcon
        icon = os.path.join(self.mfcdir,
                            self.data.system['tna_icon'])
        title = self.data.system['frame_title']
        self.tbicon = TBIcon(frame=self,
                             icon=icon,
                             title=title,
                             textdic={'start': _(u'Start'),
                                      'stop': _(u'Stop'),
                                      'show': _(u'Show'),
                                      'hide': _(u'Hide'),
                                      'exit': _(u'Exit'),
                                      'pause': _(u'Pause'),
                                      'cont': _(u'Continue')})
        if self.tna:
            # Start in the system tray.
            self.tbicon.set_menu_show()