跳转至

maliang.core.configs

字数 122 个   代码 11 行   阅读时间 1 分钟   访问量

源代码:maliang/core/configs.py

All global configuration options.

Some options are read-only, but most of them can be changed, and once changed, they will take effect globally for the program. Some changes take effect immediately, but some need to take effect when the relevant option is invoked.

🟢Constant

class public | object

🟢Env

class public | object

🟡get_default_system

method public

def get_default_system(
) -> str: ...
Get the system of environment.

🟢Font

class public | object

🟡get_default_family

method public

def get_default_family(
) -> str: ...
Get the default font family.

🟢_DefaultRootDescriptor

class protected | object

🟡__get__

method special

1
2
3
4
5
def __get__(
    self,
    *args,
    **kwargs,
) -> tkinter.Tk: ...
Returns the current default root.

In some cases, the method also returns tkinter.Tk and None, but this can happen if the usage is not recommended.

🔵reset

function public

def reset(
) -> None: ...
Reset all configuration options.