Skip to content

fontlab.flItems

flItems

flItems is FontLab's application-wide event megaphone. Whenever anything happens in the application — a glyph is activated, a selection changes, a font is opened, a canvas gets focus — flItems broadcasts a signal so that all the UI panels, inspectors, and displays can react and update themselves.

As a type designer writing scripts, you use flItems to tell FontLab that your script has changed something, so the displays refresh correctly. Without these calls, the screen won't update — you might edit 50 glyphs and see no change until you click somewhere.

You access it as a class with static methods — no instance needed:

from fontlab import flItems

# Tell FontLab a glyph was updated (triggers display refresh)
flItems.notifyGlyphUpdated(package_id, glyph_id)

# Request that a specific UI dialog opens
flItems.requestFontInfoDlg()

notify vs request — what's the difference?

These two prefixes mean very different things:

  • notify* — "I just changed something. Please update your displays." You call these after making a change. They're announcements: "glyph data changed", "the active layer changed", "preferences changed". FontLab's UI listens for these signals and refreshes whatever needs refreshing.

  • request* — "Please do this for me." You call these to ask FontLab to perform an action — open a dialog, activate a glyph, load a font, run an operation. The difference from calling the operation directly is that request* goes through the normal UI pipeline, complete with undo recording, validation, and UI state management.

A useful way to think about it: notify* is telling the application about the past ("this already happened"), while request* is asking it to do something in the future ("please do this now").

Static initialization and instance access

items = flItems.instance()

Although flItems has an instance() method, almost all its methods are static — you can call them directly on the class without getting an instance first. Call flItems.init() once during plugin startup to ensure the event system is properly wired up.

Method Signature Description
init init() Initialises the flItems event system. Must be called once when a plugin starts up before any notify* or request* calls are made. Safe to call multiple times.

Static utility methods

Method Signature Description
instance flItems instance() Returns the singleton.
guidelinesEditingEnabled bool guidelinesEditingEnabled() Returns True if guideline editing is currently enabled.
setGuidelinesEditingEnabled setGuidelinesEditingEnabled(bool b) Enables or disables guideline editing.
setCursor setCursor(CursorId) Sets the application-wide cursor.
getCursorId CursorId getCursorId(QString, int hot_x, int hot_y) Gets a CursorId from a cursor name and hotspot coordinates.
getCursor QCursor getCursor(CursorId) Gets a Qt cursor from a CursorId.
typeToStr QString typeToStr(int type) Converts a type code to its human-readable name.
strToType int strToType(QString) Converts a type name string to its integer code.
createObject flObject createObject(int type, flObject key) Creates an object of the given type.
setEllipseCurvature setEllipseCurvature(double d) Sets the global ellipse curvature value for the Ellipse tool.
setEllipseData setEllipseData(QPointF p0, QPointF p1) Sets the ellipse bounding box data.
setMeterData setMeterData(QPointF p0, QPointF p1) Sets the measurement tool data.
setTransformation setTransformation(int code, QPointF value) Applies a pre-coded transformation.
setParameterName setParameterName(flObject, QString) Sets the display name for a parameter object.
appendRecentFile appendRecentFile(QString, QString file_name) Adds a file to the Recent Files menu.
clearRecentFiles clearRecentFiles(QString) Clears the Recent Files list.
buildRecentList list(str)/None buildRecentList(QString) Builds and returns the recent files list.
resetToolCursor resetToolCursor() Resets the tool cursor to the default arrow.

Instance Methods

Method Signature Description
shapeBuilders list(flObject) shapeBuilders() Returns all registered ShapeBuilder objects.

Common Scripting Patterns

from fontlab import flItems

# ---- After editing a single glyph ----
font  = fl.CurrentFont()
glyph = font['A']
# ... make changes to glyph data ...
flItems.notifyGlyphUpdated(font.id, glyph.id)

# ---- After editing many glyphs ----
changed = set()
for name in glyph_names:
    g = font[name]
    # ... edit g ...
    changed.add(g.id)
flItems.notifyGlyphsUpdated(font.id, changed)

# ---- Record an undo step ----
# Call notifyChangesApplied before making changes so the undo
# system captures the before-state:
flItems.notifyChangesApplied("My script operation", glyph)

