ptrail.GUI package
Submodules
ptrail.GUI.GUI_driver module
This file launches PTRAIL’s GUI module.
ptrail.GUI.InputDialog module
This class is an abstraction that can be used to create input dialog boxes for virtually any number of inputs.
ptrail.GUI.Table module
This python module is the abstract definition of the Table view for viewing the dataframe inside the GUI.
ptrail.GUI.gui module
This module contains the design of PTRAIL’s GUI module. It is to be noted that this class does not handle the functionalities, it is rather handled by the handler class.
- class ptrail.GUI.gui.Ui_MainWindow(*args: Any, **kwargs: Any)[source]
Bases:
QMainWindow
- setupUi(OuterWindow)[source]
Set the main window of the GUI up and start the application.
- Parameters:
OuterWindow (PyQt5.QtWidgets.QOuterWindow') –
- setup_command_palette()[source]
Set up the pane that displays the command palette.
- Return type:
None
Create the menu bar of the window.
- Return type:
None
ptrail.GUI.handler module
This class is used to connect the PTRAIL GUI to PTRAIL backend. All the GUI’s functionalities are handled in this class.
- class ptrail.GUI.handler.GuiHandler(filename, window)[source]
Bases:
object
- add_column_drop_widget()[source]
Add a List Widget to drop columns from the dataset. This widget is added to the CommandPalette.
Note
It is to be noted that the following columns are mandatory for PTrailDataFrame:
1. traj_id2. DateTime3. lat4. lonHence, these columns are not presented as options for deletion.
- display_df(filename)[source]
Display the DataFrame on the DFPane of the GUI.
- Parameters:
filename (str) – The name of the file. This is obtained from the GUI.
- Raises:
AttributeError: – If the user gives incorrect column names, then we ask the user to enter them again.
- redraw_stat()[source]
Redraw the statistics plot when the user changes the option from the Dropdown menu.