bumblebee-status/doc/MODULE_MIGRATION.md

11 lines
487 B
Markdown
Raw Normal View History

2020-03-01 13:32:30 +00:00
# Migration of modules
- bumblebee.util.which has been replaced with shutil.which
- bumblebee.engine.Module has been replaced with core.module.Module
- module __init__ has less parameters
- super() works differently
- engine.input.register_callback is now core.input.register
- update() only has a single parameter (self) (no widgets anymore)
2020-03-06 13:52:54 +00:00
- bumblebee.util.format stuff moved into util.format (byte, aslist, asbool, etc.)
2020-03-07 12:33:28 +00:00
- util.format.duration -> shorten -> compact, suffix -> unit