.. include:: headings.inc .. currentmodule:: lib.floatbar .. highlight:: python .. _lib.floatbar.FloatBar: ========================================================================================================================================== |phoenix_title| **FloatBar** ========================================================================================================================================== wxToolBar subclass which can be dragged off its frame and later replaced there. Drag on the toolbar to release it, close it like a normal window to make it return to its original position. Programmatically, call SetFloatable(True) and then Float(True) to float, Float(False) to dock. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **FloatBar** .. raw:: html

Inheritance diagram of FloatBar

| |super_classes| Known Superclasses ================================== :class:`ToolBar` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.floatbar.FloatBar.__init__` In addition to the usual arguments, wxFloatBar accepts keyword :meth:`~lib.floatbar.FloatBar.Float` Floats or docks the toolbar programmatically. :meth:`~lib.floatbar.FloatBar.GetTitle` :meth:`~lib.floatbar.FloatBar.IsFloatable` :meth:`~lib.floatbar.FloatBar.IsFloating` :meth:`~lib.floatbar.FloatBar.OnDock` :meth:`~lib.floatbar.FloatBar.OnMouse` :meth:`~lib.floatbar.FloatBar.OnMove` :meth:`~lib.floatbar.FloatBar.Realize` :meth:`~lib.floatbar.FloatBar.SetFloatable` :meth:`~lib.floatbar.FloatBar.SetTitle` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: FloatBar(ToolBar) wxToolBar subclass which can be dragged off its frame and later replaced there. Drag on the toolbar to release it, close it like a normal window to make it return to its original position. Programmatically, call SetFloatable(True) and then Float(True) to float, Float(False) to dock. .. method:: __init__(self,\*_args,\*\*_kwargs) In addition to the usual arguments, wxFloatBar accepts keyword args of: title(string): the title that should appear on the toolbar's frame when it is floating. floatable(bool): whether user actions (i.e., dragging) can float the toolbar or not. .. method:: Float(self, bool) Floats or docks the toolbar programmatically. .. method:: GetTitle(self) .. method:: IsFloatable(self) .. method:: IsFloating(self) .. method:: OnDock(self, e) .. method:: OnMouse(self, e) .. method:: OnMove(self, e) .. method:: Realize(self) .. method:: SetFloatable(self, float) .. method:: SetTitle(self, title)