khchen / wNim

Nim's Windows GUI Framework
MIT License
327 stars 17 forks source link

How to inject something in app.mainLoop() #50

Closed Dev1lroot closed 4 years ago

Dev1lroot commented 4 years ago

for eg. I have an echo "test" can I insert it in app.mainLoop() to echo test while loop is running?

khchen commented 4 years ago

For current version, you cannot do that. To achieve this function, I must design a callback or something like in following version. However, is it really necessary?

Dev1lroot commented 4 years ago

really necessary, of course!

khchen commented 4 years ago

Added.