# ---- Progress bar for long-running scripts ----
flItems.requestProgressShow(True)
flItems.requestProgressRange(len(glyphs))
for i, g in enumerate(glyphs):
    flItems.requestProgressMessage(f"Processing {g.name}...")
    flItems.requestProgressValue(i)
    # ... process g ...
flItems.requestProgressShow(False)

# ---- Open Font Info dialog ----
flItems.requestFontInfoDlg()

Tutorial

from PythonQt.QtGui import QTransform
import fontlab as fl
from fontlab import flItems

# ============================================================
# Understanding flItems: the "please update" and "please do"
# system. Two categories of calls:
#
#   notify* = "I changed data, please refresh displays"
#   request* = "please run this operation for me"
# ============================================================

font = fl.CurrentFont()

# ============================================================
# 1. The most important pattern: notify after editing
# ============================================================
# Whenever a script edits a glyph directly (moving nodes,
# changing contours, adjusting metrics), FontLab's UI
# won't know until you fire a notification.

glyph = font['A']

# Make a change (example: shift the first shape)
layer = glyph.layers[0]
if layer.shapes:
    shape = layer.shapes[0]
    shape.transform = QTransform().translate(10, 0)

# NOW tell FontLab what happened:
flItems.notifyGlyphUpdated(font.id, glyph.id)
# The font window, glyph window, and all panels will refresh.

# ============================================================
# 2. Batch editing — use the batch notification for speed
# ============================================================
# Calling notifyGlyphUpdated inside a loop is wasteful.
# Collect changed glyph IDs and notify all at once.

changed_ids = set()

for name in ['A', 'B', 'C', 'D', 'E']:
    g = font[name]
    if not g or not g.layers:
        continue
    layer = g.layers[0]
    for shape in layer.shapes:
        shape.transform(QTransform().translate(5, 0))
    changed_ids.add(g.id)

# One notification for all the changed glyphs:
flItems.notifyGlyphsUpdated(font.id, changed_ids)
print(f"Notified {len(changed_ids)} glyph(s) updated.")

# ============================================================
# 3. Making edits undoable
# ============================================================
# notifyChangesApplied tells the undo system to record an
# undo step. Pass a label (shown in Edit > Undo) and the
# object(s) that changed. Call BEFORE making the change
# so the undo system captures the before-state.

glyph_b = font['B']
flItems.notifyChangesApplied("Nudge B", glyph_b)
# ... now make the change ...
if glyph_b.layers and glyph_b.layers[0].shapes:
    glyph_b.layers[0].shapes[0].transform(QTransform().translate(20, 0))
flItems.notifyGlyphUpdated(font.id, glyph_b.id)
# The user can now Cmd+Z to undo "Nudge B".

# ============================================================
# 4. Showing a progress bar for long operations
# ============================================================
# For scripts that process many glyphs, show a progress bar
# so the user knows the script is running.

all_glyphs = list(font.glyphs)

flItems.requestProgressShow(True)
flItems.requestProgressRange(len(all_glyphs))

for i, g in enumerate(all_glyphs):
    flItems.requestProgressMessage(f"Processing {g.name} ({i+1}/{len(all_glyphs)})...")
    flItems.requestProgressValue(i + 1)
    # ... do something with g ...

# Always hide the bar when done
flItems.requestProgressShow(False)
print("Done — progress bar hidden.")

# ============================================================
# 5. Opening dialogs via request*
# ============================================================
# These go through the normal UI pipeline, triggering
# the same behavior as clicking the menu item.

# Open the Font Info dialog:
# flItems.requestFontInfoDlg()

# Activate the node editor tool:
# flItems.requestActivateNodesTool()

# Ask FontLab to open a glyph by its IDs:
# flItems.requestGlyphActivate(font.id, font['A'].id)

# ============================================================
# 6. After changing preferences, notify the system
# ============================================================
# If your script changes flPreferences values, call this
# so all panels and displays refresh to use the new settings.

# from fontlab import flPreferences
# prefs = flPreferences.instance()
# prefs.snapToGuidelines = True
# flItems.notifyPreferencesChanged()

# ============================================================
# 7. The workspace property
# ============================================================

ws = flItems.instance().workspace
print("Workspace from flItems:", ws)

flItems constants

These constants are class attributes.

