Skip to content

Commit

Permalink
for #447 - include the lastest program.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecil committed Jul 10, 2019
1 parent 0dd9205 commit 9497147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/touch/kiosk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://startingelectronics.org/projects/raspberry-PI-projects/kiosk-gtk-glade/
# issue #447
$shops = [
{ name: "Joes Shoes", picture: "res/shop1.png", point: [104, 92]},
{ name: "Joe's Shoes", picture: "res/shop1.png", point: [104, 92]},
{ name: "Coffee Shop", picture: "res/shop2.png", point: [485, 92]},
{ name: "Post Office", picture: "res/shop3.png", point: [104, 307]},
{ name: "Meg's Clothing", picture: "res/shop4.png", point: [485,307]}
Expand Down Expand Up @@ -49,6 +49,7 @@ def second_panel(index)

@panel = stack do
mall_view
# could be 'touch do'?
click do |btn,x,y,mods|
idx = hit_detect(x,y)
if idx
Expand Down

0 comments on commit 9497147

Please sign in to comment.