libtextworker 0.1.4
Cross-platform, free and open library for Python projects
|
Public Member Functions | |
def | __init__ (this, object Target, typing.Callable|type Func) |
def | configure (this, str color) |
A class that automatically syncs your UI to match system settings. Why UISync: * The original ColorManager.autocolor_run, which just makes a thread running ColorManager.configure, does not work. * Easy to use, quick setup. No need to derive this class! * I've looked for solutions from older builds of texteditor/textworker, found that v1.4 uses a custom class. So I made this:) Notes: * The target function that will be used must accept at least arguments, with the first one (excluding the self parameter if any) is for the widget, the second one is for the color. * Nothing more (for now) Don't get this class wrong: This only makes a thread that uses your custom function.
Definition at line 33 of file manager.py.