Exemple #1
0
def action(text):
    print(colours.get("dgrey") + "-" + colours.get("white") + " " + text)
Exemple #2
0
def error(text):
    print(colours.get("red") + "X" + colours.get("white") + " " + text)
Exemple #3
0
def warning(text):
    print(colours.get("lyellow") + "!" + colours.get("white") + " " + text)
Exemple #4
0
def returns(text):
    print(colours.get("blue") + "<" + colours.get("white") + " " + text)
Exemple #5
0
import compiler

import libs.strings.en_GB

_ = lang._

VERSION = "V0.1.0"

args = sys.argv

requiredInstalls = False

if (len(args) > 1 and (args[1] == "--hide" or args[1] == "-h")):
    args.pop(1)
elif storage.read("hide") != "true":
    print(_("welcome", [colours.get("lred"), colours.get("white"), VERSION]))
    print(_("copyright"))
    print("")

    if storage.read("locale") == None:
        output.warning(_("setLocaleWarning", [lang.getLocale()]))
        print("")

# Install libraries for when they don't exist
def installLib(name, description):
    global requiredInstalls

    requiredInstalls = True

    output.action(_("installRequiredLibs", [description]))
Exemple #6
0
import libs.docgen as docgen

import libs.strings.en_GB

_ = lang._

VERSION = "V0.1.0"

args = sys.argv

requiredInstalls = False

if (len(args) > 1 and (args[1] == "--hide" or args[1] == "-h")):
    args.pop(1)
elif storage.read("hide") != "true":
    print(_("welcome", [colours.get("lyellow"),
                        colours.get("white"), VERSION]))
    print(_("copyright"))
    print("")

    if storage.read("locale") == None:
        output.warning(_("setLocaleWarning", [lang.getLocale()]))
        print("")


# Install libraries for when they don't exist
def installLib(name, description):
    global requiredInstalls

    requiredInstalls = True