Пример #1
0
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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()