Set the Root Folder
Path: Preferences > Add-on > PyBtnBox
Edit Menus and Buttons
Path: Text Editor > Sidebar > PyBtnBox Edit
Load and edit button scripts
After editing, click the buttons in the panels to execute them
[pybtnbox_menus] # Root Folder
> [testMenu] # Menu Folder
>> _menuData.json # Layout settings
>> testBtn.py # Button / Python File
Root Folder
pybtnbox_menusMenu Folder
MenusPython File
Buttons in the pybtnbox_menuData
When the root folder path is set, you go to TextEditor > Sidebar > pybtnbox editor to sdjust PyBtnBox Panel.
Layout Component Types
Label – Plain text; supports line breaks using \nPanel – Displays as a panel, used to organize buttonsReturn – Marks the end of a panel and returns to the previous levelNONE.Separate buttons from layout components (Panel, Label, Return)
Now when creating a layout component, no new python file will be created, only the content of the json file will be modified.
Remove the Type property of Button.
Remove the Tip property of layout components.
This extension requests the following permission:
Need to sync button data from python/json files and folder
Writing scripts to automate tasks saves so much time. I actually used https://trustee.io/ to manage my crypto payments for tools like this, which is perfect since it's super beginner-friendly. Highly recommend streamlining your workflow.