Move printer demo and energy-monitor into new top-level demos/ folder

These are showing off use-cases for Slint, but they're not examples showing individual Slint features.

Also removed the old printerdemo while at it.
This commit is contained in:
Simon Hausmann 2024-10-24 17:02:17 +02:00 committed by Simon Hausmann
parent acafc9c3e6
commit a98d4709be
241 changed files with 187 additions and 982 deletions

View file

@ -39,7 +39,7 @@ def test_property_access():
finished: true,
dash-prop: true,
};
in property <image> imageprop: @image-url("../../../examples/printerdemo/ui/images/cat.jpg");
in property <image> imageprop: @image-url("../../../demos/printerdemo/ui/images/cat.jpg");
callback test-callback();
}
@ -177,7 +177,7 @@ def test_callbacks():
if __name__ == "__main__":
import slint
module = slint.load_file(
"../../examples/printerdemo/ui/printerdemo.slint")
"../../demos/printerdemo/ui/printerdemo.slint")
instance = module.MainWindow()
instance.PrinterQueue.start_job = lambda title: print(
f"new print job {title}")