svir.ui package

Submodules

svir.ui.list_multiselect_widget module

allows multiple selection between in a large list

Contact : marco@opengis.ch

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class svir.ui.list_multiselect_widget.ListMultiSelectWidget(parent=None, title=None)[source]

Bases: PyQt5.QtWidgets.QGroupBox

Widget to show two parallel lists and move elements between the two

usage from code:
self.myWidget = ListMultiSelectWidget(title=’myTitle’) self.myLayout.insertWidget(1, self.myWidget)
usage from designer:
insert a QGroupBox in your UI file optionally give a title to the QGroupBox promote it to ListMultiSelectWidget
add_selected_items(items)[source]

:param items list of strings to be added in the selected list

add_unselected_items(items)[source]

:param items list of strings to be added in the unselected list

get_selected_items()[source]

:return list with all the selected items text

get_unselected_items()[source]

:return list with all the unselected items text

selection_changed
set_selected_items(items)[source]

:param items list of strings to be set as the selected list

set_unselected_items(items)[source]

:param items list of strings to be set as the unselected list

class svir.ui.list_multiselect_widget.SmallQPushButton(text)[source]

Bases: PyQt5.QtWidgets.QPushButton

Module contents