mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[ui][settings] more general settings and improvements
This commit is contained in:
@@ -68,13 +68,14 @@ class SelectViewType(Enum):
|
||||
|
||||
class SingleSelectComponent(InputViewComponent):
|
||||
|
||||
def __init__(self, type_: SelectViewType, label: str, options: List[InputOption], default_option: InputOption = None, max_per_line: int = 1, id_: str = None):
|
||||
def __init__(self, type_: SelectViewType, label: str, options: List[InputOption], default_option: InputOption = None, max_per_line: int = 1, tooltip: str = None, id_: str = None):
|
||||
super(SingleSelectComponent, self).__init__(id_=id_)
|
||||
self.type = type_
|
||||
self.label = label
|
||||
self.options = options
|
||||
self.value = default_option
|
||||
self.max_per_line = max_per_line
|
||||
self.tooltip = tooltip
|
||||
|
||||
def get_selected(self):
|
||||
if self.value:
|
||||
|
||||
Reference in New Issue
Block a user