Пример #1
0
 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))
Пример #2
0
 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()
Пример #3
0
def _refresh_window():
    """Refresh all window."""
    widget.refresh_all_widgets()