Skip to content

Instantly share code, notes, and snippets.

@koo5
Forked from anonymous/gist:4270683
Created December 12, 2012 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koo5/4270833 to your computer and use it in GitHub Desktop.
Save koo5/4270833 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#-*- coding: utf-8 -*-
import os, sys
import pygame
from pygame import gfxdraw
left_margin = 10
screen_height = 600
pygame.init()
pygame.display.set_caption("777")
pygame.key.set_repeat(300,30)
screen_surface = pygame.display.set_mode((1000,screen_height))
font = pygame.font.SysFont('monospace', 16)
f= font.render(" ",False,(0,0,0)).get_rect()
fonth = f.height
fontw = f.width
screenlines = scrh / fonth
f=None
code = [["sin", "5"],["cos","12"]]
focus = 0,0
def draw():
screen_surface.fill((0,0,0))
for l in range(len( code)):
y = fonth * l
for i in len(code[l]):
item = code[l]
screen_surface.blit(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment