示例#1
0
 def about_window(action):
     AboutAppletWindow(self.decorator, f"About Package Manager",
                       "/usr/share/icons/48/package.png", _description,
                       "package")
示例#2
0
 def about_window(action):
     AboutAppletWindow(self.decorator, f"About {app_name}",
                       "/usr/share/icons/48/applications-painting.png",
                       _description, "applications-painting")
示例#3
0
    release = os.uname().release
    if '-' in release:
        return release[:release.index('-')]
    return release


_default_text = f"<b>ToaruOS {version()}</b>\n© 2011-2017 Kevin Lange, et al.\n\nToaruOS is free software released under the NCSA/University of Illinois license.\n\n<color 0x0000FF>http://toaruos.org\nhttps://github.com/klange/toaruos</color>"

if __name__ == '__main__':
    yutani.Yutani()
    d = yutani.Decor()

    def quit():
        sys.exit(0)

    if len(sys.argv) > 4:
        window = AboutAppletWindow(d,
                                   sys.argv[1],
                                   sys.argv[3],
                                   sys.argv[4],
                                   sys.argv[2],
                                   on_close=quit)
    else:
        window = AboutAppletWindow(d,
                                   "About ToaruOS",
                                   '/usr/share/logo_login.png',
                                   _default_text,
                                   on_close=quit)

    yutani_mainloop.mainloop()
示例#4
0
 def about_window(action):
     AboutAppletWindow(self.decorator, f"About {app_name}",
                       "/usr/share/icons/48/help.png", _description,
                       "help")
示例#5
0
 def about_window(action):
     AboutAppletWindow(self.decorator, "About Calculator",
                       "/usr/share/icons/48/calculator.png",
                       _description, "calculator")
示例#6
0
 def about(self, data):
     AboutAppletWindow(d, f"About {app_name}",
                       "/usr/share/icons/48/clock.png", _description,
                       "clock")
示例#7
0
 def about_window(action):
     AboutAppletWindow(self.decorator, "About Help Browser",
                       "/usr/share/icons/48/help.png", _description,
                       "help")
示例#8
0
import yutani
import yutani_mainloop

from about_applet import AboutAppletWindow

def version():
    """Get a release from uname without a git short sha."""
    release = os.uname().release
    if '-' in release:
        return release[:release.index('-')]
    return release

_default_text = f"<b>PonyOS {version()}</b>\n© 2011-2017 Kevin Lange, et al.\n\n<color 0x0000FF>http://ponyos.org/</color>"


if __name__ == '__main__':
    yutani.Yutani()
    d = yutani.Decor()

    def quit():
        sys.exit(0)

    if len(sys.argv) > 4:
        window = AboutAppletWindow(d,sys.argv[1],sys.argv[3],sys.argv[4],sys.argv[2],on_close=quit)
    else:
        window = AboutAppletWindow(d,"About PonyOS",'/usr/share/logo_small.png',_default_text,on_close=quit)

    yutani_mainloop.mainloop()

示例#9
0
 def about_window(action):
     AboutAppletWindow(self.decorator,f"About {app_name}","/usr/share/icons/external/pdfviewer.png",_description,"pdfviewer")