-
Notifications
You must be signed in to change notification settings - Fork 0
theme_creator
version: v1.0.5
A module for a theme creator dialog.
class _ColourSetter(QWidget) [src]
A widget for colour selection or manual colour setting.
[src]
def __init__(self) -> NoneInitializer for the class.
[src]
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
[src]
def _setup_connections(self) -> NoneSets up the connections of the GUI objects.
[src]
@property
def colour(self) -> QColorReturns the stored colour.
[src]
@colour.setter
def colour(self, new_colour: QColor) -> NoneUpdates the stored colour and its associated widgets.
Parameters:
- new_colour: The new colour to set.
[src]
def set_enabled(self, new_state: bool) -> NoneSets the enabled state of the controls.
Parameters:
- new_state: The new enabled state to set.
[src]
def _slot_update_selector(self) -> NoneUpdates which selector is shown based on the control checkbox.
[src]
def _set_colour_label(self) -> NoneSets the pixmap of the colour's display label.
[src]
def _slot_colour_selector(self) -> NoneShows a colour selector dialog.
[src]
def catch_signal(button_id, colour) -> NoneCatches the signal carrying the newly set colour. (Nested function inside _slot_colour_selector().)
Parameters:
- button_id: The caller button's ID, unused here.
- colour: The colour to set.
[src]
def _update_spinboxes(self) -> NoneUpdates the values of spinboxes by the stored colour.
[src]
def _update_colour(self) -> NoneUpdates the stored colour and its display label according to the sender.
class _ThemePreview(QWidget) [src]
A widget for previewing a theme.
[src]
def __init__(self) -> NoneInitializer for the class.
[src]
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
class ThemeCreator(QDialog) [src]
A dialog for creating a custom widget theme / editing existing ones.
[src]
def __init__(self) -> NoneInitializer for the class.
[src]
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
[src]
def _setup_connections(self) -> NoneSets up the connections of the GUI objects.
[src]
def _slot_use_existing_theme(self) -> NoneUpdates the controls' enabled state based on the state of the checkbox.
[src]
def _slot_update_by_combobox(self, index: int) -> NoneUpdates the preview based on the selection made in the combobox.
Parameters:
- index: The index of the item selected in the combobox.
[src]
def _slot_update_by_custom_colours(self) -> NoneUpdates the preview based on the set custom colours.
[src]
def _slot_export_theme(self) -> NoneExports the currently set custom theme and updates the dialog accordingly.
[src]
def _slot_delete_theme(self) -> NoneDeletes the currently viewed theme's JSON file and updates the dialog accordingly.
function write_stub() [src]
def write_stub() -> NoneWrites the stub file to the project directory if it doesn't exist already or if an external stub file directory is set it creates a new stub file there (and deletes the package's own) or overrides the existing one.