Key Native value Description
bMetrics flItems::bMetrics Native enum value.
bSingleNode flItems::bSingleNode Native enum value.
bGuideline flItems::bGuideline Native enum value.
bGlyph flItems::bGlyph Native enum value.
bPin flItems::bPin Native enum value.
bMeter flItems::bMeter Native enum value.
bEllipse flItems::bEllipse Native enum value.
bPen flItems::bPen Native enum value.
bTransform flItems::bTransform Native enum value.
bBrush flItems::bBrush Native enum value.
bText flItems::bText Native enum value.
bCount flItems::bCount Native enum value.
transformShift flItems::transformShift Native enum value.
transformScale flItems::transformScale Native enum value.
transformRotate flItems::transformRotate Native enum value.
transformSlant flItems::transformSlant Native enum value.

flItems.ItemStates

Use the flItems.ItemStates dictionary with subscription.

Key Native value Description
Visible flItems::ItemStates::Visible Native enum value.
Locked flItems::ItemStates::Locked Native enum value.
Normal flItems::ItemStates::Normal Native enum value.
Selected flItems::ItemStates::Selected Native enum value.
Hovered flItems::ItemStates::Hovered Native enum value.
Small flItems::ItemStates::Small Native enum value.
Preview flItems::ItemStates::Preview Native enum value.
Custom flItems::ItemStates::Custom Native enum value.
AutoUpdate flItems::ItemStates::AutoUpdate Native enum value.

flItems.ItemType

Use the flItems.ItemType dictionary with subscription.

Key Native value Description
AppliqueItem flItems::ItemType::AppliqueItem Native enum value.
AuditItem flItems::ItemType::AuditItem Native enum value.
AutoShapeControl flItems::ItemType::AutoShapeControl Native enum value.
AutoShapeDetectorItem flItems::ItemType::AutoShapeDetectorItem Native enum value.
Background flItems::ItemType::Background Native enum value.
Canvas flItems::ItemType::Canvas Native enum value.
ContourItem flItems::ItemType::ContourItem Native enum value.
ContourMarker flItems::ItemType::ContourMarker Native enum value.
ContourNode flItems::ItemType::ContourNode Native enum value.
CoordinatesPreview flItems::ItemType::CoordinatesPreview Native enum value.
CurveMarker flItems::ItemType::CurveMarker Native enum value.
Decorator flItems::ItemType::Decorator Native enum value.
GlyphItem flItems::ItemType::GlyphItem Native enum value.
GlyphsMetrics flItems::ItemType::GlyphsMetrics Native enum value.
GraphicItems flItems::ItemType::GraphicItems Native enum value.
Grid flItems::ItemType::Grid Native enum value.
GuideLineItem flItems::ItemType::GuideLineItem Native enum value.
GuideLineNodeItem flItems::ItemType::GuideLineNodeItem Native enum value.
GuideLinePointItem flItems::ItemType::GuideLinePointItem Native enum value.
HotSpot flItems::ItemType::HotSpot Native enum value.
LayerItem flItems::ItemType::LayerItem Native enum value.
LinearInterpolationPreviewItem flItems::ItemType::LinearInterpolationPreviewItem Native enum value.
MagicPreview flItems::ItemType::MagicPreview Native enum value.
NodeItem flItems::ItemType::NodeItem Native enum value.
OptimizerPreview flItems::ItemType::OptimizerPreview Native enum value.
PaintBrushPreview flItems::ItemType::PaintBrushPreview Native enum value.
PenHotSpot flItems::ItemType::PenHotSpot Native enum value.
PenPreview flItems::ItemType::PenPreview Native enum value.
PencilTrack flItems::ItemType::PencilTrack Native enum value.
PinPointItem flItems::ItemType::PinPointItem Native enum value.
PointItem flItems::ItemType::PointItem Native enum value.
PointPreview flItems::ItemType::PointPreview Native enum value.
ShapeBoxControlItem flItems::ItemType::ShapeBoxControlItem Native enum value.
ShapeItem flItems::ItemType::ShapeItem Native enum value.
SmartAngleItem flItems::ItemType::SmartAngleItem Native enum value.
SmartPen flItems::ItemType::SmartPen Native enum value.
SnapPoint flModel::SnapPoint Native enum value.
SnapPreview flItems::ItemType::SnapPreview Native enum value.
StaplersGraphItem flItems::ItemType::StaplersGraphItem Native enum value.
StemShapeItem flItems::ItemType::StemShapeItem Native enum value.
StickerItem flItems::ItemType::StickerItem Native enum value.
Surface flItems::ItemType::Surface Native enum value.
TTHItem flItems::ItemType::TTHItem Native enum value.
TapeLineItem flItems::ItemType::TapeLineItem Native enum value.
TextBlockItem flItems::ItemType::TextBlockItem Native enum value.
TextBlockRowItem flItems::ItemType::TextBlockRowItem Native enum value.
TouchCurve flItems::ItemType::TouchCurve Native enum value.
TriangulateInterpolationPreviewItem flItems::ItemType::TriangulateInterpolationPreviewItem Native enum value.
VisualItem flItems::ItemType::VisualItem Native enum value.
Workspace flItems::ItemType::Workspace Native enum value.

