dso_draw module

class dso_draw.Draw(parent)

Bases: object

This module can draw or display certain drawing content on your DSO.

ChkCommand(cmd: str) str
clear_win()
Description

Clears the current window.

Prototype

def clear_win(self);

creat_win(x_pos: int, y_pos: int, x_size: int, y_size: int) int
Description

Creates a window as a child window.

Prototype

def creat_win(self, x_pos:int, y_pos:int, x_size:int, y_size:int) -> int;

Return value

Handle for the child window.

del_allwin()
Description

Deletes all window.

Prototype

def del_win(self, wid:int);

del_win(wid: int)
Description

Deletes a specified window.

Prototype

def del_win(self, wid:int);

draw_ellipse(x_pos: int, y_pos: int, rx: int, ry: int)
Description

Draws the outline of an ellipse of specified dimensions, at a specified position in the current window.

Prototype

def draw_ellipse(self, x_pos:int, y_pos:int, rx:int, ry:int);

draw_fillellipse(x_pos: int, y_pos: int, rx: int, ry: int)
Description

Draws a filled ellipse of specified dimensions at a specified position in the current window.

Prototype

def draw_fillellipse(self, x_pos:int, y_pos:int, rx:int, ry:int);

draw_fillpoly(x0_pos: int, y0_pos: int, x1_pos: int, y1_pos: int, x2_pos: int, y2_pos: int)
Description

Draws a filled polygon defined by a list of points in the current window.

Prototype

def draw_fillpoly(self, x0_pos:int, y0_pos:int, x1_pos:int, y1_pos:int, x2_pos:int, y2_pos:int);

draw_fillrect(x_pos: int, y_pos: int, x_size: int, y_size: int)
Description

Draws a filled rectangular area at a specified position in the current window.

Prototype

def draw_fillrect(self, x_pos:int, y_pos:int, x_size:int, y_size:int);

draw_line(x0_pos: int, y0_pos: int, x1_pos: int, y1_pos: int)
Description

Draws a line from a specified starting point to a specified endpoint in the current window(absolute coordinates).

Prototype

def draw_line(self, x0_pos:int, y0_pos:int, x1_pos:int, y1_pos:int);

draw_point(x_pos: int, y_pos: int)
Description

Draws a point with the current pen size at a specified position in the current window.

Prototype

def draw_point(self, x_pos:int, y_pos:int);

draw_poly(x0_pos: int, y0_pos: int, x1_pos: int, y1_pos: int, x2_pos: int, y2_pos: int)
Description

Draws the outline of a polygon defined by a list of points in the current window.

Prototype

def draw_poly(self, x0_pos:int, y0_pos:int, x1_pos:int, y1_pos:int, x2_pos:int, y2_pos:int);

draw_poptext(str: str)
Description

Displays the string passed as a parameter at the specified position in the popup message using the current font.

Prototype

def draw_text(self, x_pos:int, y_pos:int, str:str);

draw_rect(x_pos: int, y_pos: int, x_size: int, y_size: int)
Description

Draws a rectangle at a specified position in the current window.

Prototype

def draw_rect(self, x_pos:int, y_pos:int, x_size:int, y_size:int);

draw_text(x_pos: int, y_pos: int, str: str)
Description

Displays the string passed as parameter at a specified position in the current window using the current font.

Prototype

def draw_text(self, x_pos:int, y_pos:int, str:str);

draw_win()
Description

Redraw all windows

Prototype

def draw_win(self);

get_winid() int
Description

Returns the ID of a specified widget window.

Prototype

def get_winid(self);

sel_win(wid: int)
Description

Sets the active window to be used for drawing operations.

Prototype

def sel_win(self, wid:int);

set_bkcolor(rad: int, green: int, blue: int)
Description

Sets the current background color.

Prototype

def set_bkcolor(self, rad:int, green:int, blue:int);

set_color(rad: int, green: int, blue: int)
Description

Sets the current foreground color.

Prototype

def set_color(self, rad:int, green:int, blue:int);