Table Of Contents

Previous topic

StyleEditor

Next topic

StyleEditorPanel

This Page

phoenix_title StyleEditorBox

StyleEditor main Panel


class_hierarchy Inheritance Diagram

Inheritance diagram for class StyleEditorBox

Inheritance diagram of StyleEditorBox


method_summary 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

property_summary Properties Summary

StyleTheme  
SyntaxSheets  

api Class API



class StyleEditorBox(ed_basewin.EdBaseCtrlBox)

StyleEditor main Panel


Methods



__init__(self, parent)


CheckForModifications(self, sheet_name=None)

Check for any unsaved modifications to the styling information

Returns:modification type


DoChangeStyleSheet(self, sheet_name)

Change the StyleEditor for the given style sheet



GetStyleSheetPath(self, sheet, syspath=False)

Get the on disk path to where the style sheet should be written to.

Parameters:
  • sheet – sheet name
  • syspath – look on the system install path
Returns:

path to the style sheet



IsSystemStyleSheet(self)

Is the given style sheet a system provided one

Returns:bool


OnButton(self, evt)

Handle the Add/Remove Buttons



OnThemeChoice(self, evt)

Check if current style sheet has been saved when switching sheets



RefreshStyleSheets(self)

Update the list of style sheets



SaveStyleSheet(self, sheetname=None)

Save the changes to the currently selected StyleSheet

Returns:bool


SetDisplayForTransientSheet(self, sheet_name)

Setup the display and editor data for a transient style sheet



SheetExistOnDisk(self, sheet_name)

Check if the given style sheet exists on disk

Parameters:sheet_name – style sheet name
Returns:bool


WriteStyleSheet(self, path)

Write the current style data to the given path

Parameters:path – string
Returns:bool