Constructors: flItems()

Native bases: object

Captured native MRO: flItems, object

Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.

Supplemental documentation: Application items. The captured declaration exposes appendRecentFile, buildRecentList, clearRecentFiles, getCursor, getCursorId, instance, notifyActivateGlyph, notifyClipboardChanged, notifyGlyphActivated, notifyGlyphDeactivated, notifyFontSelected and notifyEditModeChanged. It is created with no captured constructor overloads.

Source: FontLab Proteus API documentation

Source: generated/fontlab.py: flItems captured declaration

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
ItemStates attribute dict
ItemType attribute dict
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self. (shared captured text)
appendRecentFile function (arg0: str, file_name: str) -> Any
bBrush attribute int
bCount attribute int
bEllipse attribute int
bGlyph attribute int
bGuideline attribute int
bMeter attribute int
bMetrics attribute int
bPen attribute int
bPin attribute int
bSingleNode attribute int
bText attribute int
bTransform attribute int
buildRecentList function (arg0: str) -> Any QStringList/Nothing buildRecentList(QString)
clearRecentFiles function (arg0: str) -> Any
createObject function (type: int, key: flObject) -> flObject
getCursor function (CursorId: Any) -> QCursor
getCursorId function (arg0: str, hot_x: int, hot_y: int) -> Any
guidelinesEditingEnabled function () -> bool
init function () -> Any
instance function () -> flItems
notifyActivateGlyph function (arg0: flGlyphInfo) -> Any Signals that the given glyph should be considered the active glyph.
notifyAnchorsChanged function () -> Any Signals that the anchor points in the current glyph have changed.
notifyApplyTranformFrame function () -> Any Signals that the transform frame was applied.
notifyAuditHovered function (id: int) -> Any Signals that an audit item is being hovered in the audit panel.
notifyAutoShapseChanges function (arg0: flLayer) -> Any Signals that auto-shapes in the given layer have changed.
notifyAvailableToSelectNodes function (*args: Any, **kwargs: Any) -> Any Signals which nodes are available for selection (for tools that limit selectability).
notifyBrushModeSelected function (smart: int) -> Any Signals a brush mode change.
notifyBrushSelected function (PaintBrush: Any) -> Any Signals that a brush was selected.
notifyBrushSet function () -> Any Signals that the active brush was set.
notifyCancelTranformFrame function () -> Any Signals that the transform frame operation was cancelled.
notifyCanvasAttached function (arg0: flCanvas) -> Any Signals that a canvas was attached to the workspace.
notifyCanvasEnterFocus function (arg0: flCanvas) -> Any Signals that the given canvas gained keyboard focus.
notifyCanvasLeaveFocus function (arg0: flCanvas) -> Any Signals that the given canvas lost keyboard focus.
notifyCanvasRemoved function (arg0: flCanvas) -> Any Signals that a canvas window was removed.
notifyChangesApplied function (recursive: Any=...) -> Any Signals that changes were applied and should be recorded in the undo history.
notifyClipboardChanged function () -> Any Signals that the clipboard contents changed.
notifyColorSet function (arg0: QColor, b: bool) -> Any Signals that a colour was selected in the colour picker.
notifyCommandSelected function () -> Any Signals that a command was selected.
notifyCurrentPaperChanged function (arg0: flPaper) -> Any Signals that the active canvas background (paper) changed.
notifyDropDone function (canvas: flCanvas) -> Any Signals that a drag-and-drop operation on the given canvas has completed.
notifyEditActionFinished function () -> Any Signals that an edit action has completed.
notifyEditActionStarted function () -> Any Signals that an edit action has begun.
notifyEditModeChanged function (mode: Any) -> Any Signals that the editor mode changed (e.g. from node editing to text entry).
notifyEditingChanged function (arg0: flAbstractEditor) -> Any Signals that the editing state changed.
notifyEditingFinished function () -> Any Signals that an editing session has ended.
notifyFeaturesChanged function (package_id: int, binary: bool) -> Any Signals that the OpenType feature tables have changed.
notifyFontPanelActivated function (b: bool) -> Any Signals that the font panel has been activated or deactivated.
notifyFontSelected function (*args: Any, **kwargs: Any) -> Any Signals that the user has selected a font (by its workspace ID).
notifyFrameSelected function (*args: Any, **kwargs: Any) -> Any Signals that a frame (bounding box) selection was made.
notifyGalleryChanged function (arg0: flObject) -> Any Signals that the gallery panel content has changed.
notifyGlyphActivated function (arg0: flGlyphInfo) -> Any Signals that a glyph has been activated (opened in the editor).
notifyGlyphDeactivated function () -> Any Signals that the currently active glyph was closed or deactivated.
notifyGlyphDoubleClick function (arg0: flGlyphInfo) -> Any Signals that the user double-clicked on a glyph cell (typically opens the glyph editor).
notifyGlyphIdSelected function (packageId: int, glyphId: int, replace: bool) -> Any Signals a glyph selection change.
notifyGlyphMaximized function (arg0: flGlyphInfo) -> Any Signals that a glyph window was maximised.
notifyGlyphPinPointChanged function (pin_point: Any=...) -> Any Signals that a glyph-level pin point (anchor) has changed.
notifyGlyphPinPointCreated function (arg0: flGlyphInfo) -> Any Signals that a new glyph-level pin point (anchor) was created.
notifyGlyphUpdated function (packageId: int, glyphId: int) -> Any Signals that a single glyph's data has been updated.
notifyGlyphWindowInactive function () -> Any Signals that the glyph window has become inactive.
notifyGlyphsUpdated function (packageId: int, glyphIds: set[Any]) -> Any Batch version of notifyGlyphUpdated — signals that multiple glyphs changed at once.
notifyGraphEdgeSelectionChanged function (arg0: flObject) -> Any Signals that a ShapeBuilder graph edge selection changed.
notifyGuidelinesChanged function (arg0: flCanvas) -> Any Signals that guidelines on the given canvas have changed.
notifyGuidelinesSelected function (*args: Any, **kwargs: Any) -> Any Signals that the given guidelines are now selected.
notifyHidePanels function () -> Any Signals that all side panels should be hidden.
notifyHistoryChanged function () -> Any Signals that the undo history has changed.
notifyKeyHash function () -> Any Signals that the # key was pressed — used by some panels for quick-access shortcuts.
notifyKeyRepeat function (key: int) -> Any Signals a key-repeat event for the given key code.
notifyKeySlash function () -> Any Signals that the / key was pressed — used by some panels for quick-access shortcuts.
notifyLayerActivated function (arg0: flLayer) -> Any Signals that a layer was activated — the user or script switched to editing a different master layer.
notifyModelChanged function () -> Any Signals a generic model-level change — a catch-all that causes broad refreshes.
notifyNodeChanged function (arg0: flNodeInfo) -> Any Signals that a single node's data changed.
notifyNodesSelected function (*args: Any, **kwargs: Any) -> Any Signals that a specific set of nodes was selected.
notifyPackageAdded function (arg0: flPackage) -> Any Signals that a new font was opened and added to the workspace.
notifyPackageClosed function (arg0: flPackage) -> Any Signals that a font is about to close.
notifyPackageContentUpdated function (id: int) -> Any Signals that the content (glyph list, etc.) of the font has changed.
notifyPackageReaded function (arg0: flPackage) -> Any Signals that a font was successfully loaded (read) from disk.
notifyPackageRemoved function (arg0: flPackage) -> Any Signals that a font has been removed from the workspace.
notifyPackageUpdated function (id: Any) -> Any Signals that a font's data has changed.
notifyPackagesRemoved function (*args: Any, **kwargs: Any) -> Any Batch version — signals that multiple fonts were removed.
notifyPackagesUpdated function () -> Any Signals that all packages have been updated — a blanket refresh trigger.
notifyPinPointChanged function (pin_point: Any=...) -> Any Signals that a shape-level pin point changed.
notifyPinPointCreated function (arg0: flShapeInfo) -> Any Signals that a new pin point was created on a shape.
notifyPinPointSelectionChanged function () -> Any Signals that the pin point (anchor) selection changed.
notifyPinSelected function (id: int) -> Any Signals that a pin point was selected, identified by its ID.
notifyPreferencesChanged function () -> Any Signals that application preferences changed.
notifyProjectClosed function () -> Any Signals that the current project was closed.
notifyProjectReaded function (file_name: str) -> Any Signals that a project was loaded from file_name.
notifyProjectSaved function (file_name: str) -> Any Signals that the project was saved to file_name.
notifyPropertiesChanged function (arg0: flObject) -> Any Signals that the properties of the given object changed.
notifyRenderingBegin function (info: str) -> Any Signals that a rendering operation has started.
notifyRenderingFinished function (success: bool) -> Any Signals that a rendering operation has finished.
notifyReplaceGlyphsByFgId function (*args: Any, **kwargs: Any) -> Any Signals a batch glyph replacement by fontgate IDs.
notifyRequestChangeCurrentClipboard function (xml: str) -> Any Asks FontLab to replace the current clipboard content with the given XML string.
notifyRequestNewProject function () -> Any Asks FontLab to create a new, empty project.
notifyRequestOpenProject function (file_name: str) -> Any Asks FontLab to open a project file.
notifyRequestPasteAction function () -> Any Asks FontLab to perform a paste operation.
notifyRequestShowWelcome function () -> Any Shows the Welcome Screen.
notifyRequestShowWorkspace function () -> Any Shows the main workspace window.
notifySCVItemsChanged function () -> Any Signals a change to SCV (source-control versioning) items.
notifyScrollToGlyph function (arg0: flGlyphInfo) -> Any Asks all panels to scroll so the given glyph slot is visible.
notifySelectionChanged function () -> Any Signals that the selection has changed.
notifyShapeActivated function (arg0: flShapeInfo) -> Any Signals that a shape was activated for editing.
notifyShapeDeactivated function () -> Any Signals that the current shape was deactivated.
notifyShowPanels function () -> Any Signals that all side panels should be shown.
notifySnapLineChanged function (arg0: flGuideLine) -> Any Signals that a guideline used for snapping has changed.
notifySnapLinesChanged function (*args: Any, **kwargs: Any) -> Any Batch version — signals multiple snap guideline changes.
notifyStaplerPreviewEnabled function (enbl: bool) -> Any Signals whether the stapler (composite preview) overlay should be shown.
notifyStickerCreated function () -> Any Signals that a sticker (canvas annotation) was created.
notifyStopButtonClicked function () -> Any Signals that the stop button was clicked (cancels in-progress operations).
notifyTextBlockAdded function (arg0: flTextBlock) -> Any Signals that a text block was added to the canvas.
notifyTextBlockItemActivated function (check_tools: Any=...) -> Any Signals that a text block item was activated for editing.
notifyTextBlockItemChanged function (arg0: flTextBlockItem) -> Any Signals that a text block's content changed.
notifyTextBlockItemDeactivated function (arg0: flTextBlockItem) -> Any Signals that a text block item was deactivated (editing ended).
notifyTextBlockItemMaximized function (arg0: flTextBlockItem) -> Any Signals that a text block item was maximised to fill the canvas.
notifyTextBlockItemNormalized function (arg0: flTextBlockItem) -> Any Signals that a text block item was restored from maximised state to its normal size.
notifyTextBlockItemsSelectionChanged function (arg0: flCanvas) -> Any Signals that the selection of text block items on the given canvas changed.
notifyTextBlockRemoved function (arg0: flTextBlock) -> Any Signals that a text block was removed.
notifyToolChanged function (tool: flBasicTool) -> Any Signals that the active tool changed.
notifyTransformDataChanged function (TransformFrame: Any) -> Any Signals that the transform frame data changed during a live transform.
notifyTransformFrameChanged function (arg0: flObject) -> Any Signals that the transform frame itself changed.
notifyTransformFrameFinished function (arg0: flObject) -> Any Signals that a transform frame operation was completed and committed.
notifyTransformFrameStarted function (arg0: flObject) -> Any Signals that a transform frame was activated.
notifyTransformStarted function () -> Any Signals that a transform operation has begun (move, scale, rotate, etc.).
notifyUpdateHistory function () -> Any Signals that the history display should update.
notifyUpdateStaplers function () -> Any Signals that all stapler (composite) previews should be refreshed.
notifyViewportChanged function (old_viewport: QWidget, new_viewport: QWidget) -> Any Signals that the viewport widget was swapped.
notifyWorkspaceClosed function (arg0: flWorkspace) -> Any Signals that the workspace was closed.
notifyWorkspaceHasChanges function (c: bool) -> Any Signals whether there are unsaved changes in the workspace.
notifyWorkspaceInitialized function (arg0: flWorkspace) -> Any Signals that the workspace has been initialized and is ready.
notifyZoomChanged function (canvas: flCanvas) -> Any Signals that the zoom level of the given canvas changed.
qobject attribute Any
requestActivateNodesTool function () -> Any Asks the UI to switch to the Nodes (contour editing) tool.
requestActivateShapeTool function () -> Any Asks the UI to switch to the Shape selection tool.
requestActivateTransformTool function () -> Any Asks the UI to switch to the Transform tool.
requestCheckHistoryInitIndex function (arg0: flGlyphInfo) -> Any Asks FontLab to verify the undo history start index for a glyph.
requestContent function (*args: Any, **kwargs: Any) -> Any RequestContent(fgSymbolList characters, int cursorLocation
requestFontInfoDlg function () -> Any Opens the Font Info dialog for the current font.
requestGlyphActivate function (pid: int, gid: int) -> Any Asks FontLab to open the glyph editor for the glyph with package ID pid and glyph ID gid.
requestGlyphDeactivate function () -> Any Asks FontLab to close the current glyph editor.
requestGlyphReactivated function () -> Any Asks FontLab to re-activate (re-open) the current glyph.
requestLoadingFont function (font_source: str) -> Any Asks FontLab to open a font file from the given path.
requestPackageAcceptFonts function (arg0: flPackage) -> Any Asks FontLab to accept and register fonts into the given package.
requestPackageBorn function (arg0: flPackage) -> Any Asks FontLab to initialize a newly created font package.
requestPackagePostProcess function (arg0: flPackage, encoding: str) -> Any Asks FontLab to run post-processing on a newly loaded package (e.g. setting up encoding).
requestPermissionsForDragGuidelineByNode function (canvas_pos: QPointF, modifiers: int) -> bool Checks whether dragging a guideline via a node is permitted at the given position with the given modifier keys.
requestProgressMessage function (message: str) -> Any Updates the text message shown next to the progress bar.
requestProgressRange function (v: int) -> Any Sets the maximum value of the progress bar (e.g. the number of glyphs to process).
requestProgressShow function (b: bool) -> Any Shows or hides the progress bar.
requestProgressValue function (v: int) -> Any Sets the current progress bar value.
requestSaveBar function (b: bool) -> Any Shows or hides the save status bar.
requestSaveBarValue function (v: int) -> Any Sets the value displayed in the save bar.
requestSubContent function (*args: Any, **kwargs: Any) -> Any RequestSubContent(fgSymbolList characters, int cursorLocation
requestUpdateActiveShape function (arg0: flShapeInfo) -> Any Asks the UI to refresh the active shape display.
resetToolCursor function () -> Any
setCursor function (*args: Any, **kwargs: Any) -> Any
setEllipseCurvature function (d: float) -> Any
setEllipseData function (p0: QPointF, p1: QPointF) -> Any
setGuidelinesEditingEnabled function (b: bool) -> Any
setMeterData function (p0: QPointF, p1: QPointF) -> Any
setParameterName function (arg0: flObject, arg1: str) -> Any
setTransformation function (code: int, value: QPointF) -> Any
shapeBuilders function (self) -> Any
strToType function (arg0: str) -> int
transformRotate attribute int
transformScale attribute int
transformShift attribute int
transformSlant attribute int
typeToStr function (type: int) -> str
workspace attribute Any The workspace object.