Forms - dialogs

This commit is contained in:
kepler155c@gmail.com
2016-12-26 22:26:43 -05:00
parent d61260ec9b
commit 5c12b20fae
14 changed files with 365 additions and 292 deletions

View File

@@ -121,14 +121,14 @@ function page.grid:draw()
end
end
function updateComputers()
Event.addThread(function()
while true do
page.grid:update()
page.grid:draw()
page:sync()
os.sleep(1)
end
end
end)
Event.addHandler('device_attach', function(h, deviceName)
if deviceName == 'wireless_modem' then
@@ -149,5 +149,5 @@ if not device.wireless_modem then
end
UI:setPage(page)
Event.pullEvents(updateComputers)
Event.pullEvents()
UI.term:reset()