Skip to content

Commit

Permalink
changed e.data to e.getString() in qxexample example
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Dec 30, 2023
1 parent 1abce10 commit 493fcb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/qxexample/qxexample.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc main() =
let window = newWindow()

window.bind("Button1Click") do (e: Event) -> string:
echo "Received callback: ", e.data
echo "Received callback: ", e.getString()
inc counter

return """{"label1": "Message from Nim", "label2": "$1"}""" % $counter
Expand Down

0 comments on commit 493fcb6

Please sign in to comment.