minipix_uart_interface
A library and examples for the MiniPIX UART interface
|
Functions | |
def | loadImage (key) |
| ----------------------— methods ---------------------— | More... | |
def | listBoxOnSelect (evt) |
callback for clicking on the listbox More... | |
def | win_deleted () |
Variables | |
string | file_path = "data/oneweb.txt" |
infile = open(file_path, "r", encoding="ascii") | |
frame_data = parseStream(infile) | |
dictionary | images_data = {} |
list | id_list = [] |
root = tkinter.Tk() | |
| ------------------------— gui -----------------------— | More... | |
frame_main = tkinter.Frame(root); | |
side | |
TOP | |
fill | |
BOTH | |
expand | |
frame_left = tkinter.Frame(frame_main, bd=1); | |
LEFT | |
Y | |
padx | |
pady | |
frame_right = tkinter.Frame(frame_main); | |
RIGHT | |
my_figure = Figure(facecolor='none', figsize=(8.2, 6.8), dpi=120) | |
figure_canvas = FigureCanvasTkAgg(my_figure, master=frame_right) | |
subplot1 = my_figure.add_subplot(221) | |
subplot2 = my_figure.add_subplot(222) | |
subplot3 = my_figure.add_subplot(223) | |
scrollbar = tkinter.Scrollbar(master=frame_left, orient=tkinter.VERTICAL) | |
listbox = tkinter.Listbox(master=frame_left, yscrollcommand=scrollbar.set, selectmode=tkinter.SINGLE) | |
command | |
def decoder.listBoxOnSelect | ( | evt | ) |
callback for clicking on the listbox
evt |
def decoder.loadImage | ( | key | ) |
| ----------------------— methods ---------------------— |
show the image in the GUI
key | image ID (key in the image map) |
def decoder.win_deleted | ( | ) |
decoder.BOTH |
decoder.command |
decoder.expand |
decoder.figure_canvas = FigureCanvasTkAgg(my_figure, master=frame_right) |
string decoder.file_path = "data/oneweb.txt" |
decoder.fill |
decoder.frame_data = parseStream(infile) |
decoder.frame_left = tkinter.Frame(frame_main, bd=1); |
decoder.frame_main = tkinter.Frame(root); |
decoder.frame_right = tkinter.Frame(frame_main); |
list decoder.id_list = [] |
dictionary decoder.images_data = {} |
decoder.infile = open(file_path, "r", encoding="ascii") |
decoder.LEFT |
decoder.listbox = tkinter.Listbox(master=frame_left, yscrollcommand=scrollbar.set, selectmode=tkinter.SINGLE) |
decoder.my_figure = Figure(facecolor='none', figsize=(8.2, 6.8), dpi=120) |
decoder.padx |
decoder.pady |
decoder.RIGHT |
decoder.root = tkinter.Tk() |
| ------------------------— gui -----------------------— |
decoder.scrollbar = tkinter.Scrollbar(master=frame_left, orient=tkinter.VERTICAL) |
decoder.side |
decoder.subplot1 = my_figure.add_subplot(221) |
decoder.subplot2 = my_figure.add_subplot(222) |
decoder.subplot3 = my_figure.add_subplot(223) |
decoder.TOP |
decoder.Y |