2.24. ViewInfo

2.24.1. Synopsis

2.24.1.1. Functions

2.24.1.2. Properties

  • property abbr [read-write] of str

  • property color [read-write] of 3-items tuple of float values in range [0.0…1.0]

  • property name [read-write] of str

2.24.2. Detailed Description

Class representing common view information (name, abbreviation, color).

class mocha.project.ViewInfo
class mocha.project.ViewInfo(name, abbr[, color=Color()])
Parameters
  • name (unicode) – New view name.

  • abbr (unicode) – View name abbreviation (shows on mocha toolbar).

  • color (mocha.project.Color) – 3-items tuple of floats in range [0.0…1.0] representing RGB.

Constructs new view info instance with given name, abbreviation and col

class mocha.project.ViewInfo(ViewInfo)
ViewInfo.__repr__()
Return type

unicode

ViewInfo.__eq__(rhs)
Return type

bool

ViewInfo.name
Type

str

Access

read-write Provides access to view name.

ViewInfo.abbr
Type

str

Access

read-write Provides access to view abbreviation (shows on mocha toolbar).

ViewInfo.color
Type

3-items tuple of float values in range [0.0…1.0]

Access

read-write Provides access to view RGB color.