コード例 #1
0
ファイル: dataroamerframe.py プロジェクト: drammock/sppas
    def __init__(self, parent, id, args={}):
        """
        Creates a new ComponentFrame instance for DataRoamer component.
        """
        ComponentFrame.__init__(self, parent, id, args)

        self._update_about()
        self._append_in_menu()
        self._append_in_toolbar()
コード例 #2
0
ファイル: datastatsframe.py プロジェクト: lym0302/sppas
    def __init__(self, parent, idc, prefsIO):

        arguments = {}
        arguments['files'] = []
        arguments['title'] = "SPPAS - DataStats"
        arguments['type'] = "DATAFILES"
        arguments['icon'] = STATISTICS_APP_ICON
        arguments['prefs'] = prefsIO

        ComponentFrame.__init__(self, parent, idc, arguments)
コード例 #3
0
ファイル: ipuscribeframe.py プロジェクト: drammock/sppas
    def __init__(self, parent, id, args={}):
        """
        Creates a new ComponentFrame instance for IPUscribe component.
        """
        ComponentFrame.__init__(self, parent, id, args)

        self._update_about()
        self._append_in_menu()
        self._append_in_toolbar()
        self._add_accelerator()
コード例 #4
0
ファイル: statisticsframe.py プロジェクト: brigittebigi/sppas
    def __init__(self, parent, idc, prefsIO):

        arguments = {}
        arguments['files'] = []
        arguments['title'] = "SPPAS - DataStats"
        arguments['type']  = "DATAFILES"
        arguments['icon']  = STATISTICS_APP_ICON
        arguments['prefs'] = prefsIO

        ComponentFrame.__init__(self, parent, idc, arguments)
コード例 #5
0
ファイル: sppaseditframe.py プロジェクト: brigittebigi/sppas
    def _init_members( self, args ):
        """
        Override.
        Sets the members settings.

        """
        ComponentFrame._init_members( self,args )

        if isinstance(self._prefsIO.GetTheme(), BaseTheme):
            self._prefsIO.SetTheme( all_themes.get_theme(u'Default') )

        self._fmtype = "ANYFILES"
コード例 #6
0
ファイル: sppaseditframe.py プロジェクト: brigittebigi/sppas
    def __init__(self, parent, id, prefsIO):
        """
        Creates a new ComponentFrame instance for SppasEdit component.
        """
        arguments = {}
        arguments['files'] = []
        arguments['title'] = "SPPAS - Vizualizer"
        arguments['type']  = "ANYFILES"
        arguments['icon']  = SPPASEDIT_APP_ICON
        arguments['prefs'] = prefsIO
        ComponentFrame.__init__(self, parent, id, arguments)

        self._append_in_menu()
コード例 #7
0
ファイル: dataroamerframe.py プロジェクト: lym0302/sppas
    def DataRoamerProcessEvent(self, event):
        """
        Processes an event, searching event tables and calling zero or more
        suitable event handler function(s).  Note that the ProcessEvent
        method is called from the wxPython docview framework directly since
        wxPython does not have a virtual ProcessEvent function.
        """
        ide = event.GetId()

        if ide == NEW_ID:
            self._clientpanel.New()
            return True

        elif ide == wx.ID_SAVE:
            self._clientpanel.Save()
            return True

        elif ide == SAVE_AS_ID:
            self._clientpanel.SaveAs()
            return True

        elif ide == SAVE_ALL_ID:
            self._clientpanel.SaveAll()
            return True
        
        else:
            ComponentFrame.ProcessEvent(self, event)
コード例 #8
0
ファイル: ipuscribeframe.py プロジェクト: brigittebigi/sppas
    def __init__(self, parent, idc, prefsIO):

        arguments = {}
        arguments['files'] = []
        arguments['title'] = "SPPAS - IPUscriber"
        arguments['type']  = "SOUNDFILES"
        arguments['icon']  = IPUSCRIBE_APP_ICON
        arguments['prefs'] = prefsIO

        ComponentFrame.__init__(self, parent, idc, arguments)
        self._add_accelerator()

        self.toolbar.AddButton(wx.ID_SAVE, SAVE_FILE, "Save")
        self.toolbar.AddButton(SAVE_ALL_ID, SAVE_ALL_FILE, "Save all")
        self.Bind(wx.EVT_BUTTON, self.IPUscribeProcessEvent)

        self._LayoutFrame()
コード例 #9
0
ファイル: dataroamerframe.py プロジェクト: gmontcheuil/sppas
    def __init__(self, parent, idc, prefsIO):

        arguments = {}
        arguments['title'] = 'SPPAS - Data Roamer'
        arguments['icon']  = DATAROAMER_APP_ICON
        arguments['type']  = "DATAFILES"
        arguments['prefs'] = prefsIO

        ComponentFrame.__init__(self, parent, idc, arguments)
        self._add_accelerator()

        self.toolbar.AddButton(NEW_ID, NEW_FILE,  "New")
        self.toolbar.AddButton(wx.ID_SAVE, SAVE_FILE, "Save")
        self.toolbar.AddButton(SAVE_AS_ID, SAVE_AS_FILE, "Save as")
        self.toolbar.AddButton(SAVE_ALL_ID, SAVE_ALL_FILE, "Save all")
        self.Bind(wx.EVT_BUTTON, self.DataRoamerProcessEvent)

        self._LayoutFrame()
コード例 #10
0
ファイル: dataroamerframe.py プロジェクト: lym0302/sppas
    def __init__(self, parent, idc, prefsIO):

        arguments = {}
        arguments['title'] = 'SPPAS - Data Roamer'
        arguments['icon']  = DATAROAMER_APP_ICON
        arguments['type']  = "DATAFILES"
        arguments['prefs'] = prefsIO

        ComponentFrame.__init__(self, parent, idc, arguments)
        self._add_accelerator()

        self.toolbar.AddButton(NEW_ID, NEW_FILE,  "New")
        self.toolbar.AddButton(wx.ID_SAVE, SAVE_FILE, "Save")
        self.toolbar.AddButton(SAVE_AS_ID, SAVE_AS_FILE, "Save as")
        self.toolbar.AddButton(SAVE_ALL_ID, SAVE_ALL_FILE, "Save all")
        self.Bind(wx.EVT_BUTTON, self.DataRoamerProcessEvent)

        self._LayoutFrame()