API

class pysimavrgui.buttongame.ButtonGame(hook=None, shortcut=None, label='', size='auto', display_shortcut=True, font_size=14)
colors = {'text': (0, 0, 0), 'border': (0, 0, 0), 'transparent': (7, 7, 7), 'off': (100, 255, 100), 'on': (255, 100, 100)}
handleEvents(event)
size
surface
update()
class pysimavrgui.compgame.CompositeGame(devs, align=0, size='auto', gap=2)
BG_COLOR = (220, 220, 255)
exit()
handleEvents(event)
size
surface
update()
class pysimavrgui.infogame.InfoGame(avr)
exit()
reload()
pysimavrgui.infogame.format_freq(f)
class pysimavrgui.lcdgame.LcdGame(char_func, disp_size=(10, 2), label='')
colors = {'text': (0, 0, 0), 'bgr': (100, 240, 100), 'font_bgr': (120, 240, 120), 'border': (0, 0, 0)}
load_fonts()
size
surface
update()
class pysimavrgui.ledgame.LedGame(state_func, label='', size=(30, 30))
colors = {'on': (255, 100, 100), 'off': (100, 255, 100), 'text': (0, 0, 0), 'border': (0, 0, 0), 'transparent': (7, 7, 7), 'pulse': (175, 175, 100)}
on
pulse
size
state

(on/off,pulse)

surface
update()
class pysimavrgui.ledrowgame.LedRowGame(state_func, disp_size=None, labels=None, align=0, size='auto')
class pysimavrgui.maingame.MainGame(dev, pos=(0, 0), fps=50, size='auto', title='python-simavr', visible=True, scrshot_by_exit=None)
BG_COLOR = (100, 100, 180)
cb_exit()
cb_loop()
handleEvents()
run_game()
screenshot(dev=None, img_file='screenshot.png')
terminate()
class pysimavrgui.sgm7game.Sgm7Game(segments_func, disp_size=4, label='')
colors = {'on': (0, 0, 0), 'bgr': [210, 210, 210], 'off': [230, 230, 230], 'text': (0, 0, 0), 'border': (0, 0, 0), 'pulse': (222, 0, 0)}
draw_digit(i, segments, color)
size
surface
update()
class pysimavrgui.textgame.TextGame(text_func, size=(30, 30), font_size=19)

multi line is not supported!

colors = {'text': (0, 0, 0)}
font
size
surface
text
update()

Previous topic

CLI help for examples

Next topic

Development

This Page