Advertisement
Christophe3D

Tao3D: two clickable rectangles

Dec 3rd, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. texte -> "Rien"
  2.  
  3. active_widget
  4.     color "red"
  5.     rectangle -200, 0, 200, 100
  6.     on_click
  7.         texte := "Rouge"
  8.         refresh 0
  9.  
  10. active_widget
  11.     color "blue"
  12.     rectangle 200, 0, 200, 100
  13.     on_click
  14.         texte := "Bleu"
  15.         refresh 0
  16.  
  17. text_box 0, 200, 400, 200,
  18.     font "Arial", 80
  19.     align_center
  20.     vertical_align_center
  21.     color_for texte
  22.     color_for "Bleu"  -> color "red"
  23.     color_for "Rouge" -> color "green"
  24.     color_for Other   -> color "grey"
  25.     text texte
  26.  
  27. draw_selection X, Y, W, H -> false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement