Filmstock Selector
filmstock_selector
Widget to select film stocks.
Classes:
-
FilmStockSelector–A combobox for selecting camera and print film stocks.
-
FilmStockSelectorWindow–A pop-up window for selecting camera and print film stocks.
FilmStockSelector
FilmStockSelector(
film_stocks: dict, main_parent: QWidget, parent: QWidget | None, **kwargs: Any
)
Bases: QWidget
A combobox for selecting camera and print film stocks.
Combobox style UI element that lets you select a film stock and can open a pop-up window for more detailed information on the various film stocks.
Parameters:
-
(film_stocksdict) –List of film stocks to choose from.
-
(main_parentQWidget) –The main window.
-
(parentQWidget | None) –The parent object.
-
(**kwargsAny, default:{}) –Arguments passed to FilmStockSelectorWindow.
Methods:
-
open_selector–Opens the FilmStockSelectorWindow when clicking on the looking-glass button.
open_selector
open_selector()
Opens the FilmStockSelectorWindow when clicking on the looking-glass button.
FilmStockSelectorWindow
FilmStockSelectorWindow(
parent: QWidget | None = None,
film_stocks: dict | None = None,
sort_keys: list[str] | None = None,
group_keys: list[str] | None = None,
list_keys: list[str] | None = None,
sidebar_keys: list[str] | None = None,
default_sort: str | None = None,
default_group: str | None = None,
default_filter: str | None = None,
highlighted_stock: str | None = None,
image_key: str | None = None,
view_state: bool | None = None,
)
Bases: QDialog
A pop-up window for selecting camera and print film stocks.
Popup window which lets you choose a film stock with more detailed info. Has a tabular view with some details and a grid view with thumbnail color checkers. Lets you sort and group by keys and has a search field. Shows detailed info of the currently selected film stock on the sidebar.
Parameters:
-
(parentQWidget | None, default:None) –Parent widget.
-
(film_stocksdict | None, default:None) –List of film stocks to choose from.
-
(sort_keyslist[str] | None, default:None) –Keys by which the film stocks can be sorted by.
-
(group_keyslist[str] | None, default:None) –Keys by which the film stocks can be grouped by.
-
(list_keyslist[str] | None, default:None) –Keys for attributes that show up in the list view.
-
(sidebar_keyslist[str] | None, default:None) –Keys for attributes that show up in the sidebar view.
-
(default_sortstr | None, default:None) –Default sort key.
-
(default_groupstr | None, default:None) –Default group key.
-
(highlighted_stockstr | None, default:None) –Currently highlighted stock.
-
(image_keystr | None, default:None) –Key of the image used in the grid and sidebar view.
Methods:
-
sort_and_group_stocks–Returns: