Skip to content
Browse files

Add a TimeOut example.

  • Loading branch information...
1 parent 1993a53 commit 61342912368e3c2c1ac6f67000046dfbcebff4ae @mbalmer mbalmer committed Apr 8, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 timeout.lua
View
13 timeout.lua
@@ -0,0 +1,13 @@
+-- Using timeouts in LuaMotif programs
+
+require 'motif'
+
+app = Initialize("TimeOut")
+
+local function interval ()
+ print('Tick...')
+ app:AddTimeOut(1000, interval)
+end
+
+app:AddTimeOut(1000, interval)
+app:MainLoop()

0 comments on commit 6134291

Please sign in to comment.
Something went wrong with that request. Please try again.