

Region_type ( str) – The region type the callback draws in usually WINDOW. Space_type ( str) – The space type the callback draws in for example VIEW_3D.

It gets the specified arguments as input with the mouse position (tuple) as last argument.Īrgs ( tuple) – Arguments that will be passed to the callback. ParametersĬallback ( function) – A function that will be called when the cursor is drawn. Note: All arguments are positional only for now. It will be called every time the cursor for the specified region in the space type will be drawn. Type draw_cursor_add ( callback, args, space_type, region_type ) Īdd a new draw cursor handler to this space type. Return typeīpy.types.Struct subclass classmethod bl_rna_get_subclass_py ( id, default = None ) Parameters popup_menu ( draw, title = "Greeting", icon = 'INFO' ) popup_menu_pie ( event, draw_func, *, title = '', icon = 'NONE' ) classmethod bl_rna_get_subclass ( id, default = None ) Parameters Import bpy def draw ( self, context ): self. Note that they will not block the scripts execution, so the caller can’t wait for user input. Popup menus can be useful for creating menus without having to register menu classes. Tag for refreshing the interface after scripts have been reloaded popover ( draw_func, *, ui_units_x = 0, keymap = None, from_active_button = False ) popup_menu ( draw_func, *, title = '', icon = 'NONE' ) Print_undo_steps classmethod tag_script_reload ( ) OperatorProperties, (never None) print_undo_steps ( ) Piemenu_end_internal classmethod operator_properties_last ( operator ) UIPieMenu, (never None) classmethod piemenu_end_internal ( menu ) Keymap ( KeyMap, (optional)) – Key Map, Active key map classmethod piemenu_begin_internal ( title, icon = 'NONE', event = None ) UIPopover, (never None) classmethod popover_end_internal ( menu, keymap = None ) Ui_units_x ( int in, ( optional )) – ui_units_xįrom_active_button ( boolean, ( optional )) – Use Button, Use the active button for positioning Popmenu_end_internal classmethod popover_begin_internal ( ui_units_x = 0, from_active_button = False ) UIPopupMenu, (never None) classmethod popmenu_end_internal ( menu ) Icon (enum in Icon Items, (optional)) – icon Return type

Operator confirmation popup (only to let user confirm the execution, no operator properties shown) ParametersĮnum set in Operator Return Items classmethod popmenu_begin_internal ( title, icon = 'NONE' ) Operator popup invoke (only shows operator’s properties, without executing it) ParametersĮnum set in Operator Return Items classmethod invoke_confirm ( operator, event ) Operator ( Operator) – Operator to call classmethod invoke_popup ( operator, width = 300 ) Operator search popup invoke which searches values of the operator’s _property (which must be an EnumProperty), executing it on confirmation Parameters Width ( int in, ( optional )) – Width of the popupĮnum set in Operator Return Items classmethod invoke_search_popup ( operator ) Operator dialog (non-autoexec popup) invoke (show operator properties and only execute it on click on OK button) Parameters Operator popup invoke (show operator properties and execute it automatically on changes) ParametersĮnum set in Operator Return Items classmethod invoke_props_dialog ( operator, width = 300 ) Terminate progress report classmethod invoke_props_popup ( operator, event )

Value ( float in ) – value, Any value between min and max as set in progress_begin() progress_end ( ) Max ( float in ) – max, any value in range Min ( float in ) – min, any value in range Identifier ( string, ( never None )) – Gizmo group type name progress_begin ( min, max ) Unlink a widget group (when the persistent option is set) Parameters Identifier ( string, ( never None )) – Gizmo group type name classmethod gizmo_group_type_unlink_delayed ( identifier ) Window ( Window, (optional)) – Window to attach the timer to, or NoneĮvent_timer_remove classmethod gizmo_group_type_ensure ( identifier ) Īctivate an existing widget group (when the persistent option isn’t set) Parameters Time_step ( float in ) – Time Step, Interval in seconds between timer events Whether adding the handler was successful Return typeīoolean event_timer_add ( time_step, window = None ) Īdd a timer to the given window, to generate periodic ‘TIMER’ events Parameters Operator ( Operator) – Operator to call Returns String, default “”, (never None) addon_support Ĭommunity – Maintained by community developers.Įnum set in ) Parameters
#Windowmanager windows
Window manager data-block defining open windows and other user interface data addon_filter įilter by add-on name, author & category Type Base classes - bpy_struct, ID class bpy.types.
