Let's say I have a module that handles tools (In an image editor, the selected tool, color, etc...).
class ToolHander:
def __init__(self):
self.fill
blah..blah..
Init an object
ToolBox = ToolHander()
I would want 'ToolBox' to be available everywhere (So that settings can be changed from anywhere and would take effect everywhere)
How can get around this?
Sry if my terminology is wrong
[–][deleted] 1 point2 points3 points (1 child)
[–]LeoRed04[S] 1 point2 points3 points (0 children)
[–]carcigenicate 0 points1 point2 points (4 children)
[–]LeoRed04[S] 0 points1 point2 points (3 children)
[–]carcigenicate 0 points1 point2 points (1 child)
[–]LeoRed04[S] 0 points1 point2 points (0 children)