ขออวยพรให้กิจการรุ่งๆนะครับ เอาใจช่วย
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: samira on March 14, 2013, 08:57:02 PM
อยากทำได้แบบนี้บ้าง สวยดีจัง
ช่วยอธิบายรูปแบบโปรแกรมหน่อยซิครับ
ผมและคนอื่นจะได้เรียนไปด้วย ว่าเขียนยังไง
import pygame,os
os.environ['SDL_VIDEODRIVER'] = 'windib'
import pygame.display
pygame.init()
screen = pygame.display.set_mode((800, 900))
rpi = pygame.image.load("rpi1.png")
#font = pygame.font.SysFont("Cheeky Rabbit", 72,False)
font = pygame.font.SysFont("Out AEG LCD", 100,False)
running = 1
screen.fill((0, 0, 0))
pygame.display.set_caption('Test Graphic')
text = font.render("Raspberry Pi", False, (0, 255, 0))
screen.blit(text,[10,0])
font = pygame.font.SysFont("tahoma", 30,True)
text = font.render("----------------------------------------------------------------------------------------", False, (50, 50, 50))
screen.blit(text,[10,65+20])
font = pygame.font.SysFont("Out AEG LCD", 100,False)
text = font.render("Rev. B", True, (255, 0, 0))
screen.blit(text,[10,80+25])
font = pygame.font.SysFont("tahoma", 30,True)
text = font.render("----------------------------------------------------------------------------------------", False, (50, 50, 50))
screen.blit(text,[10,145+35])
font = pygame.font.SysFont("Out AEG LCD", 100,False)
text = font.render("512 MB", True, (0, 128 , 128))
screen.blit(text,[10,160+45])
font = pygame.font.SysFont("tahoma", 30,True)
text = font.render("----------------------------------------------------------------------------------------", False, (50, 50, 50))
screen.blit(text,[10,225+60])
screen.blit(rpi,[320,170])
font = pygame.font.SysFont("Out AEG LCD", 75,False)
text = font.render("Electoday", True, (255, 255, 0))
screen.blit(text,[10,350])
pygame.display.flip()
while running:
event = pygame.event.poll()
if event.type == pygame.QUIT:
running = 0
Quote from: chessy on March 14, 2013, 10:07:11 AM
อยู่แถวอ่อนนุชครับ
ตอนนี้ผมซื้อออนไลน์ที่NPE แล้วครับมีพวก r c พอสมควร
เพิ่งสั่งออนไลน์เป็นครั้งแรก
ถ้าใครมีที่ไหนแนะนำอีกก้อแนะนำมาได้นะครับ