.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: misc_container .. class:: alert alert-info pull-top .. contents:: *Module:* `misc_container.py `_ API ========================================================================================== No description. *Imports:* ------------ - `ninja_ide.gui.ide.IDE `_ - `PyQt4.QtGui.QHBoxLayout `_ - `PyQt4.QtGui.QIcon `_ - `PyQt4.QtGui.QKeySequence `_ - `PyQt4.QtGui.QPushButton `_ - `PyQt4.QtGui.QShortcut `_ - `PyQt4.QtGui.QSizePolicy `_ - `PyQt4.QtGui.QSpacerItem `_ - `PyQt4.QtGui.QStackedWidget `_ - `PyQt4.QtGui.QStyle `_ - `PyQt4.QtGui.QToolBar `_ - `PyQt4.QtGui.QVBoxLayout `_ - `PyQt4.QtWebKit.QWebPage `_ - `PyQt4.QtGui.QWidget `_ - `PyQt4.QtCore.Qt `_ - `PyQt4.QtCore.SIGNAL `_ - `__future__.absolute_import `_ - `ninja_ide.gui.misc.actions `_ - `ninja_ide.gui.misc.console_widget `_ - `ninja_ide.core.file_handling.file_manager `_ - `ninja_ide.gui.misc.find_in_files `_ - `ninja_ide.resources `_ - `ninja_ide.gui.misc.results `_ - `ninja_ide.gui.misc.run_widget `_ - `ninja_ide.core.settings `_ - `ninja_ide.tools.ui_tools `_ - `ninja_ide.gui.misc.web_render `_ *Global Attributes:* ---------------------- - `ToolsDock [at ln:286] `_ ---- *Class:* `StackedWidget(QStackedWidget) `_ ---------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class StackedWidget(QStackedWidget): No description. *Attributes* ~~~~~~~~~~~~~~ - `fader_widget [at ln:279] `_ *Function:* `__init__() [at ln:275] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `setCurrentIndex(index) [at ln:278] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setCurrentIndex(index): No description. ---- *Function:* `show_display(index) [at ln:283] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_display(index): No description. ---- *Class:* `_ToolsDock(QWidget) `_ ----------------------------------------------------------------------------------------------------------------------------------- .. code:: python class _ToolsDock(QWidget): | Former Miscellaneous, contains all the widgets in the bottom area. *Attributes* ~~~~~~~~~~~~~~ - `__toolbar [at ln:82] `_ - `_btnConsole [at ln:107] `_ - `_btnFind [at ln:113] `_ - `_btnRun [at ln:109] `_ - `_btnWeb [at ln:111] `_ - `_console [at ln:90] `_ - `_findInFilesWidget [at ln:99] `_ - `_results [at ln:104] `_ - `_runWidget [at ln:93] `_ - `_web [at ln:96] `_ - `stack [at ln:87] `_ *Function:* `__init__(parent=None) [at ln:51] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(parent=None): No description. ---- *Function:* `_item_changed(val) [at ln:166] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def _item_changed(val): No description. ---- *Function:* `add_project_to_console(projectFolder) [at ln:155] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_project_to_console(projectFolder): | Add the namespace of the project received into the ninja-console. ---- *Function:* `add_to_stack(widget, icon_path, description) [at ln:257] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_to_stack(widget, icon_path, description): | Add a widget to the container and an button(with icon))to the toolbar | to show the widget ---- *Function:* `change_visibility() [at ln:149] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def change_visibility(): No description. ---- *Function:* `execute_file() [at ln:185] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def execute_file(): | Execute the current file. ---- *Function:* `execute_project() [at ln:202] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def execute_project(): | Execute the project marked as Main Project. ---- *Function:* `gain_focus() [at ln:163] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def gain_focus(): No description. ---- *Function:* `install() [at ln:143] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def install(): No description. ---- *Function:* `kill_application() [at ln:241] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def kill_application(): No description. ---- *Function:* `load_toolbar(toolbar) [at ln:181] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def load_toolbar(toolbar): No description. ---- *Function:* `remove_project_from_console(projectFolder) [at ln:159] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def remove_project_from_console(projectFolder): | Remove the namespace of the project received from the console. ---- *Function:* `render_web_page(url) [at ln:244] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def render_web_page(url): No description. ---- *Function:* `run_application(fileName, pythonPath=False, PYTHONPATH=None, programParams=str, preExec=str, postExec=str) [at ln:227] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def run_application(fileName, pythonPath=False, PYTHONPATH=None, programParams=str, preExec=str, postExec=str): No description. ---- *Function:* `setup_ui() [at ln:77] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def setup_ui(): No description. ---- *Function:* `show_find_in_files_widget() [at ln:171] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_find_in_files_widget(): No description. ---- *Function:* `show_find_occurrences(word) [at ln:176] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_find_occurrences(word): No description. ---- *Function:* `show_results(items) [at ln:235] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def show_results(items): No description.