This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Originally written by Frederik Berlaen | |
| # see discussion here: https://discord.com/channels/1052516637489766411/1466071066240614444 | |
| from math import radians, tan | |
| from mojo.events import EditingTool, installTool | |
| from mojo.UI import appearanceColorKey, getDefault | |
| class ItalicAngleEditTool(EditingTool): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Set a cursor (custom or native) for a ScrollingMerzView | |
| using the underlying NSScrollView | |
| """ | |
| import AppKit | |
| import ezui | |
| import merz | |
| class Demo(ezui.WindowController): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| v.2.3 | |
| Observer to make sidebearings magnetic to outline modifications. | |
| Its aim to be used as a startup script so it can be activated and deactivated whenever you need. | |
| Version history: | |
| ProductionType: | |
| - v1.002: first private release | |
| - v1.003: fix magnet multiple drawing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import zipfile | |
| from pathlib import Path | |
| def zipFolder(zipDir, sourcePath, excludePatterns=[]): | |
| """ | |
| Zips a folder and its contents, without macOS metadata like `.DS_Store` files. | |
| *zipDir* is the path to the directory to put the zip file in, |