Classes

Section Classes

class Screen

Screen

Class for handling Screens.

Examples

# Set display area
pynebv.screen.set_area((0,0,100,100))
# Set display size
pynebv.screen.resize((400,400))

Methods

def get_area()

Get display area.

Returns

tuple[float, float, float, float]
Return area.
def lock(lock, /, screenIndex=-1)

Lock screen.

Args

lock : bool

Specify True or False.

screenIndex : int

Specify screen index. Negative value indicates the current screen.

Returns

none
Always none.
def plot(filePath, /, area=None, outputType='PostScript', sheet='A4', reso=800, scaleType='Fit Paper Size', withHeader=False, screenColor=False)

Plot image to file.

Args

filePath : str

Specify file path.

area : object

type detail: object: tuple[float, float, float, float] or None

Specify area.

outputType : str

type detail: str: 'PostScript' or 'PDF'

Specify output type.

sheet : str

type detail: str: 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'Letter', '1M x 1M', '2M x 2M' or '3M x 3M'

Specify output paper type.

reso : int

Specify resolution.

scaleType : str

type detail: str: 'Full Scale' or 'Fit Paper Size'

Specify scaling type.

withHeader : bool

Specify whether to output headers.

screenColor : bool

Specify whether to plot using display colors.

Returns

none
Always none.
def resize(pixelSize)

Resize screen.

Args

pixelSize : tuple[int, int]

Specify screen size.

Returns

none
Always none.
def save_image(filePath, /, screenIndex=-1)

Save screen image.

Args

filePath : str

Specify file path.

screenIndex : int

Specify screen index. Negative value indicates the current screen.

Returns

none
Always none.
def set_area(area)

Set display area.

Args

area : object

type detail: object: tuple[float, float, float, float] or str('*')

Specify area.

Returns

none
Always none.
def set_current(screenIndex=1)

Specify the target screen.

Args

screenIndex : int

Specify screen index.

Returns

none
Always none.