StyleEditorBox¶StyleEditor main Panel
Methods Summary¶| __init__ | |
| CheckForModifications | Check for any unsaved modifications to the styling information |
| DoChangeStyleSheet | Change the StyleEditor for the given style sheet |
| GetStyleSheetPath | Get the on disk path to where the style sheet should |
| IsSystemStyleSheet | Is the given style sheet a system provided one |
| OnButton | Handle the Add/Remove Buttons |
| OnThemeChoice | Check if current style sheet has been saved when switching sheets |
| RefreshStyleSheets | Update the list of style sheets |
| SaveStyleSheet | Save the changes to the currently selected StyleSheet |
| SetDisplayForTransientSheet | Setup the display and editor data for a transient style sheet |
| SheetExistOnDisk | Check if the given style sheet exists on disk |
| WriteStyleSheet | Write the current style data to the given path |
Class API¶StyleEditor main Panel
Check for any unsaved modifications to the styling information
| Returns: | modification type |
|---|
Change the StyleEditor for the given style sheet
Get the on disk path to where the style sheet should be written to.
| Parameters: |
|
|---|---|
| Returns: | path to the style sheet |
Is the given style sheet a system provided one
| Returns: | bool |
|---|
Handle the Add/Remove Buttons
Check if current style sheet has been saved when switching sheets
Update the list of style sheets
Save the changes to the currently selected StyleSheet
| Returns: | bool |
|---|
Setup the display and editor data for a transient style sheet
Check if the given style sheet exists on disk
| Parameters: | sheet_name – style sheet name |
|---|---|
| Returns: | bool |
Write the current style data to the given path
| Parameters: | path – string |
|---|---|
| Returns: | bool |