קוד: |
#!/bin/bash DIALOG=${DIALOG=dialog} $DIALOG --title " My first dialog" --clear \ --yesno "Hello , this is my first dialog program" 10 30 case $? in 0) echo "Yes chosen.";; 1) echo "No chosen.";; 255) echo "ESC pressed.";; esac |
קוד: |
vitali@Moooo:~$ ls -lh /dev/fb?
crw-rw---- 1 root video 29, 0 2012-02-28 18:58 /dev/fb0 vitali@Moooo:~$ |
קוד: |
import pygame pygame.init() window = pygame.display.set_mode((640, 480)) pygame.draw.line(window, (255, 255, 255), (297,317),(397,317))#lower axis_x line pygame.draw.rect(window, (255, 255, 255), pygame.Rect(tmp_point[0], tmp_point[1], 16,16)) |