create an instance of Gadget, configure it and return to Rust
()
| 3 | |
| 4 | |
| 5 | def start(): |
| 6 | """create an instance of Gadget, configure it and return to Rust""" |
| 7 | g = plugin_api.Gadget() |
| 8 | g.push(1) |
| 9 | g.push(2) |
| 10 | g.push(3) |
| 11 | g.prop = rng.get_random_number() |
| 12 | return g |