mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 15:52:19 +00:00
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:
parent
acafc9c3e6
commit
a98d4709be
241 changed files with 187 additions and 982 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue