geo_gui.py

Module that creates GUI window for GeocoderPL project

class geo_gui.MyGeoGUI

Bases: QWidget

Class that creates GUI window

__init__()

Method that creates objects from a class “MyGeoGUI”

Returns:

The method does not return any values

change_sekts_order(c_sekt)

Method that changes order of sectors in adds_list

Parameters:

c_sekt (ndarray) – Numpy array containing sectors numbers

Return type:

None

Returns:

The method does not return any values

on_text_changed()

Method that implements event on text change in QLineEdit

Return type:

None

Returns:

The method does not return any values

on_text_selected()

Methond that implements event on text select in QCompleter

Return type:

None

Returns:

The method does not return any values

geo_gui.get_addr_spiral_ids(addr_arr_shp, spiral_ids_arr)

Function that returs indices of numpy array in spiral mode up to ‘add_arr’ shape starting from central point

Parameters:
  • addr_arr_shp (int) – Shape of address array

  • spiral_ids_arr (ndarray) – Numpy array with indices arranged in spirals

Return type:

None

Returns:

The method does not return any values

geo_gui.get_prg_ids(prg_num, c_addrs, curr_text, ids_row)

Function that generates indices of points in PRG table matching current text

Parameters:
  • prg_num (int) – PRG number

  • c_addrs (str) – Current address

  • curr_text (str) – Current text

  • ids_row (List[str]) – List of indices

Return type:

bool

Returns:

Flag indicating that current text was found in PRG table