mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Python: Fix access to globals when there's more than one
The getter for the global didn't capture the correct global_class, just the last iteration. This fixes the broken printer demo.
This commit is contained in:
parent
86cde942b7
commit
0b6381d012
3 changed files with 15 additions and 5 deletions
|
@ -45,6 +45,8 @@ def test_load_file_wrapper():
|
|||
|
||||
assert instance.MyGlobal.minus_one(100) == 99
|
||||
|
||||
assert instance.SecondGlobal.second == "second"
|
||||
|
||||
del instance
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue