-
-
Save koo5/4270833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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