Refactored code
This commit is contained in:
		
							
								
								
									
										27
									
								
								src_old/sh_edraft/console/model/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								src_old/sh_edraft/console/model/__init__.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| # -*- coding: utf-8 -*- | ||||
|  | ||||
| """ | ||||
| sh_edraft.console.model  | ||||
| ~~~~~~~~~~~~~~~~~~~ | ||||
|  | ||||
|  | ||||
|  | ||||
| :copyright: (c) 2020 sh-edraft.de | ||||
| :license: MIT, see LICENSE for more details. | ||||
|  | ||||
| """ | ||||
|  | ||||
| __title__ = 'sh_edraft.console.model' | ||||
| __author__ = 'Sven Heidemann' | ||||
| __license__ = 'MIT' | ||||
| __copyright__ = 'Copyright (c) 2020 sh-edraft.de' | ||||
| __version__ = '2020.12.9' | ||||
|  | ||||
| from collections import namedtuple | ||||
|  | ||||
| # imports: | ||||
| from .background_color import BackgroundColor | ||||
| from .foreground_color import ForegroundColor | ||||
|  | ||||
| VersionInfo = namedtuple('VersionInfo', 'major minor micro') | ||||
| version_info = VersionInfo(major=2020, minor=12, micro=9) | ||||
							
								
								
									
										14
									
								
								src_old/sh_edraft/console/model/background_color.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src_old/sh_edraft/console/model/background_color.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| from enum import Enum | ||||
|  | ||||
|  | ||||
| class BackgroundColor(Enum): | ||||
|  | ||||
|     default = 'on_default' | ||||
|     grey = 'on_grey' | ||||
|     red = 'on_red' | ||||
|     green = 'on_green' | ||||
|     yellow = 'on_yellow' | ||||
|     blue = 'on_blue' | ||||
|     magenta = 'on_magenta' | ||||
|     cyan = 'on_cyan' | ||||
|     white = 'on_white' | ||||
							
								
								
									
										14
									
								
								src_old/sh_edraft/console/model/foreground_color.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src_old/sh_edraft/console/model/foreground_color.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| from enum import Enum | ||||
|  | ||||
|  | ||||
| class ForegroundColor(Enum): | ||||
|  | ||||
|     default = 'default' | ||||
|     grey = 'grey' | ||||
|     red = 'red' | ||||
|     green = 'green' | ||||
|     yellow = 'yellow' | ||||
|     blue = 'blue' | ||||
|     magenta = 'magenta' | ||||
|     cyan = 'cyan' | ||||
|     white = 'white' | ||||
		Reference in New Issue
	
	Block a user