Exemplo n.º 1
0
    def init_data(self):
        """Initialise the data used by the GUI interface."""

        # Temporary data:  the save file.
        self.save_file = None
        self.system_cwd_path = pwd(verbose=False)

        # Add the GUI object to the data store, if not present.
        if not hasattr(ds, 'relax_gui'):
            ds.relax_gui = Gui()
Exemplo n.º 2
0
    def update_status_bar(self):
        """Update the status bar info."""

        # Set the current data pipe info.
        pipe = cdp_name()

        # No data pipe.
        if pipe == None:
            pipe = ''

        # Get the current working directory
        self.system_cwd_path = pwd(verbose=False)

        # The relax information box.
        info = Info_box()

        # Set the status.
        wx.CallAfter(self.status_bar.SetStatusText, info.copyright_short, 0)
        wx.CallAfter(self.status_bar.SetStatusText, self.system_cwd_path, 1)
        wx.CallAfter(self.status_bar.SetStatusText, "Data pipe:", 2)
        wx.CallAfter(self.status_bar.SetStatusText, pipe, 3)