Skip to content

Commit

Permalink
v5.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundih committed Aug 21, 2022
1 parent d252149 commit d2b9552
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,3 +513,9 @@ CHANGELOG
5.3.0 (21/08/2022)
- introduced overwrite option to store.
- stable logistics release integrated.

5.3.1 (21/08/2022)
- rework of custom coloring.

5.3.2 (21/08/2022)
- rework of custom coloring in wheel resolved.
15 changes: 15 additions & 0 deletions duality/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@
duality.DualityApp is an object decorator class that stores menu options over functions and class methods for listing and executing in a CLI.
print(help(duality.DualityApp)) in order to see available features.
COLORSET (self.custom_color_mode template)
________
self.colorset = {
'credit' : 'Fy',
'display_headline' : 'Fy',
'display_message' : 'Fc',
'output_message' : 'Fy',
'enter_message' : 'Fc',
'tmp_name_list' : 'Fy',
'tmp_func' : 'Fc',
'warning' : 'Fr',
'exit_message' : 'Fy',
}
track (OBJECT/DECORATOR)
------------
Expand Down
23 changes: 19 additions & 4 deletions duality/decorators/dualityapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ class DualityApp(metaclass = Meta):

'''
* stores menu options over functions and class methods for listing.
COLORSET (self.custom_color_mode template)
________
self.colorset = {
'credit' : 'Fy',
'display_headline' : 'Fy',
'display_message' : 'Fc',
'output_message' : 'Fy',
'enter_message' : 'Fc',
'tmp_name_list' : 'Fy',
'tmp_func' : 'Fc',
'warning' : 'Fr',
'exit_message' : 'Fy',
}
'''

def __init__(
Expand Down Expand Up @@ -285,7 +300,7 @@ def script(
'exit_message' : 'Fg',
}

else:
elif self.color_mode == 'custom':
self.colorset = self.custom_color_mode

self.display_headline = display_headline
Expand Down Expand Up @@ -657,7 +672,7 @@ def wheel(
'exit_message' : 'Fg',
}

else:
elif self.color_mode == 'custom':
self.colorset = self.custom_color_mode

paint_text(self.credit, self.colorset['credit'], print_trigger = True)
Expand All @@ -672,9 +687,9 @@ def wheel(

while True:
if self.type == 'dynamic':
self.script(type = 'dynamic', queue = 'wheel', method = 'none', clear_screen = False, display_message = self.display_message, output_message = self.output_message, color_mode = self.color_mode, break_key = self.break_key, enter_message = self.enter_message, exit_message = self.exit_message)
self.script(type = 'dynamic', queue = 'wheel', method = 'none', clear_screen = False, display_message = self.display_message, output_message = self.output_message, color_mode = self.color_mode, custom_color_mode = self.custom_color_mode, break_key = self.break_key, enter_message = self.enter_message, exit_message = self.exit_message)
if self.type == 'static':
self.script(type = 'static', queue = 'wheel', method = 'none', clear_screen = False, display_message = self.display_message, output_message = self.output_message, color_mode = self.color_mode, break_key = self.break_key, enter_message = self.enter_message, exit_message = self.exit_message)
self.script(type = 'static', queue = 'wheel', method = 'none', clear_screen = False, display_message = self.display_message, output_message = self.output_message, color_mode = self.color_mode, custom_color_mode = self.custom_color_mode, break_key = self.break_key, enter_message = self.enter_message, exit_message = self.exit_message)

def store(
self,
Expand Down
2 changes: 1 addition & 1 deletion duality/misc/_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

]
__license__ = 'Copyright © 2021- David Kundih. All rights reserved. Licensed under the Apache License, Version 2.0 | For more details about the license and terms of use visit the official duality documentation linked at https://github.com/dkundih/duality and https://pypi.org/project/duality'
__version__ = '5.3.0'
__version__ = '5.3.2'
__documentation__ = 'https://github.com/dkundih/duality | https://pypi.org/project/duality'
__contact__ = '[email protected] | [email protected]'
__donate__ = 'https://patreon.com/dkundih | https://buymeacoffee.com/dkundih'

0 comments on commit d2b9552

Please sign in to comment.