src.visuals.windows.analytics_space module

custom class, which manages an i3 like tiling environment

class src.visuals.windows.analytics_space.NeoAnalyticsSingleton(contained, parent=None)[source]

Bases: QWidget

class for each field in the i3 like layout

widgetQWidget

the widget, that this tile contains

Parameters:

contained (QWidget)

combinationNoticed
keyPressEvent(e)[source]

overwritten keyPressEvent function, which activates, when a key is pressed for example.

Parameters:

e (QKeyEvent) – catches the Keyevents (presses, releases, …)

mousePressEvent(event)[source]

overwritten mousePressEvent, which activates for example, if a mouse button is pressed. used for highlighting tiles, since keypresses are only noticed on highlighted widgets

Parameters:

event (QMouseEvent) – catches the mousebuttonevents (presses, releases, …)

staticMetaObject = PySide6.QtCore.QMetaObject("NeoAnalyticsSingleton" inherits "QWidget": Methods:   #33 type=Signal, signature=combinationNoticed(QString,QWidget*), parameters=QString, QWidget* )
class src.visuals.windows.analytics_space.NeoAnalyticsSpace(parent=None, tree=[{'id': 'rootpanel', 'parent': 'root'}])[source]

Bases: QWidget

An i3 like layout handler widget

Parameters:

tree (dict)

widgets

a list of all widgets, for accessing them efficiently

Type:

list[QWidget]

splitter

the same concept, as in the widget case

Type:

list[QSplitter]

treetracker

keeps track of the tree structure, with adjacency lists id –> children: list[str]

Type:

dict[str, dict[str, list[str] | str]]

_add_splitter(orientation, focusedWidget)[source]

slices a focused widget into two new ones

Parameters:
  • orientation (str) – the orientation of the wanted slice

  • focusedWidget (NeoAnalyticsSingleton) – the tile, which should get sliced

Return type:

None

_build_by_json_tree(childrenDicts, currentId, altIndex, splitterSizes)[source]

recursive method, for initializing a jsontree, which was saved before

Parameters:
  • childrenDicts (list[dict]) – the metadicts for the children of the current splitter

  • currentId (str) – the id of the current Splitter

  • altIndex (int) – a raising indexnumber, which is used for the alternating split structure

  • splitterSizes (list[int]) – used for setting the correct proportions for the splitter

Returns:

currentSplitter – returns the qsplitter int the current scope

Return type:

QSplitter

_explicit_to_recursive_dict(explicitTreeTracker, childrenIds)[source]

a recursive function, which converts the explicittreetracker into the recursive one.

Parameters: explicitTreeTracker : dict

the tree tracker of this class in explicit form

childrenIdslist[str]

the current children we observe

Returns:

childrenDicts – the childrendicts, containing metadata

Return type:

dict

Parameters:
  • explicitTreeTracker (dict)

  • childrenIds (list[str])

_make_panel()[source]

this method does make an instance of the widget, that gets pasted into the tiles

Return type:

NeoAnalyticsSingleton

_save_states()[source]

saves the current layout to the ctr.json in the config folder

staticMetaObject = PySide6.QtCore.QMetaObject("NeoAnalyticsSpace" inherits "QWidget": )
class src.visuals.windows.analytics_space.NeoAnalyticsSpaceWrapper(parent=None)[source]

Bases: QWidget

wrapper class for analyticsspaces

ui

the raw Class, produced by compilation

Type:

Ui_Scroll_wrapper

spaceinstance

An instance of the i3 like class

Type:

NeoAnalyticsSpace

staticMetaObject = PySide6.QtCore.QMetaObject("NeoAnalyticsSpaceWrapper" inherits "QWidget": )

Dependency Diagrams (without externals):

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.visuals.windows.main_window" -> "src.visuals.windows.analytics_space";
}

Import dependencies (collapsed)

Dependency Diagrams:

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.visuals.windows.main_window" -> "src.visuals.windows.analytics_space";
}

Import dependencies (collapsed)