From 2cbd7fe2d3c92b9c6a18c377a51dec72e18fb12d Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 25 Oct 2021 17:09:40 +0200 Subject: [PATCH] Typo fix --- src/lib/ui.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ui.rb b/src/lib/ui.rb index 29a37cb..01952c8 100644 --- a/src/lib/ui.rb +++ b/src/lib/ui.rb @@ -84,7 +84,7 @@ class Button < UI # TODO: make a method pointer for button presses etc end - def onclick(id) + def onclick(id, *args, **kwargs) self.method_ptr.call(id, *args, **kwargs) end