def execute(self, name, action): if name in look.looks: look.Look.mylook = name look.init_colors() widget.refresh_all_widgets() else: message.error("`{0}' looks doesn't exist".format(name))
def setup(self, rcpath): error = self.loadrcfile(rcpath) look.init_colors() sysver = sys.version.replace(os.linesep, "") widgets.message.puts("Launching on Python {0}".format(sysver)) if error: widgets.message.exception(error) widgets.message.error("RC error: instead loaded `{0}'".format(self.environs["RCFILE"])) else: widgets.message.puts("Loaded {0}".format(self.environs["RCFILE"])) widget.refresh_all_widgets()
def _refresh_window(): """Refresh all window.""" widget.refresh_all_widgets()