.. _tut_boss_ui: Boss UI ========== Check out the UI section in :ref:`Boss ` for details. .. toggle-header:: :header: **Creating button at center of the region** .. literalinclude:: ../codes/Boss/button_at_center.py :language: python :linenos: | .. toggle-header:: :header: **Creating button at mouse position** .. literalinclude:: ../codes/Boss/button_at_mouse.py :language: python :linenos: | .. toggle-header:: :header: **Creating a cube** This is example of creating a cube from :ref:`Comparisons page ` .. literalinclude:: ../codes/Boss/create_cube.py :language: python :linenos: | .. toggle-header:: :header: **Creating Cube as an operator** .. literalinclude:: ../codes/Boss/create_cube_op.py :language: python :linenos: | .. toggle-header:: :header: **Creating a draggable TitleBar** .. literalinclude:: ../codes/Boss/title_bar.py :language: python :linenos: | .. toggle-header:: :header: **All basic UI in one script file** .. literalinclude:: ../codes/Boss/all_ui.py :language: python :linenos: | .. tip:: ``from boss.ui_creator import UICreator as cc`` here cc is easy to type with one finger. Remember it as short for Creator Class.