kicad2ems.gui.startpage

The Start page: where a window with no board begins.

    StartPage(win)  open a board, a config or a results folder; the configs
                    opened lately; and every example (kicad2ems's own and those
                    the installed analyses ship) as a tile with its board drawn,
                    by group, with a box that finds one by a word of its name or
                    title

A tile opens its example as File > Examples does (win.open_example: copied to a
folder of the user's, its board made if it is generated). The pictures are drawn
from the boards themselves, in a thread, once: kept as PNG files under the
user's cache folder ($XDG_CACHE_HOME/kicad2ems/thumbs), by example and kicad2ems
version. A board that is generated is made in the cache for it, not in the
user's examples folder.
class kicad2ems.gui.startpage.StartPage(win=None, entries=None)[source]
filter(text='')[source]
The tiles that have every word of `text` in their name, title or
group; none typed: each group's first few, or all of one that was
opened.
set_examples(entries)[source]
The tiles, by the examples' top group, in the index's order.
start_pictures()[source]
The tiles' pictures, drawn in a thread (once: they are kept in the
cache folder).
toggle(group)[source]
All of a group's tiles, or its first few.
class kicad2ems.gui.startpage.Tile(entry)[source]
An example: its board's picture, its heading, its name; a click opens
it.
kicad2ems.gui.startpage.board_image(layout, size=(220, 128))[source]
A board as drawn (kicad2ems.core.layout.board_layout's dict), from above,
as a picture: its outline, the copper of the layers under the top faint, the
top layer's over them.
kicad2ems.gui.startpage.short_title(entry)[source]
An example's heading on its tile: its title up to the first comma, colon
or bracket, capitalised.