hurahura.miresearchui package

Submodules

hurahura.miresearchui.local_directory_picker module

class hurahura.miresearchui.local_directory_picker.local_file_picker(directory, *, upper_limit=Ellipsis, multiple=False, show_hidden_files=False, DIR_ONLY=False)[source]

Bases: Dialog

Parameters:
  • directory (str)

  • upper_limit (str | None)

  • multiple (bool)

  • show_hidden_files (bool)

  • DIR_ONLY (bool)

add_drives_toggle()[source]
component: Component | None = JsComponent(key='d23d099613e9413cdf3756f2dddcf2e9/dialog.js', name='dialog', path=PosixPath('/home/runner/.local/lib/python3.12/site-packages/nicegui/elements/dialog.js'))
exposed_libraries: ClassVar[list[Library]] = []
handle_double_click(e)[source]
Parameters:

e (GenericEventArguments)

Return type:

None

update_drive()[source]
update_grid()[source]
Return type:

None

hurahura.miresearchui.mainUI module

class hurahura.miresearchui.mainUI.MIResearchUI(port=8080)[source]

Bases: object

ROWS_PER_PAGE = 20
addPageChangeHandler()[source]

Add JavaScript handler for page changes

clearTable()[source]
async delete_selected()[source]
first_page()[source]

Navigate to the first page

getPaginationStats()[source]

Get current pagination statistics for debugging

go_to_page(e)[source]

Navigate to the page number entered in the input field

last_page()[source]

Navigate to the last page

loadPage(page_num)[source]

Load a specific page of data, with caching

async load_subject()[source]
Return type:

None

next_page()[source]

Navigate to the next page

onPageChanged(new_page)[source]

Handle page changes from the grid

prev_page()[source]

Navigate to the previous page

refresh()[source]
setSubjectList()[source]
setUpAndRun()[source]
shutdown()[source]
updateDataRoot(e)[source]
updateSubjectPrefix(e)[source]
updateTable()[source]

Update table with current page data

update_page_display()[source]

Update the page info display labels

class hurahura.miresearchui.mainUI.UIRunner(port=8081)[source]

Bases: object

static home()[source]
static run()[source]
hurahura.miresearchui.mainUI.runMIUI(port=8081)[source]

hurahura.miresearchui.miui_helpers module

async hurahura.miresearchui.miui_helpers.cleanup()[source]
hurahura.miresearchui.miui_helpers.get_index_of_field_open(data)[source]

hurahura.miresearchui.miui_settings_page module

hurahura.miresearchui.miui_settings_page.create_settings_page(miui_instance)[source]

Creates the settings page for the MIResearchUI.

Parameters:

miui_instance – An instance of the MIResearchUI class.

hurahura.miresearchui.miui_settings_page.display_settings_page_standalone()[source]

The dedicated page for displaying MIUI settings.

hurahura.miresearchui.miui_settings_page.initialize_settings_ui(miui_instance_from_main)[source]

Stores the MIResearchUI instance for the settings page to use.

hurahura.miresearchui.subjectUI module

class hurahura.miresearchui.subjectUI.SubjectPage(subjid, dataRoot, classPath)[source]

Bases: object

Parameters:
  • subjid (str)

  • dataRoot (str)

  • classPath (str)

build_page()[source]
hurahura.miresearchui.subjectUI.subject_page(subjid, dataRoot, classPath)[source]
Parameters:
  • subjid (str)

  • dataRoot (str)

  • classPath (str)

Module contents