FoxDot.lib.Workspace.Console

class FoxDot.lib.Workspace.Console.Counter(parent, *args, **kwargs)[source]

Bases: Canvas

hide()[source]
redraw()[source]

Draw boxes and highlight current beat

toggle()[source]
unhide()[source]
class FoxDot.lib.Workspace.Console.console(master)[source]

Bases: object

canvas_mouseclick(event)[source]

Forces the text to align itself and gives focus to the console

canvas_mousedrag(event)[source]

Changes selection

canvas_mouserelease(event)[source]
clear()[source]

Clears the console

config(*args, **kwargs)[source]
drag_mouseclick(event)[source]

Allows the user to resize the console height

drag_mousedrag(event)[source]
drag_mouserelease(event)[source]
draw_arrow(start_x, start_y, width, colour, direction, degree=45)[source]

Works out the line to draw at 45 degrees, returns the x and y of the end of the line. Direction should be a string, “up” or “down”

Draws the red and green lines in the bg of the console. Future versions will have randomly created lines & possibly animated.

edit_copy(event=None)[source]
flush()[source]
get_scrollbar_size()[source]
hide()[source]

Removes console from interface

move_text(delta)[source]

Moves the text up (negative) or down (positive)

on_scroll(event)[source]
read()[source]

Returns contents of the console widget

scroll_text(*args)[source]
select_all(event=None)[source]
show()[source]
show_popup(*args)[source]

Shows the right-click context menu and hides the text popup

update()[source]
update_scrollbar(point=None)[source]

point should be a value between 0 and 1.0

write(string)[source]

Adds string to the bottom of the console