2.27. ViewInfo¶
2.27.1. Synopsis¶
2.27.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 (str) – New view name.
abbr (str) – View name abbreviation (shows on mocha toolbar).
color (
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
str
-